scanner_utils.hpp
Go to the documentation of this file.
125 inline auto zip(const T&... containers) -> boost::iterator_range<boost::zip_iterator<decltype(boost::make_tuple(std::begin(containers)...))>> 229 inline void input_variadic_vector(std::vector<void *> &input, const T& value, const args&... params) 271 inline std::map<std::string, std::vector<std::string>> convert_to_map(const std::vector<std::string> &vec) 291 typename std::enable_if<!std::is_floating_point<ret>::value, ret>::type scanner_plugin_def_ret() 413 template <typename ret1, typename ret2, typename arg1, typename arg2, typename... args1, typename... args2> 416 static const bool value = __is_args_convertible__<std::is_convertible<arg1, arg2>::value, ret1 (args1...), ret2 (args2...)>::value; 438 typedef typename __find_variadic_type_not_exact__ <typename remove_all_func<T1>::type, typename remove_all_func<T2>::type, T2, T...>::ret_type ret_type; 439 typedef typename __find_variadic_type_not_exact__ <typename remove_all_func<T1>::type, typename remove_all_func<T2>::type, T2, T...>::func_type func_type; 440 static const bool value = __find_variadic_type_not_exact__ <typename remove_all_func<T1>::type, typename remove_all_func<T2>::type, T2, T...>::value; 520 typedef typename __find_variadic_type_convert__<is_args_convertible<Tc, T1>::value, T1, T...>::ret_type ret_type; 521 typedef typename __find_variadic_type_convert__<is_args_convertible<Tc, T1>::value, T1, T...>::func_type func_type; 522 static const bool value = __find_variadic_type_convert__<is_args_convertible<Tc, T1>::value, T1, T...>::value; 572 typedef typename __find_variadic_type__<find_variadic_type_exact<T...>::value,find_variadic_type_not_exact<T...>::value,find_variadic_type_convert<T...>::value, T...>::ret_type ret_type; 573 typedef typename __find_variadic_type__<find_variadic_type_exact<T...>::value,find_variadic_type_not_exact<T...>::value,find_variadic_type_convert<T...>::value, T...>::func_type func_type; 574 static const bool value = __find_variadic_type__<find_variadic_type_exact<T...>::value,find_variadic_type_not_exact<T...>::value,find_variadic_type_convert<T...>::value, T...>::value; Utility functions used by ScannerBit and the GAMBIT printers to register available scanners and print... int StringToInt(const std::string &str) Converts a string to an int. Definition: scanner_utils.hpp:241 General small utility macros. __is_pair__< typename remove_all< T >::type >::second_type second_type Definition: variadic_functions.hpp:309 std::enable_if<!std::is_floating_point< ret >::value, ret >::type scanner_plugin_def_ret() Turns a type into an object. Definition: scanner_utils.hpp:291 LOCAL_INFO macro. void func_type Definition: scanner_utils.hpp:537 find_variadic_type_exact< T... >::ret_type ret_type Definition: scanner_utils.hpp:580 _find_variadic_type_convert_< T... >::func_type func_type Definition: scanner_utils.hpp:529 Gambit::Scanner::__find_variadic_type_not_exact__< void(args...), ret(args...), T1, T... >::ret_type ret ret_type Definition: scanner_utils.hpp:462 find_variadic_type_convert< T... >::func_type func_type Definition: scanner_utils.hpp:597 Threadsafe exception class declarations. std::enable_if<!is_container< T >::value &&!is_pair< T >::value, void >::type resume_file_output(std::ofstream &out, T ¶m) Functions to output data for the plugin resume functions. Definition: scanner_utils.hpp:642 void input_variadic_vector(std::vector< void *> &) Inputs a varibadic pack into a vector. Definition: scanner_utils.hpp:226 ret func_type(args...) Definition: scanner_utils.hpp:495 __find_variadic_type__< find_variadic_type_exact< T... >::value, find_variadic_type_not_exact< T... >::value, find_variadic_type_convert< T... >::value, T... >::ret_type ret_type Definition: scanner_utils.hpp:572 __find_variadic_type_not_exact__< typename remove_all_func< T1 >::type, typename remove_all_func< T2 >::type, T2, T... >::func_type func_type Definition: scanner_utils.hpp:439 find_variadic_type_not_exact< T... >::func_type func_type Definition: scanner_utils.hpp:589 __is_pair__< typename remove_all< T >::type >::first_type first_type Definition: variadic_functions.hpp:308 Declarations for the YAML options class. find_variadic_type_exact< void(args...), T... >::ret_type ret_type Definition: scanner_utils.hpp:486 find_variadic_type_not_exact< void(args...), T... >::func_type func_type Definition: scanner_utils.hpp:471 _find_variadic_type_not_exact_< T... >::func_type func_type Definition: scanner_utils.hpp:447 find_variadic_type_convert< Tc, T... >::func_type func_type Definition: scanner_utils.hpp:545 auto 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)){...}. Definition: scanner_utils.hpp:125 find_variadic_type_exact< void(args...), T... >::func_type func_type Definition: scanner_utils.hpp:487 #define scan_err Defined to macros to output errors in the form: scan_err << "error" << scan_end; scan_warn << "warnin... Definition: scanner_utils.hpp:54 void func_type Definition: scanner_utils.hpp:455 T1 func_type Definition: scanner_utils.hpp:463 std::map< std::string, std::vector< std::string > > convert_to_map(const std::vector< std::string > &vec) Turns a vector with enters [model::parameter, ...] into a map with [{model, parameter}, ...]. Definition: scanner_utils.hpp:271 Definition: log_tags.hpp:37 return_type< T1 >::type ret_type Definition: scanner_utils.hpp:552 std::enable_if<!is_container< T >::value &&!is_pair< T >::value, size_t >::type resume_size_of(T &) Definition: scanner_utils.hpp:694 __find_variadic_type_not_exact__< typename remove_all_func< T1 >::type, typename remove_all_func< T2 >::type, T2, T... >::ret_type ret_type Definition: scanner_utils.hpp:438 int ret_type Definition: scanner_utils.hpp:502 __find_variadic_type_convert__< is_args_convertible< Tc, T1 >::value, T1, T... >::ret_type ret_type Definition: scanner_utils.hpp:520 __find_variadic_type_convert__< is_args_convertible< Tc, T1 >::value, T1, T... >::func_type func_type Definition: scanner_utils.hpp:521 Variadic utilty functions. ret type(typename remove_all< args >::type...) Definition: scanner_utils.hpp:356 _find_variadic_type_not_exact_< T... >::ret_type ret_type Definition: scanner_utils.hpp:446 _find_variadic_type_convert_< T... >::ret_type ret_type Definition: scanner_utils.hpp:528 std::enable_if<!is_container< T >::value &&!is_pair< T >::value, void >::type resume_file_input(std::ifstream &in, T ¶m) Definition: scanner_utils.hpp:668 ret ret_type Definition: scanner_utils.hpp:494 __is_container__< typename remove_all< T >::type >::type type Definition: variadic_functions.hpp:256 int ret_type Definition: scanner_utils.hpp:536 find_variadic_type_convert< T... >::ret_type ret_type Definition: scanner_utils.hpp:596 std::vector< T > get_yaml_vector(const YAML::Node &node) Input a vector from the yaml file of the following forms: vec: [a, b, ...] vec: a, b, ... Definition: scanner_utils.hpp:166 int ret_type Definition: scanner_utils.hpp:454 find_variadic_type_exact< T... >::func_type func_type Definition: scanner_utils.hpp:581 std::string demangle(const std::string &in) Demangles gnu c++ name. Definition: scanner_utils.hpp:137 Definition: variadic_functions.hpp:305 find_variadic_type_not_exact< T... >::ret_type ret_type Definition: scanner_utils.hpp:588 __find_variadic_type__< find_variadic_type_exact< T... >::value, find_variadic_type_not_exact< T... >::value, find_variadic_type_convert< T... >::value, T... >::func_type func_type Definition: scanner_utils.hpp:573 void func_type Definition: scanner_utils.hpp:503 find_variadic_type_convert< Tc, T... >::ret_type ret_type Definition: scanner_utils.hpp:544 std::remove_cv< typename std::remove_volatile< typename std::remove_const< typename std::remove_reference< T >::type >::type >::type >::type type Definition: variadic_functions.hpp:147 std::string IntToString(const int &in) Converts a int into a string. Definition: scanner_utils.hpp:252 std::enable_if< is_container< T >::value, std::ostream & >::type operator<<(std::ostream &out, const T &in) Outputs containers to an output stream. Definition: scanner_utils.hpp:609 T1 func_type Definition: scanner_utils.hpp:553 find_variadic_type_not_exact< void(args...), T... >::ret_type ret_type Definition: scanner_utils.hpp:470 |