OMNeT++ Simulation Library
6.0.3
|
16 #ifndef __OMNETPP_CVALUEHOLDER_H
17 #define __OMNETPP_CVALUEHOLDER_H
22 #include "cvaluecontainer.h"
102 virtual std::string
str()
const override {
return value.
str();}
108 virtual void forEachChild(
cVisitor* v)
override;
121 void set(
const cValue& v) {dropAndDeleteValue(value); value = v; takeValue(value);}
virtual ~cValueHolder()
Definition: cvalueholder.h:73
const cValue & get() const
Definition: cvalueholder.h:116
Common base class for cValue-based containers.
Definition: cvaluecontainer.h:32
A variant-like value class used during evaluating NED expressions.
Definition: cvalue.h:47
Enables traversing the tree of (cObject-rooted) simulation objects.
Definition: cvisitor.h:56
cValueHolder(const cValueHolder &other)
Definition: cvalueholder.h:57
cValueHolder(const char *name, const cValue &value)
Definition: cvalueholder.h:67
void set(const cValue &v)
Definition: cvalueholder.h:121
cOwnedObject-based container/wrapper to hold a single cValue.
Definition: cvalueholder.h:37
virtual cValueHolder * dup() const override
Definition: cvalueholder.h:96
cValueHolder(const char *name=nullptr)
Definition: cvalueholder.h:62
virtual std::string str() const override
Definition: cvalueholder.h:102