#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.
SAMRAI::tbox::XDRStream::XDRStream | ( | ) | [inline] |
Standard default constructor for the XDR stream.
SAMRAI::tbox::XDRStream::~XDRStream | ( | ) | [virtual] |
Virtual destructor for the XDR stream.
void SAMRAI::tbox::XDRStream::setXDRStream | ( | XDR * | xdrs | ) | [inline] |
AbstractStream & SAMRAI::tbox::XDRStream::operator<< | ( | const bool & | data | ) | [virtual] |
AbstractStream & SAMRAI::tbox::XDRStream::operator>> | ( | bool & | data | ) | [virtual] |
void SAMRAI::tbox::XDRStream::pack | ( | const bool * | data, | |
const int | n = 1 | |||
) | [virtual] |
void SAMRAI::tbox::XDRStream::unpack | ( | bool * | data, | |
const int | n = 1 | |||
) | [virtual] |
AbstractStream & SAMRAI::tbox::XDRStream::operator<< | ( | const char & | data | ) | [virtual] |
AbstractStream & SAMRAI::tbox::XDRStream::operator>> | ( | char & | data | ) | [virtual] |
void SAMRAI::tbox::XDRStream::pack | ( | const char * | data, | |
const int | n = 1 | |||
) | [virtual] |
void SAMRAI::tbox::XDRStream::unpack | ( | char * | data, | |
const int | n = 1 | |||
) | [virtual] |
void SAMRAI::tbox::XDRStream::writeString | ( | const char * | data | ) | [virtual] |
Write a string into the XDR data stream.
AbstractStream & SAMRAI::tbox::XDRStream::operator<< | ( | const dcomplex & | data | ) | [virtual] |
AbstractStream & SAMRAI::tbox::XDRStream::operator>> | ( | dcomplex & | data | ) | [virtual] |
void SAMRAI::tbox::XDRStream::pack | ( | const dcomplex * | data, | |
const int | n = 1 | |||
) | [virtual] |
void SAMRAI::tbox::XDRStream::unpack | ( | dcomplex * | data, | |
const int | n = 1 | |||
) | [virtual] |
AbstractStream & SAMRAI::tbox::XDRStream::operator<< | ( | const double & | data | ) | [virtual] |
AbstractStream & SAMRAI::tbox::XDRStream::operator>> | ( | double & | data | ) | [virtual] |
void SAMRAI::tbox::XDRStream::pack | ( | const double * | data, | |
const int | n = 1 | |||
) | [virtual] |
void SAMRAI::tbox::XDRStream::unpack | ( | double * | data, | |
const int | n = 1 | |||
) | [virtual] |
AbstractStream & SAMRAI::tbox::XDRStream::operator<< | ( | const float & | data | ) | [virtual] |
AbstractStream & SAMRAI::tbox::XDRStream::operator>> | ( | float & | data | ) | [virtual] |
void SAMRAI::tbox::XDRStream::pack | ( | const float * | data, | |
const int | n = 1 | |||
) | [virtual] |
void SAMRAI::tbox::XDRStream::unpack | ( | float * | data, | |
const int | n = 1 | |||
) | [virtual] |
AbstractStream & SAMRAI::tbox::XDRStream::operator<< | ( | const int & | data | ) | [virtual] |
AbstractStream & SAMRAI::tbox::XDRStream::operator>> | ( | int & | data | ) | [virtual] |
void SAMRAI::tbox::XDRStream::pack | ( | const int * | data, | |
const int | n = 1 | |||
) | [virtual] |
void SAMRAI::tbox::XDRStream::unpack | ( | int * | data, | |
const int | n = 1 | |||
) | [virtual] |