gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
plugin_factory.hpp File Reference

test functions implementations. More...

#include <map>
#include <vector>
#include <string>
#include <unordered_map>
#include <sstream>
#include <typeinfo>
#include <utility>
#include <limits>
#include <type_traits>
#include "gambit/ScannerBit/scanner_utils.hpp"
#include "gambit/ScannerBit/scan.hpp"
#include "gambit/ScannerBit/plugin_interface.hpp"
#include "gambit/Utils/yaml_options.hpp"
#include "gambit/Utils/type_index.hpp"
#include "gambit/Utils/signal_helpers.hpp"
#include "gambit/Utils/signal_handling.hpp"
#include "gambit/ScannerBit/factory_defs.hpp"
Include dependency graph for plugin_factory.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Gambit::Scanner::Scanner_Plugin_Function< T >
 
class  Gambit::Scanner::Multi_Scanner_Plugin_Function< T >
 
class  Gambit::Scanner::Scanner_Plugin_Function< ret(args...)>
 Objective functor made up a single plugin. More...
 
class  Gambit::Scanner::Multi_Scanner_Plugin_Function< ret(args...)>
 Objective functor made up of multiple plugins. More...
 
class  Gambit::Scanner::Plugin_Function_Factory
 Factory class to make objectives using objective plugins. More...
 

Namespaces

 Gambit
 TODO: see if we can use this one:
 
 Gambit::Scanner
 

Macros

#define LOAD_FUNC_TEMPLATE(name, ...)   REGISTER_ELEM(__functions__, typeid(__VA_ARGS__), name<__VA_ARGS__>)
 
#define LOAD_MULTI_FUNC_TEMPLATE(name, ...)   REGISTER_ELEM(__multi_functions__, typeid(__VA_ARGS__), name<__VA_ARGS__>)
 

Typedefs

typedef voidGambit::Scanner::multi_func_type(const std::map< std::string, std::vector< std::string >> &, const std::vector< std::pair< std::string, std::string >> &)
 

Functions

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

Variables

 Gambit::Scanner::gambit_registry
 
std::unordered_map< type_index, func_type *, Gambit::type_hasher, Gambit::type_equal_toGambit::Scanner::__functions__
 
std::unordered_map< type_index, multi_func_type * > Gambit::Scanner::__multi_functions__
 

Detailed Description

test functions implementations.


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
Feb 2014

Definition in file plugin_factory.hpp.

Macro Definition Documentation

◆ LOAD_FUNC_TEMPLATE

#define LOAD_FUNC_TEMPLATE (   name,
  ... 
)    REGISTER_ELEM(__functions__, typeid(__VA_ARGS__), name<__VA_ARGS__>)

Definition at line 40 of file plugin_factory.hpp.

◆ LOAD_MULTI_FUNC_TEMPLATE

#define LOAD_MULTI_FUNC_TEMPLATE (   name,
  ... 
)    REGISTER_ELEM(__multi_functions__, typeid(__VA_ARGS__), name<__VA_ARGS__>)

Definition at line 41 of file plugin_factory.hpp.