VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
makVrv::DtLocklessQueue< T > Class Template Reference

DtLocklessQueue is a thread safe queue for single reader/single writer. More...

Inheritance diagram for makVrv::DtLocklessQueue< T >:
Inheritance graph
[legend]

Public Member Functions

 DtLocklessQueue (int size)
 CTOR.
 ~DtLocklessQueue ()
 DTOR.
void push (T newElement)
 Add an element fo the queue.
pop ()
 Remove an element from the queue.
bool okToPush ()
 Check to see if there is room in the queue.
int count ()
 Get the current element count.
 DtLocklessQueue (int size)
 CTOR.
 ~DtLocklessQueue ()
 DTOR.
void push (T newElement)
 Add an element fo the queue.
pop ()
 Remove an element from the queue.
bool okToPush ()
 Check to see if there is room in the queue.
int count ()
 Get the current element count.

Protected Attributes

std::vector< T > myElements
int myReadHead
int myWriteHead

Private Member Functions

 DtLocklessQueue ()
 Default CTOR (unimplemented)
 DtLocklessQueue (const DtLocklessQueue &orig)
 Copy CTOR (unimplemented)
DtLocklessQueueoperator= (const DtLocklessQueue &rhs)
 Assignment operator (unimplemented)
 DtLocklessQueue ()
 Default CTOR (unimplemented)
 DtLocklessQueue (const DtLocklessQueue &orig)
 Copy CTOR (unimplemented)
DtLocklessQueueoperator= (const DtLocklessQueue &rhs)
 Assignment operator (unimplemented)

Detailed Description

template<class T>
class makVrv::DtLocklessQueue< T >

DtLocklessQueue is a thread safe queue for single reader/single writer.

It may block if the queue fills. This provides a fast way to to transmit data between threads.

Constructor & Destructor Documentation

template<class T>
makVrv::DtLocklessQueue< T >::DtLocklessQueue ( int  size)

CTOR.

template<class T>
makVrv::DtLocklessQueue< T >::~DtLocklessQueue ( )

DTOR.

template<class T>
makVrv::DtLocklessQueue< T >::DtLocklessQueue ( )
private

Default CTOR (unimplemented)

template<class T>
makVrv::DtLocklessQueue< T >::DtLocklessQueue ( const DtLocklessQueue< T > &  orig)
private

Copy CTOR (unimplemented)

template<class T>
makVrv::DtLocklessQueue< T >::DtLocklessQueue ( int  size)

CTOR.

template<class T>
makVrv::DtLocklessQueue< T >::~DtLocklessQueue ( )

DTOR.

template<class T>
makVrv::DtLocklessQueue< T >::DtLocklessQueue ( )
private

Default CTOR (unimplemented)

template<class T>
makVrv::DtLocklessQueue< T >::DtLocklessQueue ( const DtLocklessQueue< T > &  orig)
private

Copy CTOR (unimplemented)

Member Function Documentation

template<class T>
void makVrv::DtLocklessQueue< T >::push ( newElement)

Add an element fo the queue.

template<class T>
T makVrv::DtLocklessQueue< T >::pop ( )

Remove an element from the queue.

template<class T>
bool makVrv::DtLocklessQueue< T >::okToPush ( )

Check to see if there is room in the queue.

If there is not enough room, the call to push will block

template<class T>
int makVrv::DtLocklessQueue< T >::count ( )

Get the current element count.

template<class T>
DtLocklessQueue& makVrv::DtLocklessQueue< T >::operator= ( const DtLocklessQueue< T > &  rhs)
private

Assignment operator (unimplemented)

template<class T>
void makVrv::DtLocklessQueue< T >::push ( newElement)

Add an element fo the queue.

template<class T>
T makVrv::DtLocklessQueue< T >::pop ( )

Remove an element from the queue.

template<class T>
bool makVrv::DtLocklessQueue< T >::okToPush ( )

Check to see if there is room in the queue.

If there is not enough room, the call to push will block

template<class T>
int makVrv::DtLocklessQueue< T >::count ( )

Get the current element count.

template<class T>
DtLocklessQueue& makVrv::DtLocklessQueue< T >::operator= ( const DtLocklessQueue< T > &  rhs)
private

Assignment operator (unimplemented)

Member Data Documentation

template<class T>
std::vector< T > makVrv::DtLocklessQueue< T >::myElements
protected
template<class T>
int makVrv::DtLocklessQueue< T >::myReadHead
protected
template<class T>
int makVrv::DtLocklessQueue< T >::myWriteHead
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)