Base Framework
Public Member Functions | List of all members
Queue< TYPE, LOCK >::QueueImpl Class Reference

Inherits ReferenceCountedObject.

Public Member Functions

 QueueImpl () noexcept
 
 QueueImpl (const QueueImpl &copy)
 
 QueueImpl (QueueImpl &&move) noexcept
 
MemorySize getSize () const noexcept
 
bool isEmpty () const noexcept
 
void push (const TYPE &value)
 
Value pop ()
 
 ~QueueImpl ()
 
- Public Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject () noexcept
 
 ReferenceCountedObject (const ReferenceCountedObject &copy) noexcept
 
 ReferenceCountedObject (ReferenceCountedObject &&move) noexcept
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &copy) noexcept
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&move) noexcept
 
MemorySize getNumberOfReferences_INTERNAL () const noexcept
 
virtual bool useGarbageCollector () const noexcept
 
- Public Member Functions inherited from DynamicObject
 DynamicObject () noexcept
 
bool isValidObject () const noexcept
 
virtual ~DynamicObject () noexcept(false)
 
 _COM_AZURE_DEV__BASE__OVERRIDE_ALLOC ()
 

Constructor & Destructor Documentation

◆ QueueImpl() [1/3]

template<class TYPE , class LOCK = Unsafe>
Queue< TYPE, LOCK >::QueueImpl::QueueImpl ( )
inlinenoexcept

Initializes an empty queue.

◆ QueueImpl() [2/3]

template<class TYPE , class LOCK = Unsafe>
Queue< TYPE, LOCK >::QueueImpl::QueueImpl ( const QueueImpl copy)
inline

Initializes queue from other queue.

◆ QueueImpl() [3/3]

template<class TYPE , class LOCK = Unsafe>
Queue< TYPE, LOCK >::QueueImpl::QueueImpl ( QueueImpl &&  move)
inlinenoexcept

Initializes queue from other queue.

◆ ~QueueImpl()

template<class TYPE , class LOCK = Unsafe>
Queue< TYPE, LOCK >::QueueImpl::~QueueImpl ( )
inline

Destroys the queue.

Member Function Documentation

◆ getSize()

template<class TYPE , class LOCK = Unsafe>
MemorySize Queue< TYPE, LOCK >::QueueImpl::getSize ( ) const
inlinenoexcept

Returns the number of elements of the queue.

◆ isEmpty()

template<class TYPE , class LOCK = Unsafe>
bool Queue< TYPE, LOCK >::QueueImpl::isEmpty ( ) const
inlinenoexcept

Returns true if the queue is empty.

◆ pop()

template<class TYPE , class LOCK = Unsafe>
Value Queue< TYPE, LOCK >::QueueImpl::pop ( )
inline

Removes the value at the front of the queue.

◆ push()

template<class TYPE , class LOCK = Unsafe>
void Queue< TYPE, LOCK >::QueueImpl::push ( const TYPE &  value)
inline

Adds the value to the end of the queue.