1 #ifndef EXPR_AffineFunction_H
2 #define EXPR_AffineFunction_H
4 #include "EXPR_Function.h"
8 #include "core_numeric.h"
46 static inline CORE_UniquePointer<EXPR_AffineFunction>
New() {
84 virtual void apply(
const std::vector<tString>& args,
86 std::array<tReal,9> A={1,0,0,0,1,0,0,0,1};
87 std::array<tReal,3> B={0,0,0};
88 auto iArgs=args.cbegin();
91 core_numeric::parse(*iArgs,Ai);
96 core_numeric::parse(*iArgs,Bi);
101 node.leftComposition(A,B);
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
This class describes.
Definition: EXPR_AffineFunction.h:17
virtual void apply(const std::vector< tString > &args, EXPR_Node &node) const final
apply the function to the environment
Definition: EXPR_AffineFunction.h:84
virtual ~EXPR_AffineFunction()
delete the class
Definition: EXPR_AffineFunction.h:37
EXPR_AffineFunction()
create the class
Definition: EXPR_AffineFunction.h:30
virtual tMemSize getMemorySize() const override
return the memory size of the class
Definition: EXPR_AffineFunction.h:62
virtual tMemSize getContentsMemorySize() const override
return nthe memory size of the included associations
Definition: EXPR_AffineFunction.h:74
static CORE_UniquePointer< EXPR_AffineFunction > New()
return an unique instance of this class
Definition: EXPR_AffineFunction.h:46
This class described a function.
Definition: EXPR_Function.h:15
void setName(const tString &name)
set the name of the function
Definition: EXPR_Function.h:44
This class is a base class of the binary tree.
Definition: EXPR_Node.h:16
virtual tMemSize getContentsMemorySize() const override
return nthe memory size of the included associations
Definition: EXPR_Object.h:70