HIPO4 C++ Library 4.4.1
Columnar I/O library for CLAS12 physics data
Loading...
Searching...
No Matches
hipo::structure Class Reference

#include <bank.h>

Inheritance diagram for hipo::structure:
[legend]

Public Member Functions

 structure ()
 
 structure (int size)
 
 structure (int __group, int __item, std::string &str)
 
virtual ~structure ()=default
 
bool allocate (int size)
 
int getSize () const noexcept
 
int getHeaderSize () const noexcept
 
int getDataSize () const noexcept
 
int getType () const
 
int getGroup () const
 
int getItem () const
 
void init (const char *buffer, int size)
 
void initNoCopy (const char *buffer, int size)
 
const char * getAddress ()
 
virtual void show () const
 
void setSize (int size)
 
void setHeaderSize (int size)
 
void setDataSize (int size)
 
int getIntAt (int index) const noexcept
 
int16_t getShortAt (int index) const noexcept
 
int8_t getByteAt (int index) const noexcept
 
float getFloatAt (int index) const noexcept
 
double getDoubleAt (int index) const noexcept
 
long getLongAt (int index) const noexcept
 
std::string getStringAt (int index)
 
void putIntAt (int index, int value)
 
void putShortAt (int index, int16_t value)
 
void putByteAt (int index, int8_t value)
 
void putFloatAt (int index, float value)
 
void putDoubleAt (int index, double value)
 
void putLongAt (int index, int64_t value)
 
void putStringAt (int index, std::string &str)
 
virtual void notify ()
 

Protected Member Functions

void initStructureBySize (int __group, int __item, int __type, int __size)
 
std::vector< char > & getStructureBuffer ()
 
int getStructureBufferSize ()
 

Protected Attributes

int dataOffset = 8
 

Friends

class tuple
 
class event
 

Constructor & Destructor Documentation

◆ structure() [1/3]

hipo::structure::structure ( )
inline

◆ structure() [2/3]

hipo::structure::structure ( int  size)
inline

◆ structure() [3/3]

hipo::structure::structure ( int  __group,
int  __item,
std::string &  str 
)

◆ ~structure()

virtual hipo::structure::~structure ( )
virtualdefault

Member Function Documentation

◆ initStructureBySize()

void hipo::structure::initStructureBySize ( int  __group,
int  __item,
int  __type,
int  __size 
)
protected

◆ getStructureBuffer()

std::vector< char > & hipo::structure::getStructureBuffer ( )
inlineprotected

◆ getStructureBufferSize()

int hipo::structure::getStructureBufferSize ( )
inlineprotected

◆ allocate()

bool hipo::structure::allocate ( int  size)

◆ getSize()

int hipo::structure::getSize ( ) const
inlinenoexcept

◆ getHeaderSize()

int hipo::structure::getHeaderSize ( ) const
inlinenoexcept

◆ getDataSize()

int hipo::structure::getDataSize ( ) const
inlinenoexcept

◆ getType()

int hipo::structure::getType ( ) const

◆ getGroup()

int hipo::structure::getGroup ( ) const

◆ getItem()

int hipo::structure::getItem ( ) const

◆ init()

void hipo::structure::init ( const char *  buffer,
int  size 
)

◆ initNoCopy()

void hipo::structure::initNoCopy ( const char *  buffer,
int  size 
)

◆ getAddress()

const char * hipo::structure::getAddress ( )

◆ show()

void hipo::structure::show ( ) const
virtual

Reimplemented in hipo::bank.

◆ setSize()

void hipo::structure::setSize ( int  size)

◆ setHeaderSize()

void hipo::structure::setHeaderSize ( int  size)

◆ setDataSize()

void hipo::structure::setDataSize ( int  size)

◆ getIntAt()

int hipo::structure::getIntAt ( int  index) const
inlinenoexcept

◆ getShortAt()

int16_t hipo::structure::getShortAt ( int  index) const
inlinenoexcept

◆ getByteAt()

int8_t hipo::structure::getByteAt ( int  index) const
inlinenoexcept

◆ getFloatAt()

float hipo::structure::getFloatAt ( int  index) const
inlinenoexcept

◆ getDoubleAt()

double hipo::structure::getDoubleAt ( int  index) const
inlinenoexcept

◆ getLongAt()

long hipo::structure::getLongAt ( int  index) const
inlinenoexcept

◆ getStringAt()

std::string hipo::structure::getStringAt ( int  index)

◆ putIntAt()

void hipo::structure::putIntAt ( int  index,
int  value 
)
inline

◆ putShortAt()

void hipo::structure::putShortAt ( int  index,
int16_t  value 
)
inline

◆ putByteAt()

void hipo::structure::putByteAt ( int  index,
int8_t  value 
)
inline

◆ putFloatAt()

void hipo::structure::putFloatAt ( int  index,
float  value 
)
inline

◆ putDoubleAt()

void hipo::structure::putDoubleAt ( int  index,
double  value 
)
inline

◆ putLongAt()

void hipo::structure::putLongAt ( int  index,
int64_t  value 
)
inline

◆ putStringAt()

void hipo::structure::putStringAt ( int  index,
std::string &  str 
)

◆ notify()

virtual void hipo::structure::notify ( )
inlinevirtual

Reimplemented in hipo::bank.

Friends And Related Symbol Documentation

◆ tuple

friend class tuple
friend

◆ event

friend class event
friend

Member Data Documentation

◆ dataOffset

int hipo::structure::dataOffset = 8
protected

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