cRegistrationList Class Reference

#include <cregistrationlist.h>

Inheritance diagram for cRegistrationList:

cNamedObject noncopyable cObject

List of all members.


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

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)


Member Function Documentation

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 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 void cRegistrationList::add ( cOwnedObject obj  )  [virtual]

Adds an object to the container.

virtual int cRegistrationList::size (  )  const [inline, virtual]

Returns the number of elements.

virtual cOwnedObject* cRegistrationList::get ( int  i  )  const [virtual]

Returns the ith element, or NULL.

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 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 Wed Apr 3 14:40:28 2013 for OMNeT++ Simulation Library by  doxygen 1.5.5