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

#include <Formatter.h>

Public Member Functions

 Format (Message *)
 
unsigned int getItemCount ()
 
unsigned int getSize ()
 
unsigned int getFormatSize ()
 
unsigned int getItemElems (int i)
 
unsigned int getItemBytes (int i)
 
void print ()
 

Private Attributes

unsigned int items
 
unsigned int size
 
std::vector< unsigned int > format_array
 

Detailed Description

Definition at line 24 of file Formatter.h.

Constructor & Destructor Documentation

Format::Format ( Message msg)

Definition at line 3 of file Formatter.cpp.

References format_array, Message::item(), items, Message::MsgItem::numBytes(), Message::MsgItem::numElems(), size, and Message::size().

Here is the call graph for this function:

Member Function Documentation

unsigned int Format::getFormatSize ( )
inline

Definition at line 36 of file Formatter.h.

References items.

unsigned int Format::getItemBytes ( int  i)
inline

Definition at line 44 of file Formatter.h.

References format_array.

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

unsigned int Format::getItemCount ( )
inline

Definition at line 28 of file Formatter.h.

References items.

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

unsigned int Format::getItemElems ( int  i)
inline

Definition at line 40 of file Formatter.h.

References format_array.

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

unsigned int Format::getSize ( )
inline

Definition at line 32 of file Formatter.h.

References size.

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

void Format::print ( )

Definition at line 18 of file Formatter.cpp.

References endl(), format_array, items, and size.

Here is the call graph for this function:

Member Data Documentation

std::vector<unsigned int> Format::format_array
private

Definition at line 53 of file Formatter.h.

Referenced by Format(), getItemBytes(), getItemElems(), and print().

unsigned int Format::items
private

Definition at line 52 of file Formatter.h.

Referenced by Format(), getFormatSize(), getItemCount(), and print().

unsigned int Format::size
private

Definition at line 52 of file Formatter.h.

Referenced by Format(), getSize(), and print().


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