OReftemplate type to implement handle/body behaviour with reference-counting
![]() | addTail (const TELEMENT& element) blocks if capacity != Infinite and isFull() is True until another element has been removed |
![]() | bind (T* pBody) Binds the body to this handle |
![]() | getBody () Gives access to the handles body |
![]() | getBodyPtr () Can be used instead of operator-> |
![]() | getCapacity () returns the max |
![]() | getHead () Removes the front element from the queue and returns it |
![]() | getLength () returns actual amount of entries in the queue |
![]() | isEmpty () returns True is getLength() is 0 |
![]() | isEmpty () Returns True is the body is empty (the handle does not point to a valid body) |
![]() | isEqualBody (const ORef Returns True is handle points to the same body |
![]() | isFull () if capacity is Infinite, always returns False |
![]() | isValid () Returns True is the body is "full" (the handle does point to a valid body) |
![]() | operator!= (const ORef Delegates comparison to the body |
![]() | operator) () Just in case you want to call handle() |
![]() | operator* () Allows (*handle) |
![]() | operator-> () Probably most common used: handle->someBodyOp() |
![]() | operator< (const ORef Needed to place ORefs into STL collection |
![]() | operator= (const ORef Overload assignment-operator to implement ref-counting |
![]() | operator= (T* pBody) Same as bind() |
![]() | operator== (const ORef Delegates comparison to the body |
![]() | operator== (const T* pBody) Returns True is "this" points to pBody |
![]() | operator> (const ORef Needed to place ORefs into STL collection |
![]() | OQueue (int capacity= Infinite ) default queue has no length-limitation (capacity= Infinite) |
![]() | ORef () Creates an "empty" reference, use "create()" or assignment/copy-operator to make it a valid reference |
![]() | ORef (const ORef Overload copy-constr |
![]() | ORef (T* pBody) Creates a reference which points to pBody |
![]() | remove (const TELEMENT& element) Removes "element" from the queue, if it is found |
![]() | removeHead () Removes head from queue. If the queue is empty, it will NOT block. |
![]() | unbind () Unbind the body from this handle |
![]() | ~OQueue () removes all elements |
![]() | ~ORef () Decreases ref-count of underlying body |
OReftemplate type to implement handle/body behaviour with reference-counting. Note that the template-type T MUST implement IReferenceCounter.
~OQueue()
Boolean isEmpty()
Boolean isFull()
int getCapacity()
unsigned getLength()
void addTail(const TELEMENT& element)
TELEMENT getHead()
void removeHead()
void remove(const TELEMENT& element)
ORef()
ORef(T* pBody)
ORef(const ORef
~ORef()
ORef
void bind(T* pBody)
ORef
void operator= (T* pBody)
T& operator) ()
T& operator* ()
T* operator->()
T& getBody()
T* getBodyPtr()
Boolean isEmpty()
Boolean isValid()
Boolean isEqualBody(const ORef
Boolean operator== (const ORef
Boolean operator!= (const ORef
Boolean operator== (const T* pBody)
Boolean operator< (const ORef
Boolean operator> (const ORef
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de