|
| | XDRStream () |
| |
| void | setXDRStream (XDR *xdrs) |
| |
| virtual | ~XDRStream () |
| |
|
Pack and unpack booleans into and out of the XDR data stream.
|
| virtual AbstractStream & | operator<< (const bool &data) |
| | Pack a single bool into the XDR data stream. More...
|
| |
| virtual AbstractStream & | operator>> (bool &data) |
| | Remove a single bool from the XDR data stream. More...
|
| |
| virtual void | pack (const bool *data, const int n=1) |
| | Pack an array of bools into the XDR data stream. More...
|
| |
| virtual void | unpack (bool *data, const int n=1) |
| | Remove an array of bools from the XDR data stream. More...
|
| |
|
Pack and unpack chars into and out of the XDR data stream.
|
| virtual AbstractStream & | operator<< (const char &data) |
| | Pack a single char into the XDR data stream. More...
|
| |
| virtual AbstractStream & | operator>> (char &data) |
| | Remove a single char from the XDR data stream. More...
|
| |
| virtual void | pack (const char *data, const int n=1) |
| | Pack an array of chars into the XDR data stream. More...
|
| |
| virtual void | unpack (char *data, const int n=1) |
| | Remove an array of chars from the XDR data stream. More...
|
| |
| virtual void | writeString (const char *data) |
| | Write a string into the XDR data stream. More...
|
| |
|
Pack and unpack double complex into and out of the message stream.
|
| virtual AbstractStream & | operator<< (const dcomplex &data) |
| | Pack a single double complex into the message stream. More...
|
| |
| virtual AbstractStream & | operator>> (dcomplex &data) |
| | Remove a single double complex from the message stream. More...
|
| |
| virtual void | pack (const dcomplex *data, const int n=1) |
| | Pack an array of double complex into the message stream. More...
|
| |
| virtual void | unpack (dcomplex *data, const int n=1) |
| | Remove an array of double complex from the message stream. More...
|
| |
|
Pack and unpack doubles into and out of the XDR data stream.
|
| virtual AbstractStream & | operator<< (const double &data) |
| | Pack a single double into the XDR data stream. More...
|
| |
| virtual AbstractStream & | operator>> (double &data) |
| | Remove a single double from the XDR data stream. More...
|
| |
| virtual void | pack (const double *data, const int n=1) |
| | Pack an array of doubles into the XDR data stream. More...
|
| |
| virtual void | unpack (double *data, const int n=1) |
| | Remove an array of doubles from the XDR data stream. More...
|
| |
|
Pack and unpack floats into and out of the XDR data stream.
|
| virtual AbstractStream & | operator<< (const float &data) |
| | Pack a single float into the XDR data stream. More...
|
| |
| virtual AbstractStream & | operator>> (float &data) |
| | Remove a single float from the XDR data stream. More...
|
| |
| virtual void | pack (const float *data, const int n=1) |
| | Pack an array of floats into the XDR data stream. More...
|
| |
| virtual void | unpack (float *data, const int n=1) |
| | Remove an array of floats from the XDR data stream. More...
|
| |
|
|
Calculate the stream space needed for various data types.
|
| static int | sizeofBool (const int n=1) |
| | Calculate the stream space needed for n bools. More...
|
| |
| static int | sizeofChar (const int n=1) |
| | Calculate the stream space needed for n chars. More...
|
| |
| static int | sizeofDoubleComplex (const int n=1) |
| | Calculate the stream space needed for n double complex. More...
|
| |
| static int | sizeofDouble (const int n=1) |
| | Calculate the stream space needed for n doubles. More...
|
| |
| static int | sizeofFloat (const int n=1) |
| | Calculate the stream space needed for n floats. More...
|
| |
| static int | sizeofInt (const int n=1) |
| | Calculate the stream space needed for n ints. More...
|
| |
Class XDRStream provides pack/unpack operations that convert between machine representation and XDR representation for portable interprocessor communication. Note that unless XDR translation is required for portability across machine architectures, it would be faster to copy data directly.
The appropriate XDR stream must be set by setXDRStream() before any of the packing or unpacking calls are made. All of the packing and unpacking operations have been defined here for the XDR operations.
- See also
- tbox::AbstractStream