ADTF_DEVICE_TOOLBOX  3.12.1 (ADTF 3.18.3)
cFlexRayFrameVector

Class for handling vectors of tFlexRayData structures. More...

Classes

class  cIterator
 Internal iterator class, used to iterate over a frame vector. More...
 

Public Member Functions

 cFlexRayFrameVector ()
 Constructs an empty frame vector.
 
 cFlexRayFrameVector (const void *pData, int nDataSize)
 Constructs a frame vector, referencing external data.
 
 ~cFlexRayFrameVector ()
 Standard destructor.
 
void Init ()
 Resets to initial state.
 
const void * GetDataPtr () const
 Returns pointer to internal stored frame vector.
 
int GetSize () const
 Returns size of internal stored frame vector.
 
cIterator GetFirst () const
 Returns iterator pointing to first frame.
 
tResult Append (const tFlexRayData *pFRData)
 Appends a new frame to the internal frame vector.
 
tResult Append (int nSize, tFlexRayData **pFRData)
 Appends a new empty memory block to the internal frame vector and returns the pointer.
 

Private Attributes

uint8_t * m_pData
 Pointer to the data area.
 
int m_nDataSize
 size of the data area (important if m_bDataRef is true)
 
int m_nDataSizeAllocated
 Size of the (self) allocated data area.
 
bool m_bDataRef
 Indicates, that the memoryblock is allocated by another module.
 

Detailed Description

Class for handling vectors of tFlexRayData structures.

Definition at line 46 of file flexray_framevector.h.