16 #ifndef __OMNETPP_CNEDFUNCTION_H 17 #define __OMNETPP_CNEDFUNCTION_H 20 #include "simkerneldefs.h" 22 #include "cownedobject.h" 23 #include "cdynamicexpression.h" 51 std::string signature;
58 std::string description;
61 void parseSignature(
const char *signature);
62 void checkArgs(
cNedValue argv[],
int argc);
83 cNedFunction(
NedFunction f,
const char *signature,
const char *category=
nullptr,
const char *description=
nullptr);
96 virtual std::string str()
const override;
Registration class for extending NED with arbitrary new functions.
Definition: cnedfunction.h:48
Common base for module and channel classes.
Definition: ccomponent.h:48
int getMinArgs() const
Definition: cnedfunction.h:134
char getReturnType() const
Definition: cnedfunction.h:121
cNedValue(* NedFunction)(cComponent *context, cNedValue argv[], int argc)
A function that can be used with cDynamicExpression.
Definition: cnedfunction.h:34
virtual ~cNedFunction()
Definition: cnedfunction.h:88
NedFunction getFunctionPointer() const
Definition: cnedfunction.h:110
Value used during evaluating NED expressions.
Definition: cnedvalue.h:50
int getMaxArgs() const
Definition: cnedfunction.h:141
char getArgType(int k) const
Definition: cnedfunction.h:128
bool hasVarArgs() const
Definition: cnedfunction.h:147
Definition: cabstracthistogram.h:21
Base class for cOwnedObject-based classes that do not wish to support assignment and duplication...
Definition: cownedobject.h:248
const char * getCategory() const
Definition: cnedfunction.h:153
const char * getDescription() const
Definition: cnedfunction.h:158
const char * getSignature() const
Definition: cnedfunction.h:115