|
std::stringstream & | Gambit::Scanner::Errors::_err_ () |
|
std::stringstream & | Gambit::Scanner::Errors::_warn_ () |
|
bool & | Gambit::Scanner::Errors::_bool_ () |
|
EXPORT_SYMBOLS error & | Gambit::Scanner::scan_error () |
| Scanner errors. More...
|
|
EXPORT_SYMBOLS warning & | Gambit::Scanner::scan_warning () |
| Scanner warnings. More...
|
|
template<typename... T> |
auto | Gambit::Scanner::zip (const T &... containers) -> boost::iterator_range< boost::zip_iterator< decltype(boost::make_tuple(std::begin(containers)...))>> |
| Use for combine container in a range loop: for (auto &&x : zip(a, b)){...}. More...
|
|
std::string | Gambit::Scanner::demangle (const std::string &in) |
| Demangles gnu c++ name. More...
|
|
template<typename T > |
std::vector< T > | Gambit::Scanner::get_yaml_vector (const YAML::Node &node) |
| Input a vector from the yaml file of the following forms: vec: [a, b, ...] vec: a, b, ... More...
|
|
int | Gambit::Scanner::StringToInt (const std::string &str) |
| Converts a string to an int. More...
|
|
std::string | Gambit::Scanner::IntToString (const int &in) |
| Converts a int into a string. More...
|
|
double | Gambit::Scanner::pi () |
| Output pi. More...
|
|
std::map< std::string, std::vector< std::string > > | Gambit::Scanner::convert_to_map (const std::vector< std::string > &vec) |
| Turns a vector with enters [model::parameter, ...] into a map with [{model, parameter}, ...]. More...
|
|
|
void | Gambit::Scanner::input_variadic_vector (std::vector< void *> &) |
| Inputs a varibadic pack into a vector. More...
|
|
template<typename T , typename... args> |
void | Gambit::Scanner::input_variadic_vector (std::vector< void *> &input, const T &value, const args &... params) |
|
|
template<typename ret > |
std::enable_if<!std::is_floating_point< ret >::value, ret >::type | Gambit::Scanner::scanner_plugin_def_ret () |
| Turns a type into an object. More...
|
|
template<typename ret > |
std::enable_if< std::is_floating_point< ret >::value, ret >::type | Gambit::Scanner::scanner_plugin_def_ret () |
|
|
template<int i> |
double | Gambit::Scanner::pow (const double &a) |
| Outputs a^i. More...
|
|
template<> |
double | Gambit::Scanner::pow< 0 > (const double &) |
|
template<> |
double | Gambit::Scanner::pow< 1 > (const double &a) |
|
template<int i> |
int | Gambit::Scanner::pow (const int &a) |
|
template<> |
int | Gambit::Scanner::pow< 0 > (const int &) |
|
template<> |
int | Gambit::Scanner::pow< 1 > (const int &a) |
|
|
template<typename T > |
std::enable_if< is_container< T >::value, std::ostream & >::type | Gambit::Scanner::operator<< (std::ostream &out, const T &in) |
| Outputs containers to an output stream. More...
|
|
template<typename T > |
std::enable_if< is_pair< T >::value, std::ostream & >::type | Gambit::Scanner::operator<< (std::ostream &out, const T &in) |
|
|
template<typename T > |
std::enable_if<!is_container< T >::value &&!is_pair< T >::value, void >::type | Gambit::Scanner::resume_file_output (std::ofstream &out, T ¶m) |
| Functions to output data for the plugin resume functions. More...
|
|
template<typename T > |
std::enable_if< is_container< T >::value, void >::type | Gambit::Scanner::resume_file_output (std::ofstream &out, T ¶m) |
|
template<typename T > |
std::enable_if< is_pair< T >::value, void >::type | Gambit::Scanner::resume_file_output (std::ofstream &out, T ¶m) |
|
template<typename T > |
std::enable_if<!is_container< T >::value &&!is_pair< T >::value, void >::type | Gambit::Scanner::resume_file_input (std::ifstream &in, T ¶m) |
|
template<typename T > |
std::enable_if< is_container< T >::value, void >::type | Gambit::Scanner::resume_file_input (std::ifstream &in, T ¶m) |
|
template<typename T > |
std::enable_if< is_pair< T >::value, void >::type | Gambit::Scanner::resume_file_input (std::ifstream &in, T ¶m) |
|
template<typename T > |
std::enable_if<!is_container< T >::value &&!is_pair< T >::value, size_t >::type | Gambit::Scanner::resume_size_of (T &) |
|
template<typename T > |
std::enable_if< is_container< T >::value, size_t >::type | Gambit::Scanner::resume_size_of (T ¶m) |
|
template<typename T > |
std::enable_if< is_pair< T >::value, size_t >::type | Gambit::Scanner::resume_size_of (T &) |
|
void | Gambit::Scanner::resume_file_input (std::ifstream &in, std::string ¶m) |
|
void | Gambit::Scanner::resume_file_output (std::ofstream &out, std::string ¶m) |
|
size_t | Gambit::Scanner::resume_size_of (std::string ¶m) |
|
Utility Functions for the Gambit Scanner.
Authors
(add name and date if you modify)
- Author
- Gregory Martinez (grego.nosp@m.ry.d.nosp@m.avid..nosp@m.mart.nosp@m.inez@.nosp@m.gmai.nosp@m.l.com)
- Date
- 2013 July
-
2014 Feb
- Author
- Pat Scott (patsc.nosp@m.ott@.nosp@m.physi.nosp@m.cs.m.nosp@m.cgill.nosp@m..ca)
- Date
- 2014 Mar, Dec
Definition in file scanner_utils.hpp.