SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ArrayMathProgram Class Reference

#include <ArrayMathInterpreter.h>

Inheritance diagram for ArrayMathProgram:

Public Member Functions

 ArrayMathProgram ()
 
 ArrayMathProgram (size_type array_size, size_type buffer_size, int num_proc=-1)
 
size_type get_buffer_size () const
 
int get_num_proc () const
 
size_type get_array_size () const
 
void set_array_size (size_type array_size)
 
bool add_source (const std::string &name, VField *vfield)
 
bool add_source (const std::string &name, VMesh *vmesh)
 
bool add_source (const std::string &name, Core::Datatypes::MatrixHandle matrix)
 
bool add_source (const std::string &name, std::vector< bool > *array)
 
bool add_source (const std::string &name, std::vector< int > *array)
 
bool add_source (const std::string &name, std::vector< double > *array)
 
bool add_sink (const std::string &name, VField *vfield)
 
bool add_sink (const std::string &name, VMesh *vmesh)
 
bool add_sink (const std::string &name, Core::Datatypes::MatrixHandle matrix)
 
bool add_sink (const std::string &name, std::vector< bool > *array)
 
bool add_sink (const std::string &name, std::vector< int > *array)
 
bool add_sink (const std::string &name, std::vector< double > *array)
 
void resize_const_variables (size_t sz)
 
void resize_single_variables (size_t sz)
 
void resize_sequential_variables (size_t sz)
 
void resize_const_functions (size_t sz)
 
void resize_single_functions (size_t sz)
 
void resize_sequential_functions (size_t sz)
 
double * create_buffer (size_t size)
 
void set_const_variable (size_t j, ArrayMathProgramVariableHandle handle)
 
void set_single_variable (size_t j, ArrayMathProgramVariableHandle handle)
 
void set_sequential_variable (size_t j, size_t np, ArrayMathProgramVariableHandle handle)
 
ArrayMathProgramVariableHandle get_const_variable (size_t j) const
 
ArrayMathProgramVariableHandle get_single_variable (size_t j) const
 
ArrayMathProgramVariableHandle get_sequential_variable (size_t j, size_t np) const
 
void set_const_program_code (size_t j, ArrayMathProgramCodePtr pc)
 
void set_single_program_code (size_t j, ArrayMathProgramCodePtr pc)
 
void set_sequential_program_code (size_t j, size_t np, ArrayMathProgramCodePtr pc)
 
bool find_source (const std::string &name, ArrayMathProgramSource &ps)
 
bool find_sink (const std::string &name, ArrayMathProgramSource &ps)
 
bool run_const (size_t &error_line)
 
bool run_single (size_t &error_line)
 
bool run_sequential (size_t &error_line)
 
void set_parser_program (ParserProgramHandle handle)
 
ParserProgramHandle get_parser_program ()
 

Constructor & Destructor Documentation

ArrayMathProgram ( )
inline
ArrayMathProgram ( size_type  array_size,
size_type  buffer_size,
int  num_proc = -1 
)
inline

Member Function Documentation

bool add_sink ( const std::string &  name,
VField vfield 
)
bool add_sink ( const std::string &  name,
VMesh vmesh 
)
bool add_sink ( const std::string &  name,
Core::Datatypes::MatrixHandle  matrix 
)
bool add_sink ( const std::string &  name,
std::vector< bool > *  array 
)
bool add_sink ( const std::string &  name,
std::vector< int > *  array 
)
bool add_sink ( const std::string &  name,
std::vector< double > *  array 
)
bool add_source ( const std::string &  name,
VField vfield 
)
bool add_source ( const std::string &  name,
VMesh vmesh 
)
bool add_source ( const std::string &  name,
Core::Datatypes::MatrixHandle  matrix 
)
bool add_source ( const std::string &  name,
std::vector< bool > *  array 
)
bool add_source ( const std::string &  name,
std::vector< int > *  array 
)
bool add_source ( const std::string &  name,
std::vector< double > *  array 
)
double* create_buffer ( size_t  size)
inline
bool find_sink ( const std::string &  name,
ArrayMathProgramSource ps 
)
bool find_source ( const std::string &  name,
ArrayMathProgramSource ps 
)
size_type get_array_size ( ) const
inline
size_type get_buffer_size ( ) const
inline
ArrayMathProgramVariableHandle get_const_variable ( size_t  j) const
inline
int get_num_proc ( ) const
inline
ParserProgramHandle get_parser_program ( )
inline
ArrayMathProgramVariableHandle get_sequential_variable ( size_t  j,
size_t  np 
) const
inline
ArrayMathProgramVariableHandle get_single_variable ( size_t  j) const
inline
void resize_const_functions ( size_t  sz)
inline
void resize_const_variables ( size_t  sz)
inline
void resize_sequential_functions ( size_t  sz)
inline
void resize_sequential_variables ( size_t  sz)
inline
void resize_single_functions ( size_t  sz)
inline
void resize_single_variables ( size_t  sz)
inline
bool run_const ( size_t &  error_line)
bool run_sequential ( size_t &  error_line)
bool run_single ( size_t &  error_line)
void set_array_size ( size_type  array_size)
inline
void set_const_program_code ( size_t  j,
ArrayMathProgramCodePtr  pc 
)
inline
void set_const_variable ( size_t  j,
ArrayMathProgramVariableHandle  handle 
)
inline
Todo:
: need to remove them at some point
void set_parser_program ( ParserProgramHandle  handle)
inline
void set_sequential_program_code ( size_t  j,
size_t  np,
ArrayMathProgramCodePtr  pc 
)
inline
void set_sequential_variable ( size_t  j,
size_t  np,
ArrayMathProgramVariableHandle  handle 
)
inline
void set_single_program_code ( size_t  j,
ArrayMathProgramCodePtr  pc 
)
inline
void set_single_variable ( size_t  j,
ArrayMathProgramVariableHandle  handle 
)
inline

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