|
OMNeT++ API 6.1
Discrete Event Simulation Library
|
|
16 #ifndef __OMNETPP_CREGISTRATIONLIST_H
17 #define __OMNETPP_CREGISTRATIONLIST_H
21 #include "simkerneldefs.h"
22 #include "cnamedobject.h"
40 typedef std::map<std::string, cOwnedObject*> StringObjectMap;
41 std::vector<cOwnedObject *> vec;
42 StringObjectMap nameMap;
43 StringObjectMap fullnameMap;
46 typedef std::vector<cOwnedObject *>::iterator iterator;
53 virtual std::string str()
const override;
54 virtual void forEachChild(
cVisitor *v)
override;
61 iterator
begin() {
return vec.begin();}
66 iterator
end() {
return vec.end();}
76 virtual int size()
const {
return vec.size();}
93 virtual cOwnedObject *lookup(
const char *qualifiedName)
const;
99 virtual cOwnedObject *lookup(
const char *qualifiedName,
const char *contextNamespace,
bool fallbackToOmnetpp=
false);
119 const char *tmpname =
nullptr;
127 cRegistrationList::iterator begin() {
return getInstance()->
begin();}
128 cRegistrationList::iterator end() {
return getInstance()->
end();}
iterator end()
Definition: cregistrationlist.h:66
Utility class, to make it impossible to call the operator= and copy constructor of any class derived ...
Definition: cobject.h:415
Enables traversing the tree of (cObject-rooted) simulation objects.
Definition: cvisitor.h:56
Implements a list or table of objects with qualified names.
Definition: cregistrationlist.h:37
virtual int size() const
Definition: cregistrationlist.h:76
iterator begin()
Definition: cregistrationlist.h:61
Extends cObject with a name string. Also includes a "flags" member, with bits open for use by subclas...
Definition: cnamedobject.h:34
Singleton class, used for registration lists. Instances are supposed to be global variables.
Definition: cregistrationlist.h:115
A cObject that keeps track of its owner. It serves as base class for many classes in the OMNeT++ libr...
Definition: cownedobject.h:105