|
TECA
The Toolkit for Extreme Climate Analysis
|
Go to the documentation of this file. 1 #ifndef teca_variant_array_operand_h
2 #define teca_variant_array_operand_h
7 #include "teca_array_collection.h"
44 var = m_variables->get(var_name);
51 {
return m_variables; }
58 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:17
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:54
std::shared_ptr< const teca_variant_array > const_p_teca_variant_array
Definition: teca_variant_array.h:22
int get_variable(const char *var_name, const_p_teca_variant_array &var)
Definition: teca_variant_array_operand.h:41
Codes dealing with the operands of run time specified operations on teca_variant_array.
Definition: teca_variant_array_operand.h:10
const_p_teca_array_collection get_variables()
get the set of arrays used for variable name resolution.
Definition: teca_variant_array_operand.h:50
std::shared_ptr< teca_variant_array > p_teca_variant_array
Definition: teca_variant_array.h:22
int get_constant(const char *s, p_teca_variant_array &c)