1 #ifndef teca_variant_array_operand_h
2 #define teca_variant_array_operand_h
6 #include "teca_config.h"
8 #include "teca_array_collection.h"
45 var = m_variables->get(var_name);
52 {
return m_variables; }
59 const_p_teca_array_collection m_variables;
Handles conversion of literals to variant_arrays and the name resolution of variables.
Definition: teca_variant_array_operand.h:19
const_p_teca_array_collection get_variables()
get the set of arrays used for variable name resolution.
Definition: teca_variant_array_operand.h:51
void set_variables(const_p_teca_array_collection v)
set the set of arrays used for variable name resolution.
Definition: teca_variant_array_operand.h:55
int get_variable(const char *var_name, const_p_teca_variant_array &var)
Definition: teca_variant_array_operand.h:42
int get_constant(const char *s, p_teca_variant_array &c)
p_teca_error_handler error_handler TECA_EXPORT
The global error handler instance.
Codes dealing with the operands of run time specified operations on teca_variant_array.
Definition: teca_variant_array_operand.h:12
std::shared_ptr< teca_variant_array > p_teca_variant_array
Definition: teca_variant_array.h:27
std::shared_ptr< const teca_variant_array > const_p_teca_variant_array
Definition: teca_variant_array.h:27