|
GCpp general purpose C++ library
version 1.0
|
#include <GNamed.hh>
Public Member Functions | |
| template<class Q > | |
| bool | IsInstanceOf () const |
| template<class Q > | |
| bool | IsInstanceOf () |
| virtual GNamed * | Clone () const |
| virtual const char * | ClassName () const |
| GNamed (const string &object_name="") | |
| GNamed (const GNamed &object) | |
| virtual | ~GNamed () |
| GNamed & | operator= (const GNamed &object) |
| virtual const string & | Name () const |
| virtual string & | Name () |
| virtual string | GetName () const |
| virtual string | GetInfo () const |
| virtual void | SetName (const string &object_name) |
| int | Compare (const GNamed &object) const |
| int | CompareDict (const GNamed &object) const |
| bool | operator== (const GNamed &object) const |
| bool | operator!= (const GNamed &object) const |
| bool | operator< (const GNamed &object) const |
| bool | operator> (const GNamed &object) const |
| bool | operator<= (const GNamed &object) const |
| bool | operator>= (const GNamed &object) const |
Static Public Member Functions | |
| static const char * | StaticClassName () |
Protected Attributes | |
| string | name |
| Object name. | |
Base class for named objects.
|
inline |
|
inline |
|
inlinevirtual |
Destructor.
|
inline |
Object names comparison function: it returns -1, 0 or 1 depending if the object name is lower, equal or bigger than the arguments name.
| object | object to compare with |
References GetName().
Referenced by GNamedListT< T >::__FindName(), operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
|
inline |
Alphabetical comparison function, with no distinction between upper and lower case, with no accents. Only if words are identical, the accents first, then upper/lower cases are tested.
| object | object to compare with |
References GetName().
Referenced by GNamedListT< T >::__FindName().
|
inlinevirtual |
Return an information about the object (for the base class, nothing more than the name).
Reimplemented in GItem, and GTreeLeafT< T >.
References name.
|
inlinevirtual |
Return object name.
Reimplemented in GTreeLeafT< T >.
References name.
Referenced by Compare(), CompareDict(), GTreeNodeT< T >::FindNode(), GItem::GetInfo(), operator!=(), operator<(), operator<=(), GItem::operator==(), operator==(), operator>(), and operator>=().
|
inline |
Macro from GCpp library that defines the following functions:
|
inlinevirtual |
Return object name.
References name.
|
inlinevirtual |
Return object name.
References name.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Set a new object name.
| object_name | new object name |
Reimplemented in GTreeLeafT< T >.
References name.
Referenced by GNamedListT< T >::__FindName(), and GTreeBranchT< T >::GTreeBranchT().