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 > > |
Public Types inherited from LinkedObjectListTemplate< 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... | |
Public Member Functions inherited from OwnedLinkedObjectListTemplate< PriorityNode< ObjectType > > | |
| OwnedLinkedObjectListTemplate ()=default | |
| OwnedLinkedObjectListTemplate (const OwnedLinkedObjectListTemplate &other)=delete | |
| OwnedLinkedObjectListTemplate & | operator= (const OwnedLinkedObjectListTemplate &other)=delete |
| ~OwnedLinkedObjectListTemplate () | |
| bool | remove (PriorityNode< ObjectType > *object) |
| void | clear () |
Public Member Functions inherited from LinkedObjectListTemplate< ObjectType > | |
| 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 |
Public Member Functions inherited from LinkedObjectList | |
| LinkedObjectList ()=default | |
| 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 | |
Protected Attributes inherited from LinkedObjectList | |
| 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:
Public Types inherited from
1.9.1