|
GCpp general purpose C++ library
version 1.0
|
#include <GItem.hh>
Public Member Functions | |
| template<class Q > | |
| bool | IsInstanceOf () const |
| template<class Q > | |
| bool | IsInstanceOf () |
| virtual GSubItem * | Clone () const |
| virtual const char * | ClassName () const |
| GSubItem (const string &s, void *ptr=NULL, const int n=0, GItem *p=NULL) | |
| GSubItem (const GSubItem &original) | |
| GSubItem (GItem *p, const bool udat=true) | |
| virtual | ~GSubItem () |
| GSubItem & | operator= (const GSubItem &original) |
| bool | operator== (const GSubItem &item) |
| GItem * | GetParentItem () const |
| void | SetParentItem (GItem *par) |
Public Member Functions inherited from GItem | |
| template<class Q > | |
| bool | IsInstanceOf () const |
| template<class Q > | |
| bool | IsInstanceOf () |
| GItem (const string &s, void *ptr=NULL, const int n=0) | |
| GItem (const GItem &original) | |
| virtual | ~GItem () |
| GItem & | operator= (const GItem &original) |
| bool | operator== (const GItem &item) |
| int | GetId () const |
| void | SetId (const int n) |
| void * | GetUserData () const |
| void | SetUserData (void *ptr) |
| virtual string | GetInfo () const |
| virtual void | SetInfo (const string &info) |
| void | Select (const bool b=true) |
| bool | IsSelected () const |
Public Member Functions inherited from GNamed | |
| template<class Q > | |
| bool | IsInstanceOf () const |
| template<class Q > | |
| bool | IsInstanceOf () |
| 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 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 () |
Static Public Member Functions inherited from GItem | |
| static const char * | StaticClassName () |
Static Public Member Functions inherited from GNamed | |
| static const char * | StaticClassName () |
Protected Attributes | |
| GItem * | parent |
| Pointer to the element in main list. | |
Protected Attributes inherited from GItem | |
| bool | selected |
| Indicates if the element is selected. | |
| int | id |
| Identification number (for ROOT widgets) | |
| void * | user_data |
| Pointer on user data. | |
| string | data_info |
| More detailed information (if required) | |
Protected Attributes inherited from GNamed | |
| string | name |
| Object name. | |
This class is derived from GItem, for elements of sub-lists build from a main list.
The element in the main list is refered to with the parent pointer.
This class is used for example by GItemSelectionBox widget.
|
inline |
Constructor.
| s | display string (name) |
| ptr | object (user data) pointer |
| n | identification number for ROOT widgets |
| p | main item in parent collection (list) |
References parent.
|
inline |
|
inline |
Constructor from a main list element: the argument is copied and its address is set as parent pointer.
| p | pointer on parent list element |
| udat | indicates if the user data pointer should be copied |
References parent, and GItem::user_data.
|
inlinevirtual |
Destructor.
|
inline |
Get the pointer on the parent list item.
References parent.
|
inline |
Macro from GCpp library that defines the following functions:
|
inline |
|
inline |