PriorityList< ObjectType > Class Template Reference
#include <PriorityList.h>
Inheritance diagram for PriorityList< ObjectType >:
Collaboration diagram for PriorityList< ObjectType >:
Public Types | |
using | List = OwnedLinkedObjectListTemplate< PriorityNode< ObjectType > > |
![]() | |
using | Iterator = typename LinkedObjectTemplate< ObjectType >::template IteratorTemplate< ObjectType, ObjectType *, ObjectType & > |
using | ConstIterator = typename LinkedObjectTemplate< ObjectType >::template IteratorTemplate< const ObjectType, const ObjectType *, const ObjectType & > |
Public Member Functions | |
bool | add (ObjectType object, int priority) |
Adds and element and orders it according to its priority. Order is: High to low. More... | |
![]() | |
OwnedLinkedObjectListTemplate ()=default | |
OwnedLinkedObjectListTemplate (const OwnedLinkedObjectListTemplate &other)=delete | |
OwnedLinkedObjectListTemplate & | operator= (const OwnedLinkedObjectListTemplate &other)=delete |
~OwnedLinkedObjectListTemplate () | |
bool | remove (PriorityNode< ObjectType > *object) |
void | clear () |
![]() | |
LinkedObjectListTemplate ()=default | |
LinkedObjectListTemplate (ObjectType *object) | |
ObjectType * | head () |
const ObjectType * | head () const |
Iterator | begin () |
Iterator | end () |
ConstIterator | begin () const |
ConstIterator | end () const |
bool | add (ObjectType *object) |
bool | add (const ObjectType *object) |
bool | insert (ObjectType *object) |
bool | insert (const ObjectType *object) |
ObjectType * | pop () |
size_t | count () const |
bool | contains (const ObjectType &object) const |
![]() | |
LinkedObjectList () | |
LinkedObjectList (LinkedObject *object) | |
bool | add (LinkedObject *object) |
bool | add (const LinkedObject *object) |
bool | insert (LinkedObject *object) |
bool | insert (const LinkedObject *object) |
bool | remove (LinkedObject *object) |
LinkedObject * | pop () |
void | clear () |
LinkedObject * | head () |
const LinkedObject * | head () const |
bool | isEmpty () const |
Additional Inherited Members | |
![]() | |
LinkedObject * | mHead {nullptr} |
Member Typedef Documentation
◆ List
template<typename ObjectType >
using PriorityList< ObjectType >::List = OwnedLinkedObjectListTemplate<PriorityNode<ObjectType> > |
Member Function Documentation
◆ add()
template<typename ObjectType >
|
inline |
Adds and element and orders it according to its priority. Order is: High to low.
- Parameters
-
object priority
- Return values
-
bool true on success
The documentation for this class was generated from the following file: