Project
Loading...
Searching...
No Matches
o2::itsmft::PayLoadSG Class Reference

#include <PayLoadSG.h>

Classes

struct  SGPiece
 

Public Types

using DataType = unsigned char
 

Public Member Functions

 PayLoadSG ()=default
 
 ~PayLoadSG ()=default
 add n bytes to the buffer
 
void add (const DataType *ptr, size_t n)
 read current character value from buffer w/o stepping forward
 
bool current (char &v)
 read character value from buffer
 
bool next (char &v)
 read short value from buffer
 
bool next (uint16_t &v)
 move current pointer to the head
 
void rewind ()
 make buffer empty
 
void clear ()
 
void setDone ()
 
size_t & currentPieceID ()
 
size_t currentPieceID () const
 
size_t & currentEntryInPiece ()
 
size_t currentEntryInPiece () const
 
const SGPiececurrentPiece () const
 
const SGPiecenextPiece ()
 
const SGPiecegetPiece (int i) const
 
size_t getNPieces () const
 

Detailed Description

Definition at line 28 of file PayLoadSG.h.

Member Typedef Documentation

◆ DataType

Definition at line 32 of file PayLoadSG.h.

Constructor & Destructor Documentation

◆ PayLoadSG()

o2::itsmft::PayLoadSG::PayLoadSG ( )
default

◆ ~PayLoadSG()

o2::itsmft::PayLoadSG::~PayLoadSG ( )
default

add n bytes to the buffer

Member Function Documentation

◆ add()

void o2::itsmft::PayLoadSG::add ( const DataType ptr,
size_t  n 
)
inline

read current character value from buffer w/o stepping forward

Definition at line 38 of file PayLoadSG.h.

◆ clear()

void o2::itsmft::PayLoadSG::clear ( )
inline

Definition at line 95 of file PayLoadSG.h.

◆ current()

bool o2::itsmft::PayLoadSG::current ( char v)
inline

read character value from buffer

Definition at line 46 of file PayLoadSG.h.

◆ currentEntryInPiece() [1/2]

size_t & o2::itsmft::PayLoadSG::currentEntryInPiece ( )
inline

Definition at line 113 of file PayLoadSG.h.

◆ currentEntryInPiece() [2/2]

size_t o2::itsmft::PayLoadSG::currentEntryInPiece ( ) const
inline

Definition at line 114 of file PayLoadSG.h.

◆ currentPiece()

const SGPiece * o2::itsmft::PayLoadSG::currentPiece ( ) const
inline

Definition at line 116 of file PayLoadSG.h.

◆ currentPieceID() [1/2]

size_t & o2::itsmft::PayLoadSG::currentPieceID ( )
inline

Definition at line 110 of file PayLoadSG.h.

◆ currentPieceID() [2/2]

size_t o2::itsmft::PayLoadSG::currentPieceID ( ) const
inline

Definition at line 111 of file PayLoadSG.h.

◆ getNPieces()

size_t o2::itsmft::PayLoadSG::getNPieces ( ) const
inline

Definition at line 128 of file PayLoadSG.h.

◆ getPiece()

const SGPiece * o2::itsmft::PayLoadSG::getPiece ( int  i) const
inline

Definition at line 126 of file PayLoadSG.h.

◆ next() [1/2]

bool o2::itsmft::PayLoadSG::next ( char v)
inline

read short value from buffer

Definition at line 62 of file PayLoadSG.h.

◆ next() [2/2]

bool o2::itsmft::PayLoadSG::next ( uint16_t &  v)
inline

move current pointer to the head

Definition at line 78 of file PayLoadSG.h.

◆ nextPiece()

const SGPiece * o2::itsmft::PayLoadSG::nextPiece ( )
inline

Definition at line 118 of file PayLoadSG.h.

◆ rewind()

void o2::itsmft::PayLoadSG::rewind ( )
inline

make buffer empty

Definition at line 89 of file PayLoadSG.h.

◆ setDone()

void o2::itsmft::PayLoadSG::setDone ( )
inline

Definition at line 108 of file PayLoadSG.h.


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