OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
Format Class Reference

#include <Format.h>

Collaboration diagram for Format:

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 27 of file Format.h.

Constructor & Destructor Documentation

◆ Format()

Format::Format ( Message * msg)

Definition at line 21 of file Format.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

◆ getFormatSize()

unsigned int Format::getFormatSize ( )
inline

Definition at line 36 of file Format.h.

References items.

◆ getItemBytes()

unsigned int Format::getItemBytes ( int i)
inline

Definition at line 42 of file Format.h.

References format_array.

◆ getItemCount()

unsigned int Format::getItemCount ( )
inline

Definition at line 30 of file Format.h.

References items.

◆ getItemElems()

unsigned int Format::getItemElems ( int i)
inline

Definition at line 39 of file Format.h.

References format_array.

◆ getSize()

unsigned int Format::getSize ( )
inline

Definition at line 33 of file Format.h.

References size.

◆ print()

void Format::print ( )

Definition at line 36 of file Format.cpp.

References format_array, items, and size.

Member Data Documentation

◆ format_array

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

Definition at line 50 of file Format.h.

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

◆ items

unsigned int Format::items
private

Definition at line 49 of file Format.h.

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

◆ size

unsigned int Format::size
private

Definition at line 49 of file Format.h.

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


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