OwnedLinkedObjectListTemplate< ObjectType > Class Template Reference
Class template for singly-linked list of objects. More...
#include <LinkedObjectList.h>
Inheritance diagram for OwnedLinkedObjectListTemplate< ObjectType >:
Collaboration diagram for OwnedLinkedObjectListTemplate< ObjectType >:
Public Member Functions | |
~OwnedLinkedObjectListTemplate () | |
bool | remove (ObjectType *object) |
void | clear () |
![]() | |
LinkedObjectListTemplate ()=default | |
LinkedObjectListTemplate (ObjectType *object) | |
ObjectType * | head () |
const ObjectType * | head () const |
ObjectType::Iterator | begin () |
ObjectType::Iterator | end () |
ObjectType::ConstIterator | begin () const |
ObjectType::ConstIterator | end () const |
size_t | count () const |
bool | contains (const ObjectType &object) const |
![]() | |
LinkedObjectList () | |
LinkedObjectList (LinkedObject *object) | |
bool | add (LinkedObject *object) |
bool | add (const LinkedObject *object) |
bool | remove (LinkedObject *object) |
void | clear () |
LinkedObject * | head () |
const LinkedObject * | head () const |
bool | isEmpty () const |
Additional Inherited Members | |
![]() | |
LinkedObject * | mHead {nullptr} |
Detailed Description
template<typename ObjectType>
class OwnedLinkedObjectListTemplate< ObjectType >
Class template for singly-linked list of objects.
- Note
- We own the objects so are responsible for destroying them when removed
Constructor & Destructor Documentation
◆ ~OwnedLinkedObjectListTemplate()
template<typename ObjectType>
|
inline |
Member Function Documentation
◆ clear()
template<typename ObjectType>
|
inline |
◆ remove()
template<typename ObjectType>
|
inline |
The documentation for this class was generated from the following file: