|
IBAMR
IBAMR version 0.19.
|
Class FixedSizedStream provides a fixed-size message buffer used by various communication routines. More...
#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. | |
| const int | d_buffer_size |
| int | d_current_size = 0 |
| int | d_buffer_index = 0 |
| std::vector< char > | d_buffer |
| 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 |
| FixedSizedStream ()=delete | |
| Default constructor. More... | |
| FixedSizedStream (const FixedSizedStream &from)=delete | |
| Copy constructor. More... | |
| FixedSizedStream & | operator= (const FixedSizedStream &that)=delete |
| Assignment operator. More... | |
| void * | getPointerAndAdvanceCursor (int bytes) |
| Return a pointer to buffer space and advance internal pointers to reflect the allocated buffers space. More... | |
| template<typename T > | |
| void | __pack (const T *m_data, unsigned int m_bytes) |
| Pack the specified data to the buffer. More... | |
| template<typename T > | |
| void | __unpack (T *m_data, unsigned int m_bytes) |
| Unpack the specified data from the buffer. More... | |
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.
|
privatedelete |
| from | The value to copy to this object. |
|
privatedelete |
| from | The value to copy to this object. |
|
inline |
Return a pointer to the start of the message buffer.
| const void* IBTK::FixedSizedStream::getBufferStart | ( | ) | const |
Return a const pointer to the start of the message buffer.
|
inline |
Return the current size of the buffer in bytes.
|
inline |
Return the current index into the buffer.
|
inline |
Set the current index into the buffer. Further packing/unpacking will begin at this new location.
|
inline |
Reset the index to the beginning of the buffer. This is the same as setting the buffer index to zero via setCurrentIndex().
|
inlineoverridevirtual |
Pack a single bool into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove a single bool from the message stream.
Implements SAMRAI::tbox::AbstractStream.
Pack an array of bools into the message stream.
Implements SAMRAI::tbox::AbstractStream.
Remove an array of bools from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack a single char into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove a single char from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack an array of chars into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove an array of chars from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack a single double complex into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
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.
|
inlineoverridevirtual |
Pack a single double into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove a single double from the message stream.
Implements SAMRAI::tbox::AbstractStream.
Pack an array of doubles into the message stream.
Implements SAMRAI::tbox::AbstractStream.
Remove an array of doubles from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack a single float into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove a single float from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack an array of floats into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove an array of floats from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Pack a single integer into the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
inlineoverridevirtual |
Remove a single integer from the message stream.
Implements SAMRAI::tbox::AbstractStream.
Pack an array of integers into the message stream.
Implements SAMRAI::tbox::AbstractStream.
Remove an array of integers from the message stream.
Implements SAMRAI::tbox::AbstractStream.
|
privatedelete |
| that | The value to assign to this object. |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
1.8.17