OMNeT++ Simulation Library
5.6.1
|
#include <cregistrationlist.h>
Implements a list or table of objects with qualified names.
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 | |
iterator | begin () |
iterator | end () |
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 cOwnedObject * | lookup (const char *qualifiedName, const char *contextNamespace, bool fallbackToOmnetpp=false) |
virtual void | sort () |
cObject methods | |
virtual std::string | str () const override |
virtual void | forEachChild (cVisitor *v) override |
Public Member Functions inherited from cNamedObject | |
cNamedObject () | |
cNamedObject (const char *name, bool namepooling=true) | |
cNamedObject (const cNamedObject &obj) | |
virtual | ~cNamedObject () |
cNamedObject & | operator= (const cNamedObject &o) |
virtual void | parsimPack (cCommBuffer *buffer) const override |
virtual void | parsimUnpack (cCommBuffer *buffer) override |
virtual void | setName (const char *s) |
virtual const char * | getName () const override |
virtual void | setNamePooling (bool b) |
virtual bool | getNamePooling () |
Public Member Functions inherited from cObject | |
cObject () | |
cObject (const cObject &other) | |
virtual | ~cObject () |
virtual const char * | getClassName () const |
bool | isName (const char *s) const |
virtual const char * | getFullName () const |
virtual std::string | getFullPath () const |
const cObject * | getThisPtr () const |
virtual _OPPDEPRECATED std::string | info () const |
virtual _OPPDEPRECATED std::string | detailedInfo () const |
virtual cObject * | dup () const |
virtual cObject * | getOwner () const |
virtual bool | isOwnedObject () const |
cObject * | findObject (const char *name, bool deep=true) |
void | copyNotSupported () const |
Additional Inherited Members | |
Protected Member Functions inherited from cObject | |
virtual void | take (cOwnedObject *obj) |
virtual void | drop (cOwnedObject *obj) |
void | dropAndDelete (cOwnedObject *obj) |
|
overridevirtual |
Produce a one-line description of the object. The string is displayed at various places e.g. in graphical user interfaces.
Reimplemented from cObject.
|
overridevirtual |
|
inline |
Returns an iterator referring to the first element.
|
inline |
Returns an iterator referring to the past-the-end element.
|
virtual |
Adds an object to the container.
|
inlinevirtual |
Returns the number of elements.
|
virtual |
Returns the ith element, or nullptr.
|
virtual |
Returns (one of) the object(s) with the given name (not fullName!). Returns nullptr if not found.
|
virtual |
Returns the object with the exact given qualified name (getFullName()). Returns nullptr if not found.
|
virtual |
Returns the object with the given qualified name. If not found, it is also tried in the given context namespace(s). Returns nullptr if not found.
|
virtual |
Sorts the elements by qualified name (getFullName()). This affects the order get() will return the elements.