Note that, for the collection classes, instantiating the main collection template will automatically cause an instantion of the related node and cursor templates. This happens because each collection's cursor and node type are nested classes within the collection class. So instantiating the collection forces the instantiation of the nested template classes.
* Also note that each of the abstract collection classes have 'by reference' versions also, to support heterogenous collections (or it could still be homegenous and you just need to deal with dynamically allocated objects.) The links below will discuss bother versions. The names are always easy to relate. There is TBag_T and TRefBag_T, TStack_T and TRefStack_T, and so on.
| Class Name | Header File | ||||
| TBag_T, TBagNode_T, TBagCursor_T |
CIDLib_Bag.Hpp, CIDLib_IBag.Hpp This class represents an unordered collection of objects. |
||||
| TBaseArray_T | CIDLib_BaseArray.Hpp This template provides a simple, by value only, one dimensional array for primarily fundamental types. Not often in a CIDLib app do you need to deal with raw arrays but, if you do, these help to make it safe and convenient. This class is preinstantiated for all of the fundamental types, so you can just use them as is. |
||||
| TCollection_T, TRefCollection_T |
CIDLib_Collection.Hpp This is the base class for all of the abstract collections. It provides the API that all collections must live up to. |
||||
| TDeque_T, TDequeNode_T, TDequeCursor_T |
CIDLib_Deque.Hpp, CIDLib_IDeque.Hpp This class represents a deck of objects. It can be pushed and popped on either end, which I'm sure makes it very popular. |
||||
| TObjArray_T | CIDLib_ObjArray.Hpp, CIDLib_IObjArray.Hpp This class represents an array of objects. It supports random,indexed access as you would expect from an array class. |
||||
| TQueue_T, TQueueNode_T, TQueueCursor_T |
CIDLib_Queue.Hpp, CIDLib_IQueue.Hpp This class represents a queue of objects. Queues have one owning thread that can read it and multiple threads can write to it. Unlike all other collections, this one is automatically thread safe. |
||||
| TStack_T, TStackNode_T, TStackCursor_T |
CIDLib_Stack.Hpp, CIDLib_IStack.Hpp This class represents a stack of objects. Stacks are pushed onto at the top and popped back off of at the top. |
||||