#include <source/toolbox/stream/XDRStream.h>
Inheritance diagram for SAMRAI::tbox::XDRStream:
Public Member Functions | |
XDRStream () | |
void | setXDRStream (XDR *xdrs) |
virtual | ~XDRStream () |
Boolean Stream Primitives | |
virtual AbstractStream & | operator<< (const bool &data) |
Pack a single bool into the XDR data stream. | |
virtual AbstractStream & | operator>> (bool &data) |
Remove a single bool from the XDR data stream. | |
virtual void | pack (const bool *data, const int n=1) |
Pack an array of bools into the XDR data stream. | |
virtual void | unpack (bool *data, const int n=1) |
Remove an array of bools from the XDR data stream. | |
Character Stream Primitives | |
virtual AbstractStream & | operator<< (const char &data) |
Pack a single char into the XDR data stream. | |
virtual AbstractStream & | operator>> (char &data) |
Remove a single char from the XDR data stream. | |
virtual void | pack (const char *data, const int n=1) |
Pack an array of chars into the XDR data stream. | |
virtual void | unpack (char *data, const int n=1) |
Remove an array of chars from the XDR data stream. | |
virtual void | writeString (const char *data) |
Write a string into the XDR data stream. | |
Double Complex Stream Primitives | |
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. | |
virtual AbstractStream & | operator>> (dcomplex &data) |
Remove a single double complex from the message stream. | |
virtual void | pack (const dcomplex *data, const int n=1) |
Pack an array of double complex into the message stream. | |
virtual void | unpack (dcomplex *data, const int n=1) |
Remove an array of double complex from the message stream. | |
Double Stream Primitives | |
virtual AbstractStream & | operator<< (const double &data) |
Pack a single double into the XDR data stream. | |
virtual AbstractStream & | operator>> (double &data) |
Remove a single double from the XDR data stream. | |
virtual void | pack (const double *data, const int n=1) |
Pack an array of doubles into the XDR data stream. | |
virtual void | unpack (double *data, const int n=1) |
Remove an array of doubles from the XDR data stream. | |
Float Stream Primitives | |
virtual AbstractStream & | operator<< (const float &data) |
Pack a single float into the XDR data stream. | |
virtual AbstractStream & | operator>> (float &data) |
Remove a single float from the XDR data stream. | |
virtual void | pack (const float *data, const int n=1) |
Pack an array of floats into the XDR data stream. | |
virtual void | unpack (float *data, const int n=1) |
Remove an array of floats from the XDR data stream. | |
Integer Stream Primitives | |
virtual AbstractStream & | operator<< (const int &data) |
Pack a single integer into the XDR data stream. | |
virtual AbstractStream & | operator>> (int &data) |
Remove a single integer from the XDR data stream. | |
virtual void | pack (const int *data, const int n=1) |
Pack an array of integers into the XDR data stream. | |
virtual void | unpack (int *data, const int n=1) |
Remove an array of integers from the XDR data stream. |
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.
|
Standard default constructor for the XDR stream. |
|
Virtual destructor for the XDR stream. |
|
Set the XDR stream to/from which data will be written/read. The XDR stream must be set before calling any packing/unpacking operation. |
|
Pack a single bool into the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove a single bool from the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Pack an array of bools into the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove an array of bools from the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Pack a single char into the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove a single char from the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Pack an array of chars into the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove an array of chars from the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Write a string into the XDR data stream.
|
|
Pack a single double complex into the message stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove a single double complex from the message stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Pack an array of double complex into the message stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove an array of double complex from the message stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Pack a single double into the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove a single double from the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Pack an array of doubles into the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove an array of doubles from the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Pack a single float into the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove a single float from the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Pack an array of floats into the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove an array of floats from the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Pack a single integer into the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove a single integer from the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Pack an array of integers into the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |
|
Remove an array of integers from the XDR data stream.
Implements SAMRAI::tbox::AbstractStream. |