namespace YAML

YAML overloads for mass cut and mass cut ratio constituents.

Classes

Name
structYAML::convert< Gambit::DRes::BackendRule >
structYAML::convert< Gambit::DRes::ModuleRule >
structYAML::convert< Gambit::DRes::Observable >
structYAML::convert< Gambit::nuiscorr >
YAML conversion structure for SuperIso SM nuisance data.
structYAML::convert< sdd >
structYAML::convert< ssdd >

Types

Name
typedef std::pair< std::string, std::pair< double, double > >sdd
typedef std::pair< std::pair< std::string, std::string >, std::pair< double, double > >ssdd

Functions

Name
voidconvert_to_module_rule(const YAML::detail::iterator_value y, std::vector< ModuleRule > & v)
Helper function for trying to convert a YAML snippet to a nested module rule.
voidconvert_to_backend_rule(const YAML::detail::iterator_value y, std::vector< BackendRule > & v)
Helper function for trying to convert a YAML snippet to a nested backend rule.
boolcheck_field_is_valid_in_derived_rule(const std::string & field)
Throw an error if a yaml key is not one of those exclusively allowed in a module or backend rule.
voidthrow_if_field_valid_only_in_backend_rule(const std::string & field)
Throw an error if a yaml key is one of those exclusively allowed in a backend rule.
voidthrow_if_field_valid_only_in_module_rule(const std::string & field)
Throw an error if a yaml key is one of those exclusively allowed in a module rule.
voidforbid_both_true(const std::string & field, bool is_in_one_block, bool is_in_other_block)
Throw an error if a field appears in both an if and a then block.
voidbuild_rule(const Node & node, Rule & rhs)
Build the base-class parts of a rule from a yaml node.
voidset_other_module_rule_fields(const YAML::detail::iterator_value & entry, ModuleRule & rhs)
Set fields exclusive to module rules that can only appear as ’then’ parts of a condition.

Types Documentation

typedef sdd

typedef std::pair<std::string, std::pair<double, double> > YAML::sdd;

typedef ssdd

typedef std::pair<std::pair<std::string,std::string>, std::pair<double, double> > YAML::ssdd;

Functions Documentation

function convert_to_module_rule

void convert_to_module_rule(
    const YAML::detail::iterator_value y,
    std::vector< ModuleRule > & v
)

Helper function for trying to convert a YAML snippet to a nested module rule.

function convert_to_backend_rule

void convert_to_backend_rule(
    const YAML::detail::iterator_value y,
    std::vector< BackendRule > & v
)

Helper function for trying to convert a YAML snippet to a nested backend rule.

function check_field_is_valid_in_derived_rule

bool check_field_is_valid_in_derived_rule(
    const std::string & field
)

Throw an error if a yaml key is not one of those exclusively allowed in a module or backend rule.

function throw_if_field_valid_only_in_backend_rule

void throw_if_field_valid_only_in_backend_rule(
    const std::string & field
)

Throw an error if a yaml key is one of those exclusively allowed in a backend rule.

function throw_if_field_valid_only_in_module_rule

void throw_if_field_valid_only_in_module_rule(
    const std::string & field
)

Throw an error if a yaml key is one of those exclusively allowed in a module rule.

function forbid_both_true

void forbid_both_true(
    const std::string & field,
    bool is_in_one_block,
    bool is_in_other_block
)

Throw an error if a field appears in both an if and a then block.

function build_rule

void build_rule(
    const Node & node,
    Rule & rhs
)

Build the base-class parts of a rule from a yaml node.

function set_other_module_rule_fields

void set_other_module_rule_fields(
    const YAML::detail::iterator_value & entry,
    ModuleRule & rhs
)

Set fields exclusive to module rules that can only appear as ’then’ parts of a condition.


Updated on 2024-07-18 at 13:53:30 +0000