OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Attributes | List of all members
MsgBuffer Class Reference

#include <Formatter.h>

Collaboration diagram for MsgBuffer:
Collaboration graph
[legend]

Public Member Functions

 MsgBuffer (Format *f, int count, int offset=0)
 
 MsgBuffer (Format *f, char *d, int size)
 
bool add (Message *)
 
Messageget ()
 
template<class T >
void get (T &v)
 
template<class T >
void put (T &v)
 
int getSize ()
 
void * getBuffer ()
 
FormatgetFormat ()
 
 ~MsgBuffer ()
 

Private Attributes

Formatformat
 
unsigned int datasize
 
unsigned int writepos
 
unsigned int readpos
 
std::vector< char > data
 

Detailed Description

Definition at line 57 of file Formatter.h.

Constructor & Destructor Documentation

MsgBuffer::MsgBuffer ( Format f,
int  count,
int  offset = 0 
)

Definition at line 28 of file Formatter.cpp.

References data, datasize, format, and Format::getSize().

Here is the call graph for this function:

MsgBuffer::MsgBuffer ( Format f,
char *  d,
int  size 
)

Definition at line 36 of file Formatter.cpp.

References data, and datasize.

MsgBuffer::~MsgBuffer ( )

Definition at line 45 of file Formatter.cpp.

Member Function Documentation

bool MsgBuffer::add ( Message msg)
Message * MsgBuffer::get ( )
template<class T >
void MsgBuffer::get ( T v)
inline

Definition at line 68 of file Formatter.h.

References data, readpos, and T.

void* MsgBuffer::getBuffer ( )
inline
Format* MsgBuffer::getFormat ( )
inline

Definition at line 90 of file Formatter.h.

References format.

int MsgBuffer::getSize ( )
inline
template<class T >
void MsgBuffer::put ( T v)
inline

Definition at line 75 of file Formatter.h.

References data, T, and writepos.

Member Data Documentation

std::vector<char> MsgBuffer::data
private

Definition at line 96 of file Formatter.h.

Referenced by add(), get(), getBuffer(), MsgBuffer(), and put().

unsigned int MsgBuffer::datasize
private

Definition at line 95 of file Formatter.h.

Referenced by add(), get(), and MsgBuffer().

Format* MsgBuffer::format
private

Definition at line 94 of file Formatter.h.

Referenced by add(), get(), getFormat(), and MsgBuffer().

unsigned int MsgBuffer::readpos
private

Definition at line 95 of file Formatter.h.

Referenced by get().

unsigned int MsgBuffer::writepos
private

Definition at line 95 of file Formatter.h.

Referenced by add(), getSize(), and put().


The documentation for this class was generated from the following files: