muParserX 2.0.0
Loading...
Searching...
No Matches
mup::OprtCreateArray Class Reference

On the fly array creation using the curly bracket operator. More...

#include <mpOprtMatrix.h>

Inheritance diagram for mup::OprtCreateArray:
Collaboration diagram for mup::OprtCreateArray:

Public Member Functions

virtual void Eval (ptr_val_type &ret, const ptr_val_type *arg, int argc) override
 Index operator implementation.
 
- Public Member Functions inherited from mup::ICallback
int GetArgc () const
 Returns the mĀ“number of arguments required by this callback.
 
void SetParent (parent_type *a_pParent)
 Assign a parser object to the callback.
 
- Public Member Functions inherited from mup::IToken
ECmdCode GetCode () const
 return the token code.
 
const string_typeGetIdent () const
 Return the token identifier string.
 

Additional Inherited Members

- Public Types inherited from mup::ICallback
- Public Types inherited from mup::IToken
- Protected Member Functions inherited from mup::ICallback
parent_typeGetParent ()
 Returns a pointer to the parser object owning this callback.
 
- Protected Member Functions inherited from mup::IToken
virtual ~IToken ()
 Destructor (trivial).
 
 IToken (const IToken &ref)
 Copy constructor.
 

Detailed Description

On the fly array creation using the curly bracket operator.

Member Function Documentation

◆ Eval()

void mup::OprtCreateArray::Eval ( ptr_val_type & ret,
const ptr_val_type * a_pArg,
int a_iArgc )
overridevirtual

Index operator implementation.

Parameters
retA reference to the return value
a_pArgPointer to an array with the indices as ptr_val_type
a_iArgcNumber of indices (=dimension) actully used in the expression found. This must be 1 or 2 since three dimensional data structures are not supported by muParserX.

Implements mup::ICallback.


muParserX documentation - (C) 2010 Ingo Berg