11 #include <adtf_utils.h>
70 m_pDataVector = pDataVector;
90 m_nCurrentOffset += pFRData->
nSize;
100 return (m_nCurrentOffset < m_pDataVector->
GetSize()
176 RETURN_IF_POINTER_NULL(pFRData);
180 RETURN_IF_FAILED(
Append(pFRData->
nSize, &pNewData));
182 adtf::util::cMemoryBlock::MemCopy(pNewData, pFRData, pFRData->
nSize);
193 RETURN_ERROR(ERR_UNEXPECTED);
196 RETURN_IF_POINTER_NULL(pFRData);
202 uint8_t* pNewData =
new uint8_t[nNewDataSizeAllocated];
Internal iterator class, used to iterate over a frame vector.
void operator++()
Sets the iterator to the next frame of the vector.
tReference operator*() const
Returns the pointer to the frame, the iterator is currently pointing to.
cIterator(const cFlexRayFrameVector *pDataVector)
Constructs a new iterator object, which points to the first frame in the frame vector.
bool IsValid() const
Returns false, if the iterator points to an invalid frame or past the end of the vector.
Class for handling vectors of tFlexRayData structures.
void Init()
Resets to initial state.
tResult Append(const tFlexRayData *pFRData)
Appends a new frame to the internal frame vector.
cFlexRayFrameVector()
Constructs an empty frame vector.
uint8_t * m_pData
Pointer to the data area.
cIterator GetFirst() const
Returns iterator pointing to first frame.
tResult Append(int nSize, tFlexRayData **pFRData)
Appends a new empty memory block to the internal frame vector and returns the pointer.
int GetSize() const
Returns size of internal stored frame vector.
~cFlexRayFrameVector()
Standard destructor.
const void * GetDataPtr() const
Returns pointer to internal stored frame vector.
int m_nDataSizeAllocated
Size of the (self) allocated data area.
cFlexRayFrameVector(const void *pData, int nDataSize)
Constructs a frame vector, referencing external data.
bool m_bDataRef
Indicates, that the memoryblock is allocated by another module.
int m_nDataSize
size of the data area (important if m_bDataRef is true)
Copyright 2024 CARIAD SE.
axle::cFlexRayFrameVector cFlexRayFrameVector
Class for handling vectors of tFlexRayData structures.
FlexDay data structured is used for storing and transmitting FlexRay data.
tFR_TAG nTag
Tag of union (See tFR_TAG)
uint16_t nSize
Total size in bytes of this structure.
@ FR_TAG_INVALID
Tag for invalid data.