slhaea_helpers.cpp
Go to the documentation of this file.
67 double SLHAea_get(const SLHAstruct& slha, const str& block, const int index, const double defvalue) 77 warn << "Warning! No entry found at index "<<index<<" of block "<<block<<". Using default value: "<<defvalue<< std::endl; 121 // TODO: Ben: I just found this, and I can't say I understand the logic related to "overwrite". It also makes 123 bool SLHAea_check_block(SLHAstruct& slha, const str& block, const int index) /*, const bool overwrite)*/ 144 bool SLHAea_check_block(SLHAstruct& slha, const str& block, const int index1, const int index2) /*, const bool overwrite)*/ 212 void SLHAea_add(SLHAstruct& slha /*modify*/, const str& block, const int index1, const int index2, 216 SLHAea_overwrite_block(slha, block, index1, index2, value, (comment == "" ? "" : "# " + comment));
void SLHAea_add_block(SLHAstruct &, const str &name, const double scale=-1) Add a new block to an SLHAea object, with or without a scale. Definition: slhaea_helpers.cpp:85 SMslha_SLHAstruct SLHAstruct read_SLHA(str slha) Read an SLHA file in to an SLHAea object with some error-checking. Definition: slhaea_helpers.cpp:32 void SLHAea_add_GAMBIT_SPINFO(SLHAstruct &slha) Write the SPINFO block with GAMBIT name and version number. Definition: slhaea_helpers.cpp:174 void SLHAea_add(SLHAstruct &slha, const str &block, const int index, const double value, const str &comment="", const bool overwrite=false) Add an entry to an SLHAea object (if overwrite=false, only if it doesn't already exist) ... Definition: slhaea_helpers.cpp:188 Definition: log_tags.hpp:38 SLHAea::Coll SLHAstruct Less confusing name for SLHAea container class. Definition: slhaea_helpers.hpp:41 Nicer alias for SLHAea container class, and some convenient helper functions that add or retrieve the... EXPORT_SYMBOLS warning & utils_warning() Utility warnings. Definition: standalone_error_handlers.cpp:34 bool SLHAea_block_exists(SLHAstruct &slha, const str &block) Check if a block exists in an SLHAea object. Definition: slhaea_helpers.cpp:97 Definition: log_tags.hpp:37 void SLHAea_overwrite_block(SLHAstruct &slha, const str &block, int index, T value, const str &comment) Check if a line exists in an SLHAea block, then overwrite it if it does. Otherwise add the line... Definition: slhaea_helpers.hpp:106 str & gambit_version() Statically construct a string containing the full GAMBIT version information and return a reference t... Definition: version.cpp:32 void SLHAea_delete_block(SLHAstruct &slha, const std::string &block) Delete an entire block from an SLHAea object, if it exists (actually just the first block matching th... Definition: slhaea_helpers.cpp:168 Exception objects required for standalone compilation. double SLHAea_get(const SLHAstruct &slha, const str &block, const int index) Get an entry from an SLHAea object as a double, with some error checking. Definition: slhaea_helpers.cpp:48 Version numbering. bool SLHAea_check_block(SLHAstruct &slha, const str &block) Check if a block exists in an SLHAea object, add it if not. Definition: slhaea_helpers.cpp:105 |