Seg3D
2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
|
#include <ArrayMathFunctionCatalog.h>
Public Member Functions | |
void | add_function (ArrayMathFunctionObject function, std::string function_id, std::string return_type) |
Add a function to the general database. | |
void | add_sym_function (ArrayMathFunctionObject function, std::string function_id, std::string return_type) |
void | add_seq_function (ArrayMathFunctionObject function, std::string function_id, std::string return_type) |
void | add_sgl_function (ArrayMathFunctionObject function, std::string function_id, std::string return_type) |
Add a function that wil always output a single. | |
void | add_cst_function (ArrayMathFunctionObject function, std::string function_id, std::string return_type) |
Add a function that is always a constant. | |
Public Member Functions inherited from Core::ParserFunctionCatalog | |
ParserFunctionCatalog () | |
Constructor. | |
void | add_function (ParserFunction *function) |
bool | find_function (std::string function_id, ParserFunction *&function) |
Retrieve a function from the data base. | |
void | print () |
For debugging. | |
Static Public Member Functions | |
static ParserFunctionCatalogHandle | get_catalog () |
The ArrayMathFunctionCatalog classes are a base class for a series of classes that define basic functionality for the parser These classes house the main functions. The base class provides functionality for registering the functions to the main ParserCatalog, which is used by the parser to look up functions
void Core::ArrayMathFunctionCatalog::add_seq_function | ( | ArrayMathFunctionObject | function, |
std::string | function_id, | ||
std::string | return_type | ||
) |
Add a function that independently of the input will output a sequence e.g. the rand function, will always generate a sequence
void Core::ArrayMathFunctionCatalog::add_sym_function | ( | ArrayMathFunctionObject | function, |
std::string | function_id, | ||
std::string | return_type | ||
) |
Add a function whose input variables can be in any particular order, e.g. addition, this will allow the optimizer to recognize that two pieces of the parser tree are equal e.g A+B equals B+A