PriorityList.h
Go to the documentation of this file.
15 template <typename ObjectType> class PriorityNode : public LinkedObjectTemplate<PriorityNode<ObjectType>>
26 template <typename ObjectType> class PriorityList : public OwnedLinkedObjectListTemplate<PriorityNode<ObjectType>>
27 {
Base class template for linked items with type casting.
Definition: LinkedObject.h:61
Class template for singly-linked list of objects.
Definition: LinkedObjectList.h:174
bool add(PriorityNode< ObjectType > *object)
Definition: LinkedObjectList.h:134
Definition: PriorityList.h:26
PriorityNode< ObjectType > * head()
Definition: LinkedObjectList.h:104
bool add(ObjectType object, int priority)
Adds and element and orders it according to its priority. Order is: High to low.
Definition: PriorityList.h:38
ObjectType
Definition: Libraries/jerryscript/src/include/Jerryscript/Types.h:44
bool insert(PriorityNode< ObjectType > *object)
Definition: LinkedObjectList.h:144
Definition: PriorityList.h:15