LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "extended_value.h"
Public Types | |
using | atom_t = std::string |
using | complex_t = std::pair< std::string, std::string > |
using | sequence_t = std::vector< extended_value > |
using | table_t = shims::map< std::string, extended_value > |
Public Member Functions | |
extended_value () | |
~extended_value () | |
extended_value (bool const in_prolog, value_tag const tag, std::any const value, Protection const protection, std::string src={}) | |
extended_value (bool const in_prolog, value_tag const tag, std::any const value, std::string src={}) | |
bool | is_a (value_tag const t) const noexcept |
std::string | to_string () const |
void | set_prolog (bool new_prolog_state) |
void | set_src_info (std::string const &src) |
void | reset_protection () |
std::string | pretty_src_info () const |
operator atom_t () const | |
operator complex_t () const | |
operator sequence_t () const | |
operator table_t () const | |
Public Attributes | |
bool | in_prolog {false} |
value_tag | tag {UNKNOWN} |
std::any | value {} |
std::string | src_info {} |
Protection | protection {Protection::NONE} |
Definition at line 37 of file extended_value.h.
using fhicl::extended_value::atom_t = std::string |
Definition at line 39 of file extended_value.h.
using fhicl::extended_value::complex_t = std::pair<std::string, std::string> |
Definition at line 40 of file extended_value.h.
using fhicl::extended_value::sequence_t = std::vector<extended_value> |
Definition at line 41 of file extended_value.h.
using fhicl::extended_value::table_t = shims::map<std::string, extended_value> |
Definition at line 42 of file extended_value.h.
|
default |
|
default |
|
inline |
|
inline |
|
inlinenoexcept |
Definition at line 67 of file extended_value.h.
References set_prolog(), tag, and to_string().
Referenced by fhicl::detail::decode(), fhicl::detail::encode(), fhicl::intermediate_table::exists(), fhicl::intermediate_table::find(), fhicl::intermediate_table::locate_(), and fhicl::ParameterSet::make().
|
inline |
|
inline |
|
inline |
|
inline |
std::string fhicl::extended_value::pretty_src_info | ( | ) | const |
Definition at line 120 of file extended_value.cc.
References src_info.
Referenced by fhicl::intermediate_table::locate_(), and reset_protection().
|
inline |
void fhicl::extended_value::set_prolog | ( | bool | new_prolog_state | ) |
Definition at line 79 of file extended_value.cc.
References fhicl::BOOL, fhicl::COMPLEX, e, in_prolog, fhicl::NIL, fhicl::NUMBER, fhicl::SEQUENCE, fhicl::STRING, fhicl::TABLE, fhicl::TABLEID, tag, fhicl::UNKNOWN, and value.
Referenced by is_a(), and fhicl::intermediate_table::locate_().
|
inline |
std::string fhicl::extended_value::to_string | ( | ) | const |
Definition at line 22 of file extended_value.cc.
References fhicl::BOOL, fhicl::COMPLEX, in_prolog, shims::isSnippetMode(), fhicl::NIL, fhicl::NUMBER, fhicl::SEQUENCE, fhicl::STRING, fhicl::TABLE, fhicl::TABLEID, tag, fhicl::UNKNOWN, and value.
Referenced by is_a().
bool fhicl::extended_value::in_prolog {false} |
Definition at line 96 of file extended_value.h.
Referenced by art::detail::exists_outside_prolog(), fhicl::intermediate_table::pre_insert_(), set_prolog(), and to_string().
Protection fhicl::extended_value::protection {Protection::NONE} |
Definition at line 112 of file extended_value.h.
Referenced by fhicl::intermediate_table::locate_(), and fhicl::intermediate_table::pre_insert_().
std::string fhicl::extended_value::src_info {} |
Definition at line 99 of file extended_value.h.
Referenced by extended_value(), pretty_src_info(), and set_src_info().
Definition at line 97 of file extended_value.h.
Referenced by fhicl::detail::encode(), is_a(), set_prolog(), and to_string().
std::any fhicl::extended_value::value {} |
Definition at line 98 of file extended_value.h.
Referenced by fhicl::intermediate_table::exists(), fhicl::intermediate_table::find(), fhicl::intermediate_table::locate_(), operator atom_t(), operator complex_t(), operator sequence_t(), operator table_t(), fhicl::detail::it_value_get< T, typename tt::disable_if< std::is_reference_v< T >|| std::is_pointer_v< T > >::type >::operator()(), fhicl::detail::it_value_get< intermediate_table::sequence_t >::operator()(), fhicl::detail::it_value_get< intermediate_table::sequence_t const & >::operator()(), fhicl::detail::it_value_get< intermediate_table::table_t >::operator()(), fhicl::detail::it_value_get< intermediate_table::table_t const & >::operator()(), set_prolog(), and to_string().