OMNeT++ Simulation Library
6.0.3
|
#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 | |
cObject methods | |
virtual std::string | str () const override |
virtual void | forEachChild (cVisitor *v) override |
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 () |
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)=default | |
virtual | ~cObject () |
virtual const char * | getClassName () const |
bool | isName (const char *s) const |
virtual const char * | getFullName () const |
virtual std::string | getFullPath () const |
virtual std::string | getClassAndFullName () const |
virtual std::string | getClassAndFullPath () const |
const cObject * | getThisPtr () const |
virtual std::ostream & | printOn (std::ostream &os) const |
virtual cObject * | dup () const |
virtual cObject * | getOwner () const |
virtual bool | isOwnedObject () const |
virtual bool | isSoftOwner () const |
cObject * | findObject (const char *name, bool deep=true) |
virtual cClassDescriptor * | getDescriptor () const |
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 |
Returns a brief, one-line description of the object. The returned string does (should) NOT include the object's name and class. This method is used to display object information at several places in the Qtenv GUI, among others.
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.