OMNeT++ Simulation Library  6.0.3
cDynamicExpression::SymbolTable Class Reference

#include <cdynamicexpression.h>

Description

A resolver that serves variables from an std::map-based symbol table

Inheritance diagram for cDynamicExpression::SymbolTable:
cDynamicExpression::IResolver

Public Member Functions

virtual SymbolTabledup () const override
 
virtual cValue readVariable (Context *context, const char *name) override
 
virtual cValue readVariable (Context *context, const char *name, intval_t index) override
 
- Public Member Functions inherited from cDynamicExpression::IResolver
virtual cValue readMember (Context *context, const cValue &object, const char *name)
 
virtual cValue readMember (Context *context, const cValue &object, const char *name, intval_t index)
 
virtual cValue callFunction (Context *context, const char *name, cValue argv[], int argc)
 
virtual cValue callMethod (Context *context, const cValue &object, const char *name, cValue argv[], int argc)
 

Member Function Documentation

◆ dup()

virtual SymbolTable* dup ( ) const
inlineoverridevirtual

Create and return an exact copy of this object.

Implements cDynamicExpression::IResolver.

◆ readVariable() [1/2]

virtual cValue readVariable ( Context context,
const char *  name 
)
overridevirtual

Return the value of a variable with the given name.

Reimplemented from cDynamicExpression::IResolver.

◆ readVariable() [2/2]

virtual cValue readVariable ( Context context,
const char *  name,
intval_t  index 
)
overridevirtual

Return the value of an element of an array variable with the given name. Expression syntax: name[index]

Reimplemented from cDynamicExpression::IResolver.


The documentation for this class was generated from the following file: