spec_head.hpp
Go to the documentation of this file.
61 static_assert(always_false<T>::value, "Failed to find appropriate specialisation of SpecTraits! Did you define one along with your SubSpectrum wrapper? If so, please be sure that the template parameter matches the name of your wrapper class."); 115 bool has(const Par::Tags, const str&, const SpecOverrideOptions=use_overrides, const SafeBool=SafeBool(true)) const; 116 double get(const Par::Tags, const str&, const SpecOverrideOptions=use_overrides, const SafeBool=SafeBool(true)) const; 117 bool has(const Par::Tags, const str&, const int, const SpecOverrideOptions=use_overrides, const SafeBool=SafeBool(true)) const; 118 double get(const Par::Tags, const str&, const int, const SpecOverrideOptions=use_overrides, const SafeBool=SafeBool(true)) const; 119 bool has(const Par::Tags, const str&, const int, const int, const SpecOverrideOptions=use_overrides) const; 120 double get(const Par::Tags, const str&, const int, const int, const SpecOverrideOptions=use_overrides) const; Mini helper class to specify behaviour of getters w.r.t. overrides in a type-safe way... Definition: spectrum_helpers.hpp:97 VerifyContents(const SubSpectrum &spec) Definition: spec_head.hpp:82 static const GetterMaps getter_maps Initialise maps (uses filler overrides from DerivedSpec if defined) Definition: spec_head.hpp:250 DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry DecayTable::Entry double Definition: ColliderBit_LEP_rollcall.hpp:183 static const std::map< Par::Tags, MapCollection< MTget > > final_fill_getter_maps() Definition: spec_head.hpp:180 Input & input() Get struct containing any extra data input on SubSpectrum object creation. Definition: spec_head.hpp:239 FptrFinder friend class for implementing named parameter idiom. Definition: spec_fptrfinder.hpp:41 Definition: safebool.hpp:37 Struct to hold collections of function pointer maps to be filled by derived classes. Definition: subspectrum.hpp:57 Simpler helper class to run the verify_contents function only once, the first time a particular wrapp... Definition: spec_head.hpp:79 std::map< Par::Tags, MapCollection< MTset > > SetterMaps Definition: spec_head.hpp:249 Spec() Constructor This uses the "Contents" class to verify (once, not every construction) that this wrapper... Definition: spec_head.hpp:205 DummyModel dummymodel Default "null" versions of get_Model and get_Input, to be used if wrapper does not override them... Definition: spec_head.hpp:226 static int get_index_offset() Function to retrieve the possibly overridden index offset from the derived class via CRTP... Definition: spec_head.hpp:151 static const std::map< Par::Tags, MapCollection< MTget > > fill_getter_maps() Definition: spec_head.hpp:133 const Input & input() const Return it as const if we are a const object. Definition: spec_head.hpp:241 const Model & model() const Return it as const if we are a const object. Definition: spec_head.hpp:236 virtual std::unique_ptr< SubSpectrum > clone() const CRTP-style polymorphic clone function Now derived classes will not need to re-implement the clone fun... Definition: spec_head.hpp:212 Helper class for calling function pointers found by FptrFinder. Definition: spec_fptrfinder.hpp:147 static const std::map< Par::Tags, MapCollection< MTset > > fill_setter_maps() Definition: spec_head.hpp:138 static void getter_maps_fill_tags(std::map< Par::Tags, MapCollection< MTget >> &in) Definition: spec_head.hpp:156 Abstract class for accessing general spectrum information. Base class for definining the required contents of SubSpectrum wrapper objects. Dummy classes to satisfy template parameters for Spec class in cases when those objects are not neede... Definition: spec_head.hpp:44 SpecTraits< D >::Contents Contents Note: Wrapper need to define a specialisation of SpecTraits, which typedefs Model and Input... Definition: spec_head.hpp:105 static int index_offset() Get integer offset convention used by internal model class (needed by getters which take indices) By ... Definition: spec_head.hpp:146 Forward declare base traits class which communicates Model and Input typedefs from the wrapper class ... Definition: spec_head.hpp:59 Virtual base class for interacting with spectrum generator output. Definition: subspectrum.hpp:87 static const std::map< Par::Tags, MapCollection< MTset > > final_fill_setter_maps() Definition: spec_head.hpp:188 Default values for traits. Specialisations of SpecTraits should inherit from this, and then override the traits that they want to customise. Definition: spec_head.hpp:65 Definition: spec_head.hpp:45 static void setter_maps_fill_tags(std::map< Par::Tags, MapCollection< MTset >> &in) Definition: spec_head.hpp:164 std::map< Par::Tags, MapCollection< MTget > > GetterMaps Will need a map of map collections for both the getters and setters, containing the map collections f... Definition: spec_head.hpp:248 |