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.
Public Member Functions | List of all members
Core::ParserProgram Class Reference

Public Member Functions

void add_expression (std::string &expression_string, ParserTreeHandle expression_tree)
 
void get_expression (int expression_num, std::string &expression_string, ParserTreeHandle &expression_handle)
 
void get_expression (int expression_num, ParserTreeHandle &expression_handle)
 
size_t num_expressions ()
 Retrieve the number of expressions in the program.
 
void add_input_variable (std::string name, std::string type="U", int flags=0)
 Add an input variable to the program.
 
void add_output_variable (std::string name, std::string type="U", int flags=0)
 Add an output variable to the program.
 
void get_input_variables (ParserVariableList &var_list)
 
void get_output_variables (ParserVariableList &var_list)
 
ParserFunctionCatalogHandle get_catalog ()
 
void set_catalog (ParserFunctionCatalogHandle catalog)
 
void add_const_var (ParserScriptVariableHandle &handle)
 Insert the variables.
 
void add_single_var (ParserScriptVariableHandle &handle)
 
void add_sequential_var (ParserScriptVariableHandle &handle)
 
void add_const_function (ParserScriptFunctionHandle &handle)
 
void add_single_function (ParserScriptFunctionHandle &handle)
 
void add_sequential_function (ParserScriptFunctionHandle &handle)
 
size_t num_const_variables ()
 Get the variables that need to be assigned.
 
size_t num_single_variables ()
 
size_t num_sequential_variables ()
 
bool get_const_variable (size_t j, ParserScriptVariableHandle &handle)
 
bool get_single_variable (size_t j, ParserScriptVariableHandle &handle)
 
bool get_sequential_variable (size_t j, ParserScriptVariableHandle &handle)
 
size_t num_const_functions ()
 Get the functions that need to be assigned.
 
size_t num_single_functions ()
 
size_t num_sequential_functions ()
 
bool get_const_function (size_t j, ParserScriptFunctionHandle &handle)
 
bool get_single_function (size_t j, ParserScriptFunctionHandle &handle)
 
bool get_sequential_function (size_t j, ParserScriptFunctionHandle &handle)
 
void print ()
 For debugging.
 

Member Function Documentation

void Core::ParserProgram::add_expression ( std::string &  expression_string,
ParserTreeHandle  expression_tree 
)

Add an expression to a program: this is a combination of the raw unparsed program code and the expression tree

void Core::ParserProgram::get_expression ( int  expression_num,
std::string &  expression_string,
ParserTreeHandle &  expression_handle 
)

Retrieve an expression from a program This gets one expression in unparsed and parsed form from the program


The documentation for this class was generated from the following files: