|
ifw-ccf
3.0.0-pre2
|
The FrameQueue class implements a queue, to manage a set of CCF DataFrame instances as a ring buffer. More...
#include <frameQueue.hpp>
Public Member Functions | |
| FrameQueue (const std::string &name, const uint16_t nb_of_buffers) | |
| Instantiate a Frame Queue with the given name and the given number of buffers (DataFrame instances). More... | |
| ~FrameQueue () | |
| void | Reset () |
| Reset the Frame Queue object. This means in practice to reset/free the DataFrame objects in the queue. More... | |
| const std::string & | GetName () const |
| Return the name of the Frame Queue. More... | |
| void | GetFreeFrame (const uint16_t consumers, DataFrame **frame) |
| void | GetFrame (uint16_t frame_number, DataFrame **frame) |
| Get reference to the given frame number in the queue. More... | |
| uint16_t | GetNbOfBuffers () const |
| Return the number of buffers in the queue. More... | |
| uint16_t | GetNbOfFreeBuffers () |
| Return the number of free buffers in the queue. More... | |
Public Member Functions inherited from ccf::Base | |
| Base () | |
| ~Base () | |
| const std::string & | GetClassName () const |
| Return the allocated name of the class. More... | |
| log4cplus::Logger & | Loggger () |
| Return reference to logger used in this context. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ccf::Base | |
| static ccf::mptk::Manager & | Mptk () |
| Return reference to internal MPTK instance (singleton). More... | |
| static void | SetLogLevel (const ccf::LogLevel log_level) |
| Set the log level. More... | |
| static ccf::LogLevel | GetLogLevel () |
| Return the current CCF log level. More... | |
Protected Member Functions inherited from ccf::Base | |
| void | SetClassName (const std::string &class_name) |
| Set the name of the class in question. More... | |
| void | SetLogger (log4cplus::Logger &logger) |
| Set reference to logger used in this context. More... | |
Protected Attributes inherited from ccf::Base | |
| log4cplus::Logger | m_logger |
The FrameQueue class implements a queue, to manage a set of CCF DataFrame instances as a ring buffer.
| ccf::common::FrameQueue::FrameQueue | ( | const std::string & | name, |
| const uint16_t | nb_of_buffers | ||
| ) |
Instantiate a Frame Queue with the given name and the given number of buffers (DataFrame instances).
| ccf::common::FrameQueue::~FrameQueue | ( | ) |
| void ccf::common::FrameQueue::GetFrame | ( | uint16_t | frame_number, |
| DataFrame ** | frame | ||
| ) |
Get reference to the given frame number in the queue.
| void ccf::common::FrameQueue::GetFreeFrame | ( | const uint16_t | consumers, |
| DataFrame ** | frame | ||
| ) |
Get a free Data Frame from the queue, i.e. a frame object not having any consumers signed up. The "consumers" parameter indicates how many consumers will be using the data in the frame before it can be considered as free.
| const std::string & ccf::common::FrameQueue::GetName | ( | ) | const |
Return the name of the Frame Queue.
| uint16_t ccf::common::FrameQueue::GetNbOfBuffers | ( | ) | const |
Return the number of buffers in the queue.
| uint16_t ccf::common::FrameQueue::GetNbOfFreeBuffers | ( | ) |
Return the number of free buffers in the queue.
| void ccf::common::FrameQueue::Reset | ( | ) |
Reset the Frame Queue object. This means in practice to reset/free the DataFrame objects in the queue.