#include <chead.h>
Inheritance diagram for cHead::
Public Methods | |
Constructors, destructor, assignment | |
cHead (const char *name=NULL) | |
cHead (const char *name, cHead *h) | |
cHead (const cHead &h) | |
virtual | ~cHead () |
cHead& | operator= (const cHead &) |
Redefined cObject member functions. | |
virtual const char* | className () const |
virtual cObject* | dup () const |
virtual const char* | inspectorFactoryName () const |
virtual void | forEach (ForeachFunc f) |
Container methods. | |
cObject* | find (const char *objname) const |
int | count () const |
NOTE: the dup() and operator=() functions are NOT implemented. dup() would require that every object in the list be duplicated. Since cHead is mostly an internal class and is NOT intended for use by the programmer as a container class, the dup() operation was considered unnecessary.
|
Constructor. |
|
Constructor. |
|
Copy constructor. |
|
The destructor deletes all objects in the list that were created on the heap. |
|
Returns pointer to a string containing the class name, "cHead". Reimplemented from cObject. |
|
Returns the number of objects in the list. |
|
Dupping is not implemented for this class. This function gives an error when called. Reimplemented from cObject. |
|
Searches the list for an object with the given name and returns its pointer. If no such object was found, NULL is returned. |
|
Calls the function passed for each object in the list. Reimplemented from cObject. |
|
Returns the name of the inspector factory class associated with this class. See cObject for more details. Reimplemented from cObject. |
|
Assignment is not supported for this class. This function raises an error when called. |