cOwnedDynamicExpression Class Reference

API: cOwnedDynamicExpression Class Reference
API
cOwnedDynamicExpression Class Reference
Inheritance diagram for cOwnedDynamicExpression:
[legend]

Public Member Functions

Constructors, destructor, assignment.
 cOwnedDynamicExpression (const char *name=nullptr)
 cOwnedDynamicExpression (const cOwnedDynamicExpression &other)
cOwnedDynamicExpressionoperator= (const cOwnedDynamicExpression &other)=default
Redefined cObject member functions
virtual cOwnedDynamicExpressiondup () const override
virtual std::string str () const override
Public Member Functions inherited from cOwnedObject
 cOwnedObject ()
 cOwnedObject (const char *name, bool namepooling=true)
 cOwnedObject (const cOwnedObject &obj)
virtual ~cOwnedObject ()
cOwnedObjectoperator= (const cOwnedObject &o)
virtual cObjectgetOwner () const override
virtual bool isOwnedObject () const override
Public Member Functions inherited from cNamedObject
 cNamedObject ()
 cNamedObject (const char *name, bool namepooling=true)
 cNamedObject (const cNamedObject &obj)
virtual ~cNamedObject ()
cNamedObjectoperator= (const cNamedObject &o)
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 cObjectgetThisPtr () const
virtual std::ostream & printOn (std::ostream &os) const
virtual bool isSoftOwner () const
virtual void forEachChild (cVisitor *v)
cObjectfindObject (const char *name, bool deep=true)
virtual cClassDescriptorgetDescriptor () const
void copyNotSupported () const
Public Member Functions inherited from cDynamicExpression
 cDynamicExpression ()
 cDynamicExpression (const cDynamicExpression &other)
virtual ~cDynamicExpression ()
cDynamicExpressionoperator= (const cDynamicExpression &other)
virtual void parse (const char *text) override
virtual void parse (const char *text, IResolver *resolver)
virtual void parse (const char *text, const std::map< std::string, cValue > &symbolTable)
virtual void setResolver (IResolver *resolver)
virtual IResolvergetResolver () const
virtual void parseNedExpr (const char *text)
virtual cValue evaluate (Context *context) const override
virtual bool boolValue (Context *context) const override
virtual intval_t intValue (Context *context, const char *expectedUnit=nullptr) const override
virtual double doubleValue (Context *context, const char *expectedUnit=nullptr) const override
virtual std::string stringValue (Context *context) const override
virtual cXMLElementxmlValue (Context *context) const override
virtual cValue evaluate (cComponent *contextComponent=nullptr) const
virtual bool boolValue (cComponent *contextComponent=nullptr) const
virtual intval_t intValue (cComponent *contextComponent=nullptr, const char *expectedUnit=nullptr) const
virtual double doubleValue (cComponent *contextComponent=nullptr, const char *expectedUnit=nullptr) const
virtual std::string stringValue (cComponent *contextComponent=nullptr) const
virtual cXMLElementxmlValue (cComponent *contextComponent=nullptr) const
virtual int compare (const cExpression *other) const override
virtual bool isAConstant () const override
void setSourceLocation (FileLine loc)
virtual std::string getSourceLocation () const override
Public Member Functions inherited from cExpression
 cExpression ()
 cExpression (const cExpression &other)=default
virtual ~cExpression ()
cExpressionoperator= (const cExpression &other)

Additional Inherited Members

Static Public Member Functions inherited from cOwnedObject
static long getTotalObjectCount ()
static long getLiveObjectCount ()
static void resetObjectCounters ()
static cSoftOwnergetOwningContext ()
static double convertUnit (double d, const char *unit, const char *targetUnit)
Protected Member Functions inherited from cObject
virtual void take (cOwnedObject *obj)
virtual void drop (cOwnedObject *obj)
void dropAndDelete (cOwnedObject *obj)

Description

An "owned" version cDynamicExpression to allow it to be assigned to module parameters of the type "object".

Constructor & Destructor Documentation

◆ cOwnedDynamicExpression() [1/2]

cOwnedDynamicExpression ( const char * name = nullptr)
inlineexplicit

Constructor.

Referenced by cOwnedDynamicExpression(), dup(), and operator=().

◆ cOwnedDynamicExpression() [2/2]

Member Function Documentation

◆ operator=()

cOwnedDynamicExpression & operator= ( const cOwnedDynamicExpression & other)
default

Assignment operator. The name member is not copied; see cNamedObject::operator=() for details. Contained objects that are owned by cOwnedDynamicExpression will be duplicated so that the new cOwnedDynamicExpression will have its own copy of them.

References cOwnedDynamicExpression().

◆ dup()

virtual cOwnedDynamicExpression * dup ( ) const
inlineoverridevirtual

Creates and returns an exact copy of this object.

Reimplemented from cObject.

References cOwnedDynamicExpression().

◆ str()

virtual std::string str ( ) const
inlineoverridevirtual

Converts the expression to string. See cObject for more details.

Reimplemented from cObject.

References cDynamicExpression::str().