My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::FrameBuffer Class Reference
Inheritance diagram for gcp::util::FrameBuffer:
gcp::util::AntennaFrameBuffer gcp::util::ArrayFrameBuffer

Classes

struct  FrameBufferSlot
 

Public Member Functions

 FrameBuffer (unsigned nFrame)
 
virtual ~FrameBuffer ()
 
DataFrameManagergetFrame (unsigned int id, bool create)
 
DataFrameManagergetNextFrame ()
 
DataFrameManagerdispatchNextFrame ()
 
unsigned int getNframesInQueue ()
 

Protected Attributes

std::vector< struct
FrameBufferSlot
slots_
 
unsigned long nSlot_
 

Constructor & Destructor Documentation

FrameBuffer::FrameBuffer ( unsigned  nFrame)

Constructor.

FrameBuffer::~FrameBuffer ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

DataFrameManager * FrameBuffer::dispatchNextFrame ( )

Return a pointer to the next slot to be dispatched to the outside world. Using this method guarantees that the returned pointer will not be modified until the next call to dispatchNextFrame(), since the DataFrameManager object returned is locked until dispatchNextFrame() is called again.

....................................................................... Return a pointer to the next slot to be dispatched to the outside world.

DataFrameManager * FrameBuffer::getFrame ( unsigned int  id,
bool  create 
)

Return a pointer to the frame with the passed id. If no frame with that id exists, and create == true, this call will create it. If no frame with that id exists, and create == false, this call returns NULL.

....................................................................... Return a pointer to a data frame in the buffer. If a slot with the passed id has already been installed, that slot will be returned. If no slots matching the passed id were found, and create == true, the next free slot will be initialized with the passed id, and its pointer returned. Else NULL will be returned if no slot with the passed id was found, and create == false.

DataFrameManager * FrameBuffer::getNextFrame ( )

Return a pointer to the next free data frame in the buffer. Creates a new frame on every call.

....................................................................... Return a pointer to the next available frame in the buffer

unsigned int FrameBuffer::getNframesInQueue ( )

Public method to query how many frames are waiting in the queue.

....................................................................... Public method to query how many frames are waiting in the queue.

Member Data Documentation

unsigned long gcp::util::FrameBuffer::nSlot_
protected

The number of frames in our buffer

std::vector<struct FrameBufferSlot> gcp::util::FrameBuffer::slots_
protected

A vector of slots


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