#include <chead.h>
Inheritance diagram for cHead::
Public Methods | |
Constructors, destructor, assignment | |
cHead (const char *name=NULL) | |
cHead (const cHead &h) | |
virtual | ~cHead () |
cHead& | operator= (const cHead &) |
Redefined cObject member functions. | |
virtual cObject* | dup () 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. |
|
Copy constructor. |
|
Destructor. Inherited from cObject, it deletes all owned objects (i.e. those in the list) that were created on the heap. |
|
Returns the number of objects in the list. |
|
Dupping is not implemented for this class. This function gives an error (throws cException) 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. |
|
Assignment is not supported by this class: this method throws a cException when called. |