Inheritance diagram for phObject:
The most important feature of the phObject class is the phObject::setName methods. The 'name' here refers to the object name as seen in the source code. Every object should call phObject::setName in the constructor. Each time phObject::setName is called, the name is appended to a list that allows for a traversable list of inheritance. One can find out if an object is of some object type and can be properly cast to that object. This is similar to the Java instanceof operator. Assuming all objects adhere to the protocol this is very useful when passing phObject ptrs around to make sure that the passed pointer points to a valid object input.
Definition at line 52 of file phObject.h.
Public Member Functions
|phObject (const char *name)|
|void||setName (const char *n)|
|const char *||getName ()|
|const char **||getNameArray ()|
|unsigned long||getNameCount ()|
|int||isNamed (const char *n)|
|int||hasParent (const char *n)|
|virtual int||copy (phObject *copyto_obj)|
|virtual int||swap (phObject *obj)|
|Copyright (C) 2002 - 2007||
Philip D.S. Thoren ( firstname.lastname@example.org )
University Of Massachusetts at Lowell