Queue class
Void | Queue::Delete (Void *obj) Deletes 1st item (from "current") which "object" corresponds to |
Void | Queue::DeleteAll () Deletes all items in Q (not objects!) |
Void* | Queue::DeleteAt (Int index) Deletes item at position |
Void | Queue::DeleteCurrent () Kratky_komentar_s_teckou_na_konci |
Void* | Queue::First () Returns the 1st object; sets "current" to this item |
Err | Queue::Insert (Void *obj) Inserts the object to the end of queue |
Int | Queue::InsertAt (Void *obj, Int index) Kratky_komentar_s_teckou_na_konci |
Err | Queue::InsertAtCurrent (Void *obj) Kratky_komentar_s_teckou_na_konci |
Void* | Queue::ItemAt (Int index) Returns object at the position |
Int | Queue::ItemsOfQ () Returns number of items in Q |
Void* | Queue::Next () Returns the next (=current's successor) object; sets "current" to this item |
Queue::Queue () Kratky_komentar_s_teckou_na_konci | |
Void | Queue::SetCurrent (Int index) Kratky_komentar_s_teckou_na_konci |
Void | 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();
alphabetic index hierarchy of classes
generated by doc++