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::ParserNode Class Reference

#include <ParserNode.h>

Public Member Functions

 ParserNode (int kind, std::string value)
 Constructor 1.
 
 ParserNode (int kind, std::string value, std::string type)
 Constructor 2.
 
int get_kind ()
 Retrieve the kind of the node (this is function, constant, string, etc)
 
std::string get_type ()
 Retrieve the type of the node (this is the return type of the variable)
 
std::string get_value ()
 Retrieve the value of the value.
 
void set_value (std::string &value)
 Set the value of the node.
 
ParserNodeHandle get_arg (size_t j)
 Get a pointer to one of the arguments of a function.
 
void set_arg (size_t j, ParserNodeHandle &handle)
 Set the argument to a sub tree.
 
void set_arg (size_t j, ParserNode *ptr)
 Set the argument to a sub tree (using pointers)
 
void set_function (ParserFunction *func)
 Set a copy to the function pointer, this is used later by the interpreter.
 
ParserFunctionget_function ()
 Retrieve the function pointer.
 
void set_type (std::string type)
 Set the type of the node (this is used by the validator)
 
size_t num_args ()
 Retrieve the number of arguments a function has.
 
void print (int level)
 For debugging.
 

Detailed Description

ParserNode : This class is a piece of an expression. The ParserNode class marks: functions, variables, constants, and string constants. This are currently the pieces that are supported


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