Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mvtx::PayLoadSG Class Reference

#include <online_distribution/blob/master/newbasic/mvtx_decoder/PayLoadSG.h>

+ Collaboration diagram for mvtx::PayLoadSG:

Classes

struct  SGPiece
 

Public Member Functions

 PayLoadSG ()=default
 
 ~PayLoadSG ()=default
 add n bytes to the buffer
 
void add (size_t n, bool err)
 move current pointer to the head
 
void rewind ()
 make buffer empty
 
void clear ()
 
void setDone ()
 
size_t & currentPieceId ()
 
size_t currentPieceId () const
 
const SGPiececurrentPiece () const
 
const SGPiecenextPiece ()
 
const SGPiecegetPiece (int i) const
 
size_t getNPieces () const
 

Private Attributes

std::vector< SGPiecemBuffer
 
size_t mCurrentPieceId = 0
 

Detailed Description

Definition at line 16 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 16 of file PayLoadSG.h

Constructor & Destructor Documentation

mvtx::PayLoadSG::PayLoadSG ( )
default
mvtx::PayLoadSG::~PayLoadSG ( )
default

add n bytes to the buffer

Member Function Documentation

void mvtx::PayLoadSG::add ( size_t  n,
bool  err 
)
inline

move current pointer to the head

Definition at line 25 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 25 of file PayLoadSG.h

References mBuffer.

void mvtx::PayLoadSG::clear ( )
inline

Definition at line 40 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 40 of file PayLoadSG.h

References mBuffer, and mCurrentPieceId.

Referenced by mvtx::GBTLink::clear().

+ Here is the caller graph for this function:

const SGPiece* mvtx::PayLoadSG::currentPiece ( ) const
inline

Definition at line 59 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 59 of file PayLoadSG.h

References mBuffer, and mCurrentPieceId.

Referenced by nextPiece().

+ Here is the caller graph for this function:

size_t& mvtx::PayLoadSG::currentPieceId ( )
inline

Definition at line 56 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 56 of file PayLoadSG.h

References mCurrentPieceId.

size_t mvtx::PayLoadSG::currentPieceId ( ) const
inline

Definition at line 57 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 57 of file PayLoadSG.h

References mCurrentPieceId.

size_t mvtx::PayLoadSG::getNPieces ( ) const
inline

Definition at line 70 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 70 of file PayLoadSG.h

References mBuffer.

const SGPiece* mvtx::PayLoadSG::getPiece ( int  i) const
inline

Definition at line 68 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 68 of file PayLoadSG.h

References i, and mBuffer.

const SGPiece* mvtx::PayLoadSG::nextPiece ( )
inline

Definition at line 61 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 61 of file PayLoadSG.h

References currentPiece(), and mCurrentPieceId.

+ Here is the call graph for this function:

void mvtx::PayLoadSG::rewind ( )
inline

make buffer empty

Definition at line 34 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 34 of file PayLoadSG.h

References mCurrentPieceId.

void mvtx::PayLoadSG::setDone ( )
inline

Definition at line 54 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 54 of file PayLoadSG.h

References mBuffer, and mCurrentPieceId.

Member Data Documentation

std::vector<SGPiece> mvtx::PayLoadSG::mBuffer
private

Definition at line 73 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 73 of file PayLoadSG.h

Referenced by add(), clear(), currentPiece(), getNPieces(), getPiece(), and setDone().

size_t mvtx::PayLoadSG::mCurrentPieceId = 0
private

Definition at line 74 of file PayLoadSG.h.

View newest version in sPHENIX GitHub at line 74 of file PayLoadSG.h

Referenced by clear(), currentPiece(), currentPieceId(), nextPiece(), rewind(), and setDone().


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