#include <source/toolbox/stream/AbstractStream.h>
Inheritance diagram for SAMRAI::tbox::AbstractStream:
Public Member Functions | |
AbstractStream () | |
virtual | ~AbstractStream () |
Boolean Stream Primitives | |
Pack and unpack booleans into and out of the abstract stream. | |
virtual AbstractStream & | operator<< (const bool &data)=0 |
Pack a single bool into the abstract stream. | |
virtual AbstractStream & | operator>> (bool &data)=0 |
Remove a single bool from the abstract stream. | |
virtual void | pack (const bool *data, const int n=1)=0 |
Pack an array of bools into the abstract stream. | |
virtual void | unpack (bool *data, const int n=1)=0 |
Remove an array of bools from the abstract stream. | |
Character Stream Primitives | |
Pack and unpack chars into and out of the abstract stream. | |
virtual AbstractStream & | operator<< (const char &data)=0 |
Pack a single char into the abstract stream. | |
virtual AbstractStream & | operator>> (char &data)=0 |
Remove a single char from the abstract stream. | |
virtual void | pack (const char *data, const int n=1)=0 |
Pack an array of chars into the abstract stream. | |
virtual void | unpack (char *data, const int n=1)=0 |
Remove an array of chars from the abstract stream. | |
Double Complex Stream Primitives | |
Pack and unpack double complex into and out of the abstract stream. | |
virtual AbstractStream & | operator<< (const dcomplex &data)=0 |
Pack a single double complex into the abstract stream. | |
virtual AbstractStream & | operator>> (dcomplex &data)=0 |
Remove a single double complex from the abstract stream. | |
virtual void | pack (const dcomplex *data, const int n=1)=0 |
Pack an array of double complex into the abstract stream. | |
virtual void | unpack (dcomplex *data, const int n=1)=0 |
Remove an array of double complex from the abstract stream. | |
Double Stream Primitives | |
Pack and unpack doubles into and out of the abstract stream. | |
virtual AbstractStream & | operator<< (const double &data)=0 |
Pack a single double into the abstract stream. | |
virtual AbstractStream & | operator>> (double &data)=0 |
Remove a single double from the abstract stream. | |
virtual void | pack (const double *data, const int n=1)=0 |
Pack an array of doubles into the abstract stream. | |
virtual void | unpack (double *data, const int n=1)=0 |
Remove an array of doubles from the abstract stream. | |
Float Stream Primitives | |
Pack and unpack floats into and out of the abstract stream. | |
virtual AbstractStream & | operator<< (const float &data)=0 |
Pack a single float into the abstract stream. | |
virtual AbstractStream & | operator>> (float &data)=0 |
Remove a single float from the abstract stream. | |
virtual void | pack (const float *data, const int n=1)=0 |
Pack an array of floats into the abstract stream. | |
virtual void | unpack (float *data, const int n=1)=0 |
Remove an array of floats from the abstract stream. | |
Integer Stream Primitives | |
Pack and unpack integers into and out of the abstract stream. | |
virtual AbstractStream & | operator<< (const int &data)=0 |
Pack a single integer into the abstract stream. | |
virtual AbstractStream & | operator>> (int &data)=0 |
Remove a single integer from the abstract stream. | |
virtual void | pack (const int *data, const int n=1)=0 |
Pack an array of integers into the abstract stream. | |
virtual void | unpack (int *data, const int n=1)=0 |
Remove an array of integers from the abstract stream. | |
Static Public Member Functions | |
Stream Space Calculation Primitives | |
Calculate the stream space needed for various data types. | |
static int | sizeofBool (const int n=1) |
Calculate the stream space needed for n bools. | |
static int | sizeofChar (const int n=1) |
Calculate the stream space needed for n chars. | |
static int | sizeofDoubleComplex (const int n=1) |
Calculate the stream space needed for n double complex. | |
static int | sizeofDouble (const int n=1) |
Calculate the stream space needed for n doubles. | |
static int | sizeofFloat (const int n=1) |
Calculate the stream space needed for n floats. | |
static int | sizeofInt (const int n=1) |
Calculate the stream space needed for n ints. |
The sizeofXXX() functions should be used to calculate the amount of buffer space needed to pack primitive data type XXX, where XXX is one of bool, char, double, float, or int.
|
Default constructor for an abstract stream. |
|
Virtual destructor for an abstract stream. |
|
Calculate the stream space needed for n bools.
|
|
Calculate the stream space needed for n chars.
|
|
Calculate the stream space needed for n double complex.
|
|
Calculate the stream space needed for n doubles.
|
|
Calculate the stream space needed for n floats.
|
|
Calculate the stream space needed for n ints.
|
|
Pack a single bool into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove a single bool from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Pack an array of bools into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove an array of bools from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Pack a single char into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove a single char from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Pack an array of chars into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove an array of chars from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Pack a single double complex into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove a single double complex from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Pack an array of double complex into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove an array of double complex from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Pack a single double into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove a single double from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Pack an array of doubles into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove an array of doubles from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Pack a single float into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove a single float from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Pack an array of floats into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove an array of floats from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Pack a single integer into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove a single integer from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Pack an array of integers into the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |
|
Remove an array of integers from the abstract stream.
Implemented in SAMRAI::tbox::MessageStream, and SAMRAI::tbox::XDRStream. |