The Pedigree Project 0.1
Public Attributes | List of all members
Buffer< T, allowShortOperation >::Segment Struct Reference
+ Collaboration diagram for Buffer< T, allowShortOperation >::Segment:

Public Attributes

T data [m_SegmentSize]
 
size_t reader
 
size_t size
 

Detailed Description

template<class T, bool allowShortOperation = false>
struct Buffer< T, allowShortOperation >::Segment

Holds a segment of data; more data can be written into this segment until it reaches capacity.

Definition at line 239 of file Buffer.h.

Constructor & Destructor Documentation

◆ Segment()

template<class T , bool allowShortOperation = false>
Buffer< T, allowShortOperation >::Segment::Segment ( )
inline

Definition at line 240 of file Buffer.h.

Member Data Documentation

◆ data

template<class T , bool allowShortOperation = false>
T Buffer< T, allowShortOperation >::Segment::data[m_SegmentSize]

◆ reader

template<class T , bool allowShortOperation = false>
size_t Buffer< T, allowShortOperation >::Segment::reader

Reader offset (the next reader starts here).

Definition at line 246 of file Buffer.h.

Referenced by Buffer< T, allowShortOperation >::read().

◆ size

template<class T , bool allowShortOperation = false>
size_t Buffer< T, allowShortOperation >::Segment::size

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