Stores objects with a qualified name. More...
#include <cregistrationlist.h>
Public Member Functions | |
virtual void | add (cOwnedObject *obj) |
virtual int | size () const |
virtual cOwnedObject * | get (int i) const |
virtual cOwnedObject * | find (const char *name) const |
virtual cOwnedObject * | lookup (const char *qualifiedName) const |
virtual void | sort () |
cObject methods | |
virtual std::string | info () const |
virtual void | forEachChild (cVisitor *v) |
Stores objects with a qualified name.
The getName() method of objects should return the unqualified name (without namespace or package name), and the getFullName() method the qualified name (with namespace or package).
virtual cOwnedObject* cRegistrationList::find | ( | const char * | name | ) | const [virtual] |
Returns (one of) the object(s) with the given name (not fullName!).
Returns NULL if not found.
virtual void cRegistrationList::forEachChild | ( | cVisitor * | v | ) | [virtual] |
virtual std::string cRegistrationList::info | ( | ) | const [virtual] |
Can be redefined to produce a one-line description of object.
The string appears in the graphical user interface (Tkenv) e.g. when the object is displayed in a listbox. The returned string should possibly be at most 80-100 characters long, and must not contain newline.
Reimplemented from cObject.
virtual cOwnedObject* cRegistrationList::lookup | ( | const char * | qualifiedName | ) | const [virtual] |
Returns the object with exactly the given qualified name (getFullName()).
Returns NULL if not found.
virtual void cRegistrationList::sort | ( | ) | [virtual] |
Sorts the elements by qualified name (getFullName()).
This affects the order get() will return the elements.