Template Struct variable_map< int >¶
Defined in File BlackbirdVariables.h
Struct Documentation¶
-
template<>
struct blackbird::variable_map<int>¶ get and set integer values in the variable map
Public Static Functions
-
static inline int getVal(Visitor *V, std::string key)¶
Get value from the variable map corresponding to a name, and attempt to convert it into an integer
- Parameters
V – Blackbird Visitor
key – variable name
- Throws
invalid_argument – Cannot convert a complex variable to an int
invalid_argument – Cannot convert a string variable to an int
invalid_argument – Cannot convert a bool variable to an int
invalid_argument – Variable key not defined
- Returns
integer value
-
static inline int getVal(Visitor *V, std::string key)¶