Public Member Functions | Private Attributes
XnQueue Class Reference

#include <XnQueue.h>

Inheritance diagram for XnQueue:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual XnStatus Init ()
XnBool IsEmpty () const
virtual XnStatus Pop (XnValue &value)
virtual XnStatus Push (XnValue const &value)
virtual XnUInt32 Size () const
XnValue const & Top () const
XnValueTop ()
 XnQueue ()
virtual ~XnQueue ()

Private Attributes

XnList m_List

Detailed Description

The queue

Definition at line 40 of file XnQueue.h.


Constructor & Destructor Documentation

XnQueue::XnQueue ( ) [inline]

Constructor. Initialize internal representations

Definition at line 46 of file XnQueue.h.

virtual XnQueue::~XnQueue ( ) [inline, virtual]

Destructor. Destroy internal representations

Definition at line 50 of file XnQueue.h.


Member Function Documentation

virtual XnStatus XnQueue::Init ( ) [inline, virtual]

Initialized the queue. This method should be called before calling any other method.

Reimplemented in XnThreadSafeQueue.

Definition at line 55 of file XnQueue.h.

XnBool XnQueue::IsEmpty ( ) const [inline]

Check if queue is empty

Definition at line 117 of file XnQueue.h.

virtual XnStatus XnQueue::Pop ( XnValue value) [inline, virtual]

Pop the value at the top of the queue

Parameters:
value[out] The value that was at the top of the queue
Returns:
XN_STATUS_IS_EMPTY The queue is empty

Reimplemented in XnThreadSafeQueue.

Definition at line 83 of file XnQueue.h.

virtual XnStatus XnQueue::Push ( XnValue const &  value) [inline, virtual]

Push a new value to the queue

Parameters:
value[in] The value to add to the queue
Returns:
XN_STATUS_ALLOC_FAILED Failed to add to the queue because no nodes are available.

Reimplemented in XnThreadSafeQueue.

Definition at line 67 of file XnQueue.h.

virtual XnUInt32 XnQueue::Size ( ) const [inline, virtual]

Get current size of queue

Reimplemented in XnThreadSafeQueue.

Definition at line 125 of file XnQueue.h.

XnValue const& XnQueue::Top ( ) const [inline]

Get the value at the top of the queue (it is user responsibility to check queue is not empty)

Returns:
a reference to the object at head of the queue.

Definition at line 99 of file XnQueue.h.

XnValue& XnQueue::Top ( ) [inline]

Get the value at the top of the queue (it is user responsibility to check queue is not empty)

Returns:
a reference to the object at head of the queue.

Definition at line 109 of file XnQueue.h.


Member Data Documentation

The internal XnList with which the queue is implemented.

Definition at line 132 of file XnQueue.h.


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


nao_openni
Author(s): Bener SUAY
autogenerated on Mon Jan 6 2014 11:27:52