Vector BLF
Vector::BLF::ObjectQueue< T > Class Template Reference

#include <ObjectQueue.h>

Public Member Functions

virtual T * read ()
 
virtual DWORD tellg () const
 
void write (T *obj)
 
virtual DWORD tellp () const
 
virtual bool good () const
 
virtual bool eof () const
 
virtual void abort ()
 
virtual void setFileSize (DWORD fileSize)
 
virtual void setBufferSize (DWORD bufferSize)
 

Public Attributes

std::condition_variable tellgChanged
 
std::condition_variable tellpChanged
 

Detailed Description

template<typename T>
class Vector::BLF::ObjectQueue< T >

Thread-safe queue for ObjectHeaderBase

Member Function Documentation

◆ abort()

template<typename T >
void Vector::BLF::ObjectQueue< T >::abort
virtual

Stop further operations. Return from waiting reads.

◆ eof()

template<typename T >
bool Vector::BLF::ObjectQueue< T >::eof
virtual

Check whether eofbit is set.

Returns
true if eofbit is set

◆ good()

template<typename T >
bool Vector::BLF::ObjectQueue< T >::good
virtual

Check whether state of stream is good.

Returns
true if no error flags are set

◆ read()

template<typename T >
T * Vector::BLF::ObjectQueue< T >::read
virtual

Get access to front of queue.

Returns
object (or nullptr if empty)

◆ setBufferSize()

template<typename T >
void Vector::BLF::ObjectQueue< T >::setBufferSize ( DWORD  bufferSize)
virtual

Sets the maximum file size. Write operations block, if the size is reached.

Parameters
[in]bufferSizemaximum file size

◆ setFileSize()

template<typename T >
void Vector::BLF::ObjectQueue< T >::setFileSize ( DWORD  fileSize)
virtual

Set file size resp. end-of-file position.

Parameters
[in]fileSizefile size

◆ tellg()

template<typename T >
DWORD Vector::BLF::ObjectQueue< T >::tellg
virtual

Get position in input sequence.

Returns
Read position

◆ tellp()

template<typename T >
DWORD Vector::BLF::ObjectQueue< T >::tellp
virtual

Get position in output sequence.

Returns
Write position

◆ write()

template<typename T >
void Vector::BLF::ObjectQueue< T >::write ( T *  obj)

Enqueue an object to end of queue.

nullptr can be pushed to indicate eof.

Parameters
[in]objobject

Member Data Documentation

◆ tellgChanged

template<typename T >
std::condition_variable Vector::BLF::ObjectQueue< T >::tellgChanged

data was dequeued

◆ tellpChanged

template<typename T >
std::condition_variable Vector::BLF::ObjectQueue< T >::tellpChanged

data was enqueued


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