Queue class
![]() | Queue::Delete (Void *obj) Deletes 1st item (from "current") which "object" corresponds to |
![]() | Queue::DeleteAll () Deletes all items in Q (not objects!) |
![]() | Queue::DeleteAt (Int index) Deletes item at position |
![]() | Queue::DeleteCurrent () Kratky_komentar_s_teckou_na_konci |
![]() | Queue::First () Returns the 1st object; sets "current" to this item |
![]() | Queue::Insert (Void *obj) Inserts the object to the end of queue |
![]() | Queue::InsertAt (Void *obj, Int index) Kratky_komentar_s_teckou_na_konci |
![]() | Queue::InsertAtCurrent (Void *obj) Kratky_komentar_s_teckou_na_konci |
![]() | Queue::ItemAt (Int index) Returns object at the position |
![]() | Queue::ItemsOfQ () Returns number of items in Q |
![]() | Queue::Next () Returns the next (=current's successor) object; sets "current" to this item |
![]() | Queue::Queue () Kratky_komentar_s_teckou_na_konci |
![]() | Queue::SetCurrent (Int index) Kratky_komentar_s_teckou_na_konci |
![]() | Queue::SetCurrent (Void *obj) Kratky_komentar_s_teckou_na_konci |
![]() | Queue::~Queue () Kratky_komentar_s_teckou_na_konci |
![]() | methods
|
![]() | attributes | ||||||||
![]() | methods
|
Queue class. A class which can store objects in queue. Important notices:
1) every 'delete' in this class deletes only the item not the object itself
2) every method, which returns an object, returns a void pointer; that is why the output has to be retyped
example: object = (RealTypeOfObject *)queue->First();
methods
Void SetCurrent(Int index)
Void SetCurrent(Void *obj)
virtual Err InsertAtCurrent(Void *obj)
Void DeleteCurrent()
methods
Queue()
virtual ~Queue()
virtual Err Insert(Void *obj)
virtual Int InsertAt(Void *obj, Int index)
Void Delete(Void *obj)
Void* DeleteAt(Int index)
Void DeleteAll()
Void* First()
Void* Next()
Void Queue::Delete(Void *obj)
Void Queue::DeleteAll()
Void* Queue::DeleteAt(Int index)
Void Queue::DeleteCurrent()
Void* Queue::First()
Err Queue::Insert(Void *obj)
Int Queue::InsertAt(Void *obj, Int index)
Err Queue::InsertAtCurrent(Void *obj)
Void* Queue::ItemAt(Int index)
Int Queue::ItemsOfQ()
Void* Queue::Next()
Queue::Queue()
Void Queue::SetCurrent(Int index)
Void Queue::SetCurrent(Void *obj)
Queue::~Queue()
alphabetic index hierarchy of classes
generated by doc++