generateAutoTestMacro () tries to generate a simplified test call of the defined function This may work, if all argument types are known. All values will be assigned to simplified defaults, like
the enum data type for defining teh data type of the argument in script context
Enumerator
ALL
< independent from mesh type (or all mesh types)
FEM
< unstructured meshes
GRID1D
< 1d structurted grids, eg. signals
GRID2D
< 2d structured grids, eg. matrices
GRID3D
< 3d structured grids, eg. voxels
Member Function Documentation
addArg()
addArg(MacroArg arg)
adds a new argument to the end of the listParameters
Name
Description
arg
the argument to be added
addRet()
addRet(MacroArg arg)
adds a new return value to the end of the listParameters
Name
Description
arg
the return value to be added
builderCompatible()
bool builderCompatible()
Returnstrue if this funtion can be used in the MacroBuilder
delArg()
delArg(number i)
erases the given argument from the listParameters
Name
Description
i
the existing index to be deleted, starting with 0
delRet()
delRet(number i)
erases the given return value from the listParameters
Name
Description
i
the existing index to be deleted, starting with 0
generateAutoTestMacro()
string generateAutoTestMacro()
tries to generate a simplified test call of the defined function This may work, if all argument types are known. All values will be assigned to simplified defaults, like
strings: empty
numbers: 0
matrices: 1x1, zeroReturnsthe genrated test code or empty string (if not able to generate one)
getArg()
MacroArg getArg(number i)
Returnsa reference to the specified argumentParameters
Name
Description
i
the index of the argument, starting with 0
getMacro()
string getMacro()
gets the macro’s codeExceptions
Name
Description
execption
if the macro is hidden
getRet()
MacroArg getRet(number i)
Returnsa reference to the specified return valueParameters
Name
Description
i
the index of the return value, starting with 0
getRets()
std::vector< MacroArg > getRets()
Returnsa reference to the vector of MacroArgs
isHidden()
bool isHidden() const
Returnstrue if the macro is hidden
meshType()
eMeshType meshType() const
Returnsthe mesh type(s) being compatible with this macro
needsMesh()
bool needsMesh()
Returnstrue if this function needs a mesh
numArg()
number numArg()
Returnsthe number of defined arguments
numRet()
number numRet()
Returnsthe number of defined return values
operator<()
bool operator<(MacroFunction other)
a comparison operator used for std::set usageParameters
Name
Description
other
the other function to be compared
Returnstrue if the ident of this function is “smaller” than the ident of the other function.
The “smaller” operator also checks if “numbers” are at the end of the ident, we try to resolve this according to “human ordering”, e.g. “chunk_9” < “chunk_10”