GCpp general purpose C++ library
version 1.0
|
The template classes for collections inherits from the abstract base class GCollectionT.
The derived classes define the functions to add or remove objects in the collection. The default behaviour when adding an object to a collection is the following:
This behaviour can be changed with the collection options flags (see gcoll namespace). For example, setting the option gcollection:gDeepCopy will force the collection, when adding an object, to make a copy of the object (with the Clone() function) and to adopt this copy.
The information whether an objet must be deleted or not is stored in the iterator flags.