My Project
|
Classes | |
struct | FrameBufferSlot |
Public Member Functions | |
FrameBuffer (unsigned nFrame) | |
virtual | ~FrameBuffer () |
DataFrameManager * | getFrame (unsigned int id, bool create) |
DataFrameManager * | getNextFrame () |
DataFrameManager * | dispatchNextFrame () |
unsigned int | getNframesInQueue () |
Protected Attributes | |
std::vector< struct FrameBufferSlot > | slots_ |
unsigned long | nSlot_ |
FrameBuffer::FrameBuffer | ( | unsigned | nFrame | ) |
Constructor.
|
virtual |
Destructor.
....................................................................... Destructor.
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.
|
protected |
The number of frames in our buffer
|
protected |
A vector of slots