|
Vector BLF
|
#include <ObjectQueue.h>
Public Member Functions | |
| T * | read () |
| uint32_t | tellg () const |
| void | write (T *obj) |
| uint32_t | tellp () const |
| bool | good () const |
| bool | eof () const |
| void | abort () |
| void | setFileSize (uint32_t fileSize) |
| void | setBufferSize (uint32_t bufferSize) |
Public Attributes | |
| std::condition_variable | tellgChanged {} |
| std::condition_variable | tellpChanged {} |
Thread-safe queue for ObjectHeaderBase
| void Vector::BLF::ObjectQueue< T >::abort | ( | ) |
Stop further operations. Return from waiting reads.
| bool Vector::BLF::ObjectQueue< T >::eof | ( | ) | const |
Check whether eofbit is set.
| bool Vector::BLF::ObjectQueue< T >::good | ( | ) | const |
Check whether state of stream is good.
| T * Vector::BLF::ObjectQueue< T >::read | ( | ) |
Get access to front of queue.
| void Vector::BLF::ObjectQueue< T >::setBufferSize | ( | uint32_t | bufferSize | ) |
Sets the maximum file size. Write operations block, if the size is reached.
| [in] | bufferSize | maximum file size |
| void Vector::BLF::ObjectQueue< T >::setFileSize | ( | uint32_t | fileSize | ) |
Set file size resp. end-of-file position.
| [in] | fileSize | file size |
| uint32_t Vector::BLF::ObjectQueue< T >::tellg | ( | ) | const |
Get position in input sequence.
| uint32_t Vector::BLF::ObjectQueue< T >::tellp | ( | ) | const |
Get position in output sequence.
| void Vector::BLF::ObjectQueue< T >::write | ( | T * | obj | ) |
Enqueue an object to end of queue.
nullptr can be pushed to indicate eof.
| [in] | obj | object |
| std::condition_variable Vector::BLF::ObjectQueue< T >::tellgChanged {} |
data was dequeued
| std::condition_variable Vector::BLF::ObjectQueue< T >::tellpChanged {} |
data was enqueued