16 #ifndef __OMNETPP_CPROPERTIES_H 17 #define __OMNETPP_CPROPERTIES_H 20 #include "simkerneldefs.h" 39 std::vector<cProperty *> properties;
51 int addRef() {
return ++refCount;}
52 int removeRef() {
return --refCount;}
88 virtual const char *
getName()
const override {
return "properties";}
93 virtual std::string str()
const override;
98 virtual void parsimPack(
cCommBuffer *buffer)
const override;
103 virtual void parsimUnpack(
cCommBuffer *buffer)
override;
118 virtual const std::vector<const char *> getNames()
const;
131 virtual cProperty *
get(
const char *name,
const char *index=
nullptr)
const;
149 virtual bool getAsBool(
const char *name,
const char *index=
nullptr)
const;
157 virtual std::vector<const char *> getIndicesFor(
const char *name)
const;
167 virtual void remove(
int k);
cProperties(const cProperties &other)
Definition: cproperties.h:65
Root of the OMNeT++ class hierarchy. cObject is a lightweight class without any data members...
Definition: cobject.h:58
virtual const char * getName() const override
Definition: cproperties.h:88
Stores a (NED) property with its (possibly compound) value.
Definition: cproperty.h:38
Buffer for the communications layer of parallel simulation.
Definition: ccommbuffer.h:41
virtual cProperties * dup() const override
Definition: cproperties.h:83
virtual int getNumProperties() const
Definition: cproperties.h:111
Definition: cabstracthistogram.h:21
A collection of properties (cProperty).
Definition: cproperties.h:34