LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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 ()=default | |
extended_value (bool const in_prolog, value_tag const tag, boost::any const value, Protection const protection, std::string const &src={}) | |
extended_value (bool const in_prolog, value_tag const tag, boost::any const value, std::string const &src={}) | |
bool | is_a (value_tag t) const |
std::string | to_string () const |
void | set_prolog (bool new_prolog_state) |
void | set_src_info (std::string const &src) |
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} |
boost::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 |
|
inline |
|
inline |
|
inline |
Definition at line 66 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::make_ParameterSet().
|
inline |
|
inline |
|
inline |
|
inline |
std::string fhicl::extended_value::pretty_src_info | ( | ) | const |
Definition at line 119 of file extended_value.cc.
References src_info.
Referenced by fhicl::intermediate_table::locate_(), and set_src_info().
void fhicl::extended_value::set_prolog | ( | bool | new_prolog_state | ) |
Definition at line 78 of file extended_value.cc.
References shims::map< Key, T, Compare, Allocator >::begin(), fhicl::BOOL, fhicl::COMPLEX, e, shims::map< Key, T, Compare, Allocator >::end(), 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 17 of file extended_value.cc.
References fhicl::BOOL, shims::map< Key, T, Compare, Allocator >::cbegin(), shims::map< Key, T, Compare, Allocator >::cend(), fhicl::COMPLEX, e, in_prolog, shims::isSnippetMode(), fhicl::NIL, fhicl::NUMBER, s, 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 91 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 95 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 94 of file extended_value.h.
Referenced by extended_value(), pretty_src_info(), and set_src_info().
Definition at line 92 of file extended_value.h.
Referenced by fhicl::detail::encode(), is_a(), set_prolog(), and to_string().
boost::any fhicl::extended_value::value {} |
Definition at line 93 of file extended_value.h.
Referenced by fhicl::intermediate_table::begin(), fhicl::intermediate_table::empty(), fhicl::intermediate_table::end(), 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< T >::value|| std::is_pointer< T >::value >::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()(), fhicl::intermediate_table::pre_insert_(), set_prolog(), and to_string().