GCpp general purpose C++ library
version 1.0
|
#include <GCollectionT.hh>
Public Member Functions | |
template<class Q > | |
bool | IsInstanceOf () const |
template<class Q > | |
bool | IsInstanceOf () |
virtual GCollectionT< T > * | Clone () const =0 |
virtual const char * | ClassName () const |
GCollectionT (u_int flg=0) | |
virtual | ~GCollectionT () |
virtual u_int | GetSize () const |
virtual u_int | GetCount () const |
virtual u_int | GetOptions () const |
bool | CheckOptions (u_int opts) const |
bool | FixPositionOption () const |
bool | IsSortable () const |
bool | IsAlwaysSorted () const |
bool | IsReverseSorted () const |
bool | UniqueNameOption () const |
bool | IsCaseSensitive () const |
bool | DictSortOption () const |
virtual void | Empty ()=0 |
Static Public Member Functions | |
static const char * | StaticClassName () |
Protected Attributes | |
u_int | options |
Collection option flags. | |
u_int | count_item |
Number of objects in the collection. | |
This is a base class for collections of objects that are instances of the class T. The class is abstract.
See GCpp template classes for more information about the template classes.
|
inline |
Base constructor
opts | option flags. |
|
inlinevirtual |
Destructor: the Empty() function cannot be called here since it is pure virtual, and at destructor level, derived class does not exist any more. The Empty function must be called in derived class destructor.
|
inline |
Return true if the argument option bits are set.
|
inline |
Return true if the name comparison is base on dictionary order instead of ascii codes.
References gcollection::gDictSort.
|
pure virtual |
Pure virtual function to empty the collection.
Implemented in GListT< T >, GListT< GTreeNodeT< T > >, GListT< GItem >, GListT< GPointer >, GListT< GString >, GListT< GInterval >, and GVectT< T >.
|
inline |
Return true if the "fixed element position" option is set.
References gcollection::gFixed.
|
inlinevirtual |
Return the number of elements in the collection.
|
inlinevirtual |
Return the option bits of the collection.
Referenced by GVectT< T >::operator=(), and GListT< T >::operator=().
|
inlinevirtual |
Return the number of elements in the collection.
Reimplemented in GVectT< T >.
|
inline |
Return true if the collection is always sorted.
References gcollection::gAlwaysSorted.
|
inline |
Return true if the name comparison is case sensitive.
References gcollection::gNoCaseSensitive.
Macro from GCpp library that defines the following functions:
|
inline |
Return true if the collection sorting is in reverse order (if sorted).
References gcollection::gReverseSort.
|
inline |
Return true if the collection is sortable.
References gcollection::gIsSortable.
|
inline |
Return true if the "unique name" option is selected.
References gcollection::gUniqueName.