cRegistrationList Class Reference

Stores objects with a qualified name. More...

#include <cregistrationlist.h>

Inheritance diagram for cRegistrationList:
cNamedObject noncopyable cObject

List of all members.

Public Member Functions

virtual void add (cOwnedObject *obj)
virtual int size () const
virtual cOwnedObjectget (int i) const
virtual cOwnedObjectfind (const char *name) const
virtual cOwnedObjectlookup (const char *qualifiedName) const
virtual void sort ()
cObject methods

virtual std::string info () const
virtual void forEachChild (cVisitor *v)

Detailed Description

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).


Member Function Documentation

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]

Enables traversing the object tree, performing some operation on each object.

The operation is encapsulated in the particular subclass of cVisitor.

This method should be redefined in every subclass to call v->visit(obj) for every obj object contained.

Reimplemented from cObject.

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.

See also:
detailedInfo()

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.


The documentation for this class was generated from the following file:
Generated on Tue Dec 2 11:16:30 2014 for OMNeT++ Simulation Library by  doxygen 1.6.3