#include <intermediate_table.h>
Public Types | |
using | atom_t = extended_value::atom_t |
using | complex_t = extended_value::complex_t |
using | sequence_t = extended_value::sequence_t |
using | table_t = extended_value::table_t |
using | iterator = table_t::iterator |
using | const_iterator = table_t::const_iterator |
Public Member Functions | |
bool | empty () const |
bool | exists (std::string const &key) const |
void | erase (std::string const &key, bool in_prolog=false) |
template<typename T > | |
T | get (std::string const &name) |
bool | put (std::string const &name, std::string const &value, bool in_prolog=false) |
bool | put (std::string const &name, char const *value, bool in_prolog=false) |
bool | put (std::string const &name, bool value, bool in_prolog=false) |
template<typename T > | |
bool | put (std::string const &name, std::complex< T > const &value, bool in_prolog=false) |
template<typename T > | |
bool | put (std::string const &name, std::vector< T > const &value, bool in_prolog=false) |
template<typename T > | |
std::enable_if_t< tt::is_numeric< T >::value, bool > | put (std::string const &name, T value, bool in_prolog=false) |
bool | putEmptySequence (std::string const &name, bool in_prolog=false) |
bool | putEmptyTable (std::string const &name, bool in_prolog=false) |
bool | putNil (std::string const &name, bool in_prolog=false) |
const_iterator | begin () const |
const_iterator | end () const |
bool | insert (std::string const &key, bool in_prolog, value_tag tag, std::any const &value) |
bool | insert (std::string const &key, extended_value const &value) |
bool | insert (std::string const &key, extended_value &&value) |
extended_value const & | find (std::string const &key) const |
extended_value * | locate (std::string const &key) |
extended_value & | update (std::string const &key) |
template<typename T > | |
std::enable_if< tt::is_numeric< T >::value, bool >::type | put (std::string const &key, T const value, bool const in_prolog) |
Private Member Functions | |
extended_value * | pre_insert_ (std::string const &key, extended_value const &value) |
std::pair< extended_value *, bool > | locate_ (std::string const &key, bool in_prolog=false) |
Static Private Member Functions | |
static std::vector< std::string > | split (std::string const &key) |
Private Attributes | |
extended_value | ex_val {false, TABLE, table_t{}} |
Definition at line 65 of file intermediate_table.h.
Definition at line 110 of file intermediate_table.h.
Definition at line 111 of file intermediate_table.h.
Definition at line 115 of file intermediate_table.h.
Definition at line 114 of file intermediate_table.h.
Definition at line 112 of file intermediate_table.h.
Definition at line 113 of file intermediate_table.h.
const_iterator intermediate_table::begin | ( | ) | const |
Definition at line 57 of file intermediate_table.cc.
bool intermediate_table::empty | ( | ) | const |
Definition at line 71 of file intermediate_table.cc.
const_iterator intermediate_table::end | ( | ) | const |
Definition at line 63 of file intermediate_table.cc.
void intermediate_table::erase | ( | std::string const & | key, |
bool | in_prolog = false |
||
) |
Definition at line 174 of file intermediate_table.cc.
bool intermediate_table::exists | ( | std::string const & | key | ) | const |
Definition at line 143 of file intermediate_table.cc.
extended_value const & intermediate_table::find | ( | std::string const & | key | ) | const |
if | item does not exist. |
Definition at line 112 of file intermediate_table.cc.
|
inline |
Definition at line 274 of file intermediate_table.h.
bool intermediate_table::insert | ( | std::string const & | key, |
bool | in_prolog, | ||
value_tag | tag, | ||
std::any const & | value | ||
) |
Definition at line 79 of file intermediate_table.cc.
bool intermediate_table::insert | ( | std::string const & | key, |
extended_value const & | value | ||
) |
Definition at line 88 of file intermediate_table.cc.
bool intermediate_table::insert | ( | std::string const & | key, |
extended_value && | value | ||
) |
Definition at line 99 of file intermediate_table.cc.
|
inline |
Definition at line 365 of file intermediate_table.h.
|
private |
Definition at line 257 of file intermediate_table.cc.
|
private |
Definition at line 234 of file intermediate_table.cc.
|
inline |
Definition at line 281 of file intermediate_table.h.
|
inline |
Definition at line 289 of file intermediate_table.h.
|
inline |
Definition at line 297 of file intermediate_table.h.
bool fhicl::intermediate_table::put | ( | std::string const & | name, |
std::complex< T > const & | value, | ||
bool | in_prolog = false |
||
) |
Definition at line 306 of file intermediate_table.h.
|
inline |
Definition at line 319 of file intermediate_table.h.
std::enable_if_t<tt::is_numeric<T>::value, bool> fhicl::intermediate_table::put | ( | std::string const & | name, |
T | value, | ||
bool | in_prolog = false |
||
) |
|
inline |
Definition at line 337 of file intermediate_table.h.
|
inline |
Definition at line 344 of file intermediate_table.h.
|
inline |
Definition at line 351 of file intermediate_table.h.
|
inline |
Definition at line 358 of file intermediate_table.h.
|
staticprivate |
Definition at line 310 of file intermediate_table.cc.
|
inline |
if | not able to be updated. |
Definition at line 376 of file intermediate_table.h.
|
private |
Definition at line 149 of file intermediate_table.h.