namespace Gambit::Scanner

[No description available]

Namespaces

Name
Gambit::Scanner::Errors
Gambit::Scanner::Plugins

Classes

Name
structGambit::Scanner::find_variadic_type
structGambit::Scanner::find_variadic_type< false, false, true, T… >
structGambit::Scanner::find_variadic_type< false, true, b2, T… >
structGambit::Scanner::find_variadic_type< true, b1, b2, T… >
structGambit::Scanner::find_variadic_type_convert
structGambit::Scanner::find_variadic_type_convert< b, Tc, T1, T… >
structGambit::Scanner::find_variadic_type_convert< true, Tc, T1, T… >
structGambit::Scanner::find_variadic_type_not_exact
structGambit::Scanner::find_variadic_type_not_exact< void(args…), ret(args…), T1, T… >
structGambit::Scanner::find_variadic_type_not_exact< void(args…), ret(args2…), T1, T… >
structGambit::Scanner::is_args_convertible
structGambit::Scanner::is_args_convertible< false, T1, T2 >
structGambit::Scanner::find_variadic_type_convert
structGambit::Scanner::find_variadic_type_convert< Tc, T1, T… >
structGambit::Scanner::find_variadic_type_not_exact
structGambit::Scanner::find_variadic_type_not_exact< T1, T2, T… >
classGambit::Scanner::Factory_Base
Pure Base class of a plugin Factory function.
structGambit::Scanner::find_variadic_type
structGambit::Scanner::find_variadic_type_convert
structGambit::Scanner::find_variadic_type_convert< ret(args…)>
structGambit::Scanner::find_variadic_type_exact
structGambit::Scanner::find_variadic_type_exact< void(args…), ret(args…), T… >
structGambit::Scanner::find_variadic_type_exact< void(args…), ret(args2…), T… >
structGambit::Scanner::find_variadic_type_exact< void(args…)>
structGambit::Scanner::find_variadic_type_not_exact
structGambit::Scanner::find_variadic_type_not_exact< void(args…)>
structGambit::Scanner::first_arg_type
structGambit::Scanner::first_arg_type< ret()>
structGambit::Scanner::first_arg_type< ret(T, args…)>
structGambit::Scanner::func_ptr_type
structGambit::Scanner::func_ptr_type< void(args…)>
classGambit::Scanner::Function_Base
Generic function base used by the scanner. Can be Likelihood, observables, etc.
classGambit::Scanner::Function_Base< ret(args…)>
Base function for the object that is upputed by “set_purpose”.
classGambit::Scanner::Function_Deleter
Functor that deletes a Function_Base functor.
classGambit::Scanner::Function_Deleter< ret(args…)>
structGambit::Scanner::is_args_convertible
structGambit::Scanner::is_args_convertible< ret1(), ret2()>
structGambit::Scanner::is_args_convertible< ret1(arg1, args1…), ret2(arg2, args2…)>
classGambit::Scanner::like_ptr
likelihood container for scanner plugins.
classGambit::Scanner::Multi_Scanner_Plugin_Function
classGambit::Scanner::Multi_Scanner_Plugin_Function< ret(args…)>
Objective functor made up of multiple plugins.
classGambit::Scanner::Plugin_Function_Factory
Factory class to make objectives using objective plugins.
structGambit::Scanner::point_info
classGambit::Scanner::RanNumGen
structGambit::Scanner::remove_all_func
structGambit::Scanner::remove_all_func< ret(args…)>
classGambit::Scanner::resume_params_func
class to interface with the plugin manager resume functions.
structGambit::Scanner::return_type
structGambit::Scanner::return_type< ret(args…)>
classGambit::Scanner::Scan_Manager
classGambit::Scanner::scan_ptr
Generic ptr that takes ownership of a Function_Base. This is how a plugin will call a function.
classGambit::Scanner::scan_ptr< ret(args…)>
Container class that hold the output of the “get_purpose” function.
classGambit::Scanner::Scanner_Plugin_Function
classGambit::Scanner::Scanner_Plugin_Function< ret(args…)>
Objective functor made up a single plugin.

Types

Name
typedef Priors::BasePriorprior_interface
typedef void *(const std::map< std::string, std::vector< std::string > > &, const std::vector< std::pair< std::string, std::string > > &)multi_func_type
typedef Printers::BasePrinterManagerprinter_interface
typedef printer_interface_temp printer_interface;
typedef Printers::BaseBasePrinterprinter
Type of the printer objects.

Functions

Name
voidinput_variadic_vector(std::vector< void * > & )
template <typename T ,typename… args>
void
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
scanner_plugin_def_ret()
template <typename ret >
std::enable_if< std::is_floating_point< ret >::value, ret >::type
scanner_plugin_def_ret()
template <int i>
double
pow(const double & a)
doublepow< 0 >(const double & )
doublepow< 1 >(const double & a)
template <int i>
int
pow(const int & a)
intpow< 0 >(const int & )
intpow< 1 >(const int & a)
template <typename T >
std::enable_if< is_container< T >::value, std::ostream & >::type
operator«(std::ostream & out, const T & in)
template <typename T >
std::enable_if< is_pair< T >::value, std::ostream & >::type
operator«(std::ostream & out, const T & in)
template <typename T >
std::enable_if<< T >::value &&< T >::value, void >::type
resume_file_output(std::ofstream & out, T & param)
template <typename T >
std::enable_if< is_container< T >::value, void >::type
resume_file_output(std::ofstream & out, T & param)
template <typename T >
std::enable_if< is_pair< T >::value, void >::type
resume_file_output(std::ofstream & out, T & param)
template <typename T >
std::enable_if<< T >::value &&< T >::value, void >::type
resume_file_input(std::ifstream & in, T & param)
template <typename T >
std::enable_if< is_container< T >::value, void >::type
resume_file_input(std::ifstream & in, T & param)
template <typename T >
std::enable_if< is_pair< T >::value, void >::type
resume_file_input(std::ifstream & in, T & param)
template <typename T >
std::enable_if<< T >::value &&< T >::value, size_t >::type
resume_size_of(T & )
template <typename T >
std::enable_if< is_container< T >::value, size_t >::type
resume_size_of(T & param)
template <typename T >
std::enable_if< is_pair< T >::value, size_t >::type
resume_size_of(T & )
voidresume_file_input(std::ifstream & in, std::string & param)
voidresume_file_output(std::ofstream & out, std::string & param)
size_tresume_size_of(std::string & param)
LOAD_FUNC_TEMPLATE(Scanner_Plugin_Function , double(std::unordered_map< std::string, double > &) )
LOAD_FUNC_TEMPLATE(Scanner_Plugin_Function , void(const std::vector< double > &, std::unordered_map< std::string, double > &) )
LOAD_FUNC_TEMPLATE(Scanner_Plugin_Function , std::vector< double > std::unordered_map< std::string, double > &)
LOAD_MULTI_FUNC_TEMPLATE(Multi_Scanner_Plugin_Function , double(std::unordered_map< std::string, double > &) )
voidassign_aux_numbers()
template <typename… T>
void
assign_aux_numbers(const std::string & tag, const T &… params)
EXPORT_SYMBOLS error &scan_error()
Scanner errors.
EXPORT_SYMBOLS warning &scan_warning()
Scanner warnings.
template <typename… T>
auto
zip(const T &… containers)
Use for combine container in a range loop: for (auto &&x : zip(a, b)){…}.
std::stringdemangle(const std::string & in)
Demangles gnu c++ name.
template <typename T >
std::vector< T >
get_yaml_vector(const YAML::Node & node)
intStringToInt(const std::string & str)
Converts a string to an int.
std::stringIntToString(const int & in)
Converts a int into a string.
doublepi()
Output pi.
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}, …].
intregister_ScannerBit_handlers()
boolnotUnit(const std::vector< double > & in)
template <typename T >
T::iterator::pointer
c_ptr(T & it)
std::vector< std::vector< double > >calcCov(const std::vector< std::vector< double > > & pts)
std::vector< std::vector< double > >calcIndent(const std::vector< std::vector< double > > & pts)
voidTWalk(Gambit::Scanner::like_ptr LogLike, Gambit::Scanner::printer_interface & printer, Gambit::Scanner::resume_params_func set_resume_params, const int & dimension, const double & div, const int & proj, const double & din, const double & alim, const double & alimt, const long long & rand, const double & sqrtR, const int & NChains, const bool & hyper_grid, const int & burn_in, const int & save_freq, const double & hrs_max)
YAML::NodecombineNodes(const std::map< std::string, YAML::Node > & nodesMap, const YAML::Node & node)

Attributes

Name
gambit_registry
std::unordered_map< type_index, func_type *, Gambit::type_hasher, Gambit::type_equal_to >functions
std::unordered_map< type_index, multi_func_type * >multi_functions
intScannerBit_handlers

Types Documentation

typedef prior_interface

typedef Priors::BasePrior Gambit::Scanner::prior_interface;

typedef multi_func_type

typedef void * Gambit::Scanner::multi_func_type(const std::map< std::string, std::vector< std::string > > &, const std::vector< std::pair< std::string, std::string > > &);

typedef printer_interface

typedef Printers::BasePrinterManager Gambit::Scanner::printer_interface;

typedef printer_interface_temp printer_interface;

typedef printer

typedef Printers::BaseBasePrinter Gambit::Scanner::printer;

Type of the printer objects.

Functions Documentation

function input_variadic_vector

inline void input_variadic_vector(
    std::vector< void * > & 
)

Inputs a varibadic pack into a vector

function input_variadic_vector

template <typename T ,
typename... args>
inline void input_variadic_vector(
    std::vector< void * > & input,
    const T & value,
    const args &... params
)

function scanner_plugin_def_ret

template <typename ret >
std::enable_if<!std::is_floating_point< ret >::value, ret >::type scanner_plugin_def_ret()

Turns a type into an object. If it’s a floating point number, it replaces it with a big negative number.

function scanner_plugin_def_ret

template <typename ret >
std::enable_if< std::is_floating_point< ret >::value, ret >::type scanner_plugin_def_ret()

function pow

template <int i>
inline double pow(
    const double & a
)

Outputs a^i

function pow< 0 >

inline double pow< 0 >(
    const double & 
)

function pow< 1 >

inline double pow< 1 >(
    const double & a
)

function pow

template <int i>
inline int pow(
    const int & a
)

function pow< 0 >

inline int pow< 0 >(
    const int & 
)

function pow< 1 >

inline int pow< 1 >(
    const int & a
)

function operator«

template <typename T >
inline std::enable_if< is_container< T >::value, std::ostream & >::type operator<<(
    std::ostream & out,
    const T & in
)

Outputs containers to an output stream

function operator«

template <typename T >
inline std::enable_if< is_pair< T >::value, std::ostream & >::type operator<<(
    std::ostream & out,
    const T & in
)

function resume_file_output

template <typename T >
inline std::enable_if<!is_container< T >::value &&!is_pair< T >::value, void >::type resume_file_output(
    std::ofstream & out,
    T & param
)

Functions to output data for the plugin resume functions

function resume_file_output

template <typename T >
inline std::enable_if< is_container< T >::value, void >::type resume_file_output(
    std::ofstream & out,
    T & param
)

function resume_file_output

template <typename T >
inline std::enable_if< is_pair< T >::value, void >::type resume_file_output(
    std::ofstream & out,
    T & param
)

function resume_file_input

template <typename T >
std::enable_if<!is_container< T >::value &&!is_pair< T >::value, void >::type resume_file_input(
    std::ifstream & in,
    T & param
)

function resume_file_input

template <typename T >
inline std::enable_if< is_container< T >::value, void >::type resume_file_input(
    std::ifstream & in,
    T & param
)

function resume_file_input

template <typename T >
inline std::enable_if< is_pair< T >::value, void >::type resume_file_input(
    std::ifstream & in,
    T & param
)

function resume_size_of

template <typename T >
inline std::enable_if<!is_container< T >::value &&!is_pair< T >::value, size_t >::type resume_size_of(
    T & 
)

function resume_size_of

template <typename T >
inline std::enable_if< is_container< T >::value, size_t >::type resume_size_of(
    T & param
)

function resume_size_of

template <typename T >
inline std::enable_if< is_pair< T >::value, size_t >::type resume_size_of(
    T & 
)

function resume_file_input

inline void resume_file_input(
    std::ifstream & in,
    std::string & param
)

function resume_file_output

inline void resume_file_output(
    std::ofstream & out,
    std::string & param
)

function resume_size_of

inline size_t resume_size_of(
    std::string & param
)

function LOAD_FUNC_TEMPLATE

LOAD_FUNC_TEMPLATE(
    Scanner_Plugin_Function ,
    double(std::unordered_map< std::string, double > &) 
)

function LOAD_FUNC_TEMPLATE

LOAD_FUNC_TEMPLATE(
    Scanner_Plugin_Function ,
    void(const std::vector< double > &, std::unordered_map< std::string, double > &) 
)

function LOAD_FUNC_TEMPLATE

LOAD_FUNC_TEMPLATE(
    Scanner_Plugin_Function ,
    std::vector< double > std::unordered_map< std::string, double > &
)

function LOAD_MULTI_FUNC_TEMPLATE

LOAD_MULTI_FUNC_TEMPLATE(
    Multi_Scanner_Plugin_Function ,
    double(std::unordered_map< std::string, double > &) 
)

function assign_aux_numbers

inline void assign_aux_numbers()

function assign_aux_numbers

template <typename... T>
inline void assign_aux_numbers(
    const std::string & tag,
    const T &... params
)

function scan_error

EXPORT_SYMBOLS error & scan_error()

Scanner errors.

function scan_warning

EXPORT_SYMBOLS warning & scan_warning()

Scanner warnings.

function zip

template <typename... T>
inline auto zip(
    const T &... containers
)

Use for combine container in a range loop: for (auto &&x : zip(a, b)){…}.

function demangle

inline std::string demangle(
    const std::string & in
)

Demangles gnu c++ name.

function get_yaml_vector

template <typename T >
inline 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, … vec: a; b; …

function StringToInt

inline int StringToInt(
    const std::string & str
)

Converts a string to an int.

function IntToString

inline std::string IntToString(
    const int & in
)

Converts a int into a string.

function pi

inline double pi()

Output pi.

function convert_to_map

inline 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}, …].

function register_ScannerBit_handlers

int register_ScannerBit_handlers()

function notUnit

inline bool notUnit(
    const std::vector< double > & in
)

function c_ptr

template <typename T >
inline T::iterator::pointer c_ptr(
    T & it
)

function calcCov

inline std::vector< std::vector< double > > calcCov(
    const std::vector< std::vector< double > > & pts
)

function calcIndent

inline std::vector< std::vector< double > > calcIndent(
    const std::vector< std::vector< double > > & pts
)

function TWalk

void TWalk(
    Gambit::Scanner::like_ptr LogLike,
    Gambit::Scanner::printer_interface & printer,
    Gambit::Scanner::resume_params_func set_resume_params,
    const int & dimension,
    const double & div,
    const int & proj,
    const double & din,
    const double & alim,
    const double & alimt,
    const long long & rand,
    const double & sqrtR,
    const int & NChains,
    const bool & hyper_grid,
    const int & burn_in,
    const int & save_freq,
    const double & hrs_max
)

function combineNodes

inline YAML::Node combineNodes(
    const std::map< std::string, YAML::Node > & nodesMap,
    const YAML::Node & node
)

Attributes Documentation

variable gambit_registry

gambit_registry {
            typedef void* func_type(const std::vector<std::string> &, const std::string &);

variable functions

std::unordered_map< type_index, func_type *, Gambit::type_hasher, Gambit::type_equal_to > __functions__;

variable multi_functions

std::unordered_map< type_index, multi_func_type * > __multi_functions__;

variable ScannerBit_handlers

int ScannerBit_handlers = register_ScannerBit_handlers();

Updated on 2023-06-26 at 21:36:52 +0000