IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
|
Class FixedSizedStream provides a fixed-size message buffer used by various communication routines. More...
#include </home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/FixedSizedStream.h>
Public Member Functions | |
FixedSizedStream (int bytes) | |
FixedSizedStream (const void *buffer, int bytes) | |
~FixedSizedStream ()=default | |
void * | getBufferStart () |
const void * | getBufferStart () const |
int | getCurrentSize () const |
int | getCurrentIndex () const |
void | setCurrentIndex (int index) |
void | resetIndex () |
Boolean Stream Primitives | |
Pack and unpack booleans into and out of the message stream. | |
SAMRAI::tbox::AbstractStream & | operator<< (const bool &data) override |
SAMRAI::tbox::AbstractStream & | operator>> (bool &data) override |
void | pack (const bool *data, int n=1) override |
void | unpack (bool *data, int n=1) override |
Character Stream Primitives | |
Pack and unpack chars into and out of the message stream. | |
SAMRAI::tbox::AbstractStream & | operator<< (const char &data) override |
SAMRAI::tbox::AbstractStream & | operator>> (char &data) override |
void | pack (const char *data, int n=1) override |
void | unpack (char *data, int n=1) override |
Double Complex Stream Primitives | |
Pack and unpack double complex into and out of the message stream. | |
SAMRAI::tbox::AbstractStream & | operator<< (const dcomplex &data) override |
SAMRAI::tbox::AbstractStream & | operator>> (dcomplex &data) override |
void | pack (const dcomplex *data, int n=1) override |
void | unpack (dcomplex *data, int n=1) override |
Double Stream Primitives | |
Pack and unpack doubles into and out of the message stream. | |
SAMRAI::tbox::AbstractStream & | operator<< (const double &data) override |
SAMRAI::tbox::AbstractStream & | operator>> (double &data) override |
void | pack (const double *data, int n=1) override |
void | unpack (double *data, int n=1) override |
Float Stream Primitives | |
Pack and unpack floats into and out of the message stream. | |
SAMRAI::tbox::AbstractStream & | operator<< (const float &data) override |
SAMRAI::tbox::AbstractStream & | operator>> (float &data) override |
void | pack (const float *data, int n=1) override |
void | unpack (float *data, int n=1) override |
Integer Stream Primitives | |
Pack and unpack integers into and out of the message stream. | |
SAMRAI::tbox::AbstractStream & | operator<< (const int &data) override |
SAMRAI::tbox::AbstractStream & | operator>> (int &data) override |
void | pack (const int *data, int n=1) override |
void | unpack (int *data, int n=1) override |
Additional Inherited Members | |
Static Public Member Functions inherited from SAMRAI::tbox::AbstractStream | |
static int | sizeofBool (const int n=1) |
static int | sizeofChar (const int n=1) |
static int | sizeofDoubleComplex (const int n=1) |
static int | sizeofDouble (const int n=1) |
static int | sizeofFloat (const int n=1) |
static int | sizeofInt (const int n=1) |
Class FixedSizedStream provides a fixed-size message buffer used by various communication routines.
This class implements the SAMRAI::tbox::AbstractStream interface. Class FixedSizedStream can packs and unpacks message streams via straight-forward byte copying.
IBTK::FixedSizedStream::FixedSizedStream | ( | int | bytes | ) |
Create a message stream of the specified size in bytes.
IBTK::FixedSizedStream::FixedSizedStream | ( | const void * | buffer, |
int | bytes | ||
) |
Create a message stream with the specified buffer.
|
default |
Destructor for a message stream.
|
inline |
Return a pointer to the start of the message buffer.
|
inline |
Return a const pointer to the start of the message buffer.
|
inline |
Return the current index into the buffer.
|
inline |
Return the current size of the buffer in bytes.
|
inlineoverridevirtual |
Pack a single bool into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack a single char into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack a single double complex into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack a single double into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack a single float into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack a single integer into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove a single bool from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove a single char from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove a single double complex from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove a single double from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove a single float from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove a single integer from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack an array of bools into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack an array of chars into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack an array of double complex into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack an array of doubles into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack an array of floats into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack an array of integers into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inline |
Reset the index to the beginning of the buffer. This is the same as setting the buffer index to zero via setCurrentIndex().
|
inline |
Set the current index into the buffer. Further packing/unpacking will begin at this new location.
|
inlineoverridevirtual |
Remove an array of bools from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove an array of chars from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove an array of double complex from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove an array of doubles from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove an array of floats from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove an array of integers from the message stream.
Implements SAMRAI::tbox::AbstractStream.