STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
table Class Reference

#include <toml.hpp>

Inheritance diagram for table:
[legend]
Collaboration diagram for table:
[legend]

Public Types

using iterator = toml::table_iterator
using const_iterator = toml::const_table_iterator
using raw_value_type = impl::remove_cvref<ValueType>
using value_type
using unwrapped_type = impl::remove_cvref<impl::unwrap_node<value_type>>

Public Member Functions

TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION table () noexcept
TOML_EXPORTED_MEMBER_FUNCTION ~table () noexcept
TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION table (const table &)
TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION table (table &&other) noexcept
TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION table (std::initializer_list< impl::table_init_pair > kvps)
TOML_EXPORTED_MEMBER_FUNCTION table & operator= (const table &)
TOML_EXPORTED_MEMBER_FUNCTION table & operator= (table &&rhs) noexcept
TOML_CONST_INLINE_GETTER node_type type () const noexcept final
TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION bool is_homogeneous (node_type ntype) const noexcept final
TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION bool is_homogeneous (node_type ntype, node *&first_nonmatch) noexcept final
TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION bool is_homogeneous (node_type ntype, const node *&first_nonmatch) const noexcept final
template<typename ElemType = void>
TOML_PURE_GETTER bool is_homogeneous () const noexcept
TOML_CONST_INLINE_GETTER bool is_table () const noexcept final
TOML_CONST_INLINE_GETTER bool is_array () const noexcept final
TOML_PURE_GETTER bool is_array_of_tables () const noexcept final
TOML_CONST_INLINE_GETTER bool is_value () const noexcept final
TOML_CONST_INLINE_GETTER bool is_string () const noexcept final
TOML_CONST_INLINE_GETTER bool is_integer () const noexcept final
TOML_CONST_INLINE_GETTER bool is_floating_point () const noexcept final
TOML_CONST_INLINE_GETTER bool is_number () const noexcept final
TOML_CONST_INLINE_GETTER bool is_boolean () const noexcept final
TOML_CONST_INLINE_GETTER bool is_date () const noexcept final
TOML_CONST_INLINE_GETTER bool is_time () const noexcept final
TOML_CONST_INLINE_GETTER bool is_date_time () const noexcept final
TOML_CONST_INLINE_GETTER table * as_table () noexcept final
TOML_CONST_INLINE_GETTER array * as_array () noexcept final
TOML_CONST_INLINE_GETTER toml::value< std::string > * as_string () noexcept final
TOML_CONST_INLINE_GETTER toml::value< int64_t > * as_integer () noexcept final
TOML_CONST_INLINE_GETTER toml::value< double > * as_floating_point () noexcept final
TOML_CONST_INLINE_GETTER toml::value< bool > * as_boolean () noexcept final
TOML_CONST_INLINE_GETTER toml::value< date > * as_date () noexcept final
TOML_CONST_INLINE_GETTER toml::value< time > * as_time () noexcept final
TOML_CONST_INLINE_GETTER toml::value< date_time > * as_date_time () noexcept final
TOML_CONST_INLINE_GETTER const table * as_table () const noexcept final
TOML_CONST_INLINE_GETTER const array * as_array () const noexcept final
TOML_CONST_INLINE_GETTER const toml::value< std::string > * as_string () const noexcept final
TOML_CONST_INLINE_GETTER const toml::value< int64_t > * as_integer () const noexcept final
TOML_CONST_INLINE_GETTER const toml::value< double > * as_floating_point () const noexcept final
TOML_CONST_INLINE_GETTER const toml::value< bool > * as_boolean () const noexcept final
TOML_CONST_INLINE_GETTER const toml::value< date > * as_date () const noexcept final
TOML_CONST_INLINE_GETTER const toml::value< time > * as_time () const noexcept final
TOML_CONST_INLINE_GETTER const toml::value< date_time > * as_date_time () const noexcept final
TOML_PURE_INLINE_GETTER bool is_inline () const noexcept
void is_inline (bool val) noexcept
TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION node * get (std::string_view key) noexcept
TOML_PURE_INLINE_GETTER const node * get (std::string_view key) const noexcept
template<typename T>
TOML_PURE_GETTER impl::wrap_node< T > * get_as (std::string_view key) noexcept
template<typename T>
TOML_PURE_GETTER const impl::wrap_node< T > * get_as (std::string_view key) const noexcept
TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION node & at (std::string_view key)
TOML_NODISCARD const node & at (std::string_view key) const
TOML_PURE_INLINE_GETTER iterator begin () noexcept
TOML_PURE_INLINE_GETTER const_iterator begin () const noexcept
TOML_PURE_INLINE_GETTER const_iterator cbegin () const noexcept
TOML_PURE_INLINE_GETTER iterator end () noexcept
TOML_PURE_INLINE_GETTER const_iterator end () const noexcept
TOML_PURE_INLINE_GETTER const_iterator cend () const noexcept
template<typename Func>
table & for_each (Func &&visitor) &noexcept(for_each_is_nothrow< Func &&, table & >::value)
template<typename Func>
table && for_each (Func &&visitor) &&noexcept(for_each_is_nothrow< Func &&, table && >::value)
template<typename Func>
const table & for_each (Func &&visitor) const &noexcept(for_each_is_nothrow< Func &&, const table & >::value)
template<typename Func>
const table && for_each (Func &&visitor) const &&noexcept(for_each_is_nothrow< Func &&, const table && >::value)
TOML_PURE_INLINE_GETTER bool empty () const noexcept
TOML_PURE_INLINE_GETTER size_t size () const noexcept
TOML_PURE_GETTER iterator lower_bound (std::string_view key) noexcept
TOML_PURE_GETTER const_iterator lower_bound (std::string_view key) const noexcept
TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION iterator find (std::string_view key) noexcept
TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION const_iterator find (std::string_view key) const noexcept
TOML_PURE_GETTER bool contains (std::string_view key) const noexcept
iterator erase (iterator pos) noexcept
iterator erase (const_iterator pos) noexcept
iterator erase (const_iterator begin, const_iterator end) noexcept
TOML_EXPORTED_MEMBER_FUNCTION size_t erase (std::string_view key) noexcept
TOML_EXPORTED_MEMBER_FUNCTION table & prune (bool recursive=true) &noexcept
table && prune (bool recursive=true) &&noexcept
TOML_EXPORTED_MEMBER_FUNCTION void clear () noexcept
 TOML_CONSTRAINED_TEMPLATE ((is_key_or_convertible< KeyType && >||impl::is_wide_string< KeyType >), typename ValueType=void, typename KeyType, typename... ValueArgs) iterator emplace_hint(const_iterator hint
if constexpr (impl::is_wide_string< KeyType >)
 if (!ipos->second)
 TOML_CONSTRAINED_TEMPLATE ((is_key_or_convertible< KeyType && >||impl::is_wide_string< KeyType >), typename KeyType, typename ValueType) std
void insert (Iter begin, Iter end, value_flags flags=preserve_source_value_flags)
 TOML_CONSTRAINED_TEMPLATE ((is_key_or_convertible< KeyType && >||impl::is_wide_string< KeyType >), typename KeyType, typename ValueType) std
 TOML_CONSTRAINED_TEMPLATE ((is_key_or_convertible< KeyType && >||impl::is_wide_string< KeyType >), typename ValueType=void, typename KeyType, typename... ValueArgs) std
TOML_NODISCARD node_view< node > operator[] (std::string_view key) noexcept
TOML_NODISCARD node_view< const node > operator[] (std::string_view key) const noexcept

Public Attributes

KeyType && key
KeyType ValueArgs && args
 else
map_iterator ipos = insert_with_hint(hint, toml::key{ static_cast<KeyType&&>(key) }, nullptr)
return iterator { ipos }

Private Types

using map_type = std::map<toml::key, impl::node_ptr, std::less<>>
using map_pair = std::pair<const toml::key, impl::node_ptr>
using map_iterator = typename map_type::iterator
using const_map_iterator = typename map_type::const_iterator
template<typename T, typename Table>
using for_each_value_ref = impl::copy_cvref<impl::wrap_node<impl::remove_cvref<impl::unwrap_node<T>>>, Table>
template<typename Func, typename Table, typename T>
using can_for_each
template<typename Func, typename Table, typename T>
using can_for_each_nothrow
template<typename Func, typename Table>
using can_for_each_any
template<typename Func, typename Table, typename T>
using for_each_is_nothrow_one
template<typename Func, typename Table>
using for_each_is_nothrow

Private Member Functions

TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION table (const impl::table_init_pair *, const impl::table_init_pair *)
TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION map_iterator get_lower_bound (std::string_view) noexcept
TOML_EXPORTED_MEMBER_FUNCTION map_iterator erase (const_map_iterator) noexcept
TOML_EXPORTED_MEMBER_FUNCTION map_iterator erase (const_map_iterator, const_map_iterator) noexcept
TOML_EXPORTED_MEMBER_FUNCTION map_iterator insert_with_hint (const_iterator, key &&, impl::node_ptr &&)

Static Private Member Functions

template<typename Func, typename Table>
static void do_for_each (Func &&visitor, Table &&tbl) noexcept(for_each_is_nothrow< Func &&, Table && >::value)
TOML_PURE_GETTER static TOML_EXPORTED_STATIC_FUNCTION bool TOML_CALLCONV equal (const table &, const table &) noexcept

Private Attributes

map_type map_
bool inline_ = false

Friends

TOML_NODISCARD friend bool operator== (const table &lhs, const table &rhs) noexcept
TOML_NODISCARD friend bool operator!= (const table &lhs, const table &rhs) noexcept
std::ostream & operator<< (std::ostream &lhs, const table &rhs)

Detailed Description

Definition at line 7625 of file toml.hpp.

Member Typedef Documentation

◆ can_for_each

template<typename Func, typename Table, typename T>
using table::can_for_each
private
Initial value:
std::disjunction<std::is_invocable<Func, const key&, for_each_value_ref<T, Table>>,
std::is_invocable<Func, for_each_value_ref<T, Table>>>

Definition at line 8027 of file toml.hpp.

◆ can_for_each_any

template<typename Func, typename Table>
using table::can_for_each_any
private
Initial value:
std::disjunction<can_for_each<Func, Table, table>,
std::disjunction< std::is_invocable< Func, const key &, for_each_value_ref< T, Table > >, std::is_invocable< Func, for_each_value_ref< T, Table > > > can_for_each
Definition toml.hpp:8027

Definition at line 8042 of file toml.hpp.

◆ can_for_each_nothrow

template<typename Func, typename Table, typename T>
using table::can_for_each_nothrow
private
Initial value:
std::conditional_t<
std::is_invocable_v<Func, const key&, for_each_value_ref<T, Table>>,
std::is_nothrow_invocable<Func, const key&, for_each_value_ref<T, Table>>,
std::conditional_t<
std::is_invocable_v<Func, for_each_value_ref<T, Table>>,
std::is_nothrow_invocable<Func, for_each_value_ref<T, Table>>,
std::false_type>>

Definition at line 8031 of file toml.hpp.

◆ const_iterator

using table::const_iterator = toml::const_table_iterator

Definition at line 7983 of file toml.hpp.

◆ const_map_iterator

using table::const_map_iterator = typename map_type::const_iterator
private

Definition at line 7632 of file toml.hpp.

◆ for_each_is_nothrow

template<typename Func, typename Table>
using table::for_each_is_nothrow
private

◆ for_each_is_nothrow_one

template<typename Func, typename Table, typename T>
using table::for_each_is_nothrow_one
private
Initial value:
std::disjunction<std::negation<can_for_each<Func, Table, T>>,
std::conditional_t< std::is_invocable_v< Func, const key &, for_each_value_ref< T, Table > >, std::is_nothrow_invocable< Func, const key &, for_each_value_ref< T, Table > >, std::conditional_t< std::is_invocable_v< Func, for_each_value_ref< T, Table > >, std::is_nothrow_invocable< Func, for_each_value_ref< T, Table > >, std::false_type > > can_for_each_nothrow
Definition toml.hpp:8031

Definition at line 8053 of file toml.hpp.

◆ for_each_value_ref

template<typename T, typename Table>
using table::for_each_value_ref = impl::copy_cvref<impl::wrap_node<impl::remove_cvref<impl::unwrap_node<T>>>, Table>
private

Definition at line 8024 of file toml.hpp.

◆ iterator

using table::iterator = toml::table_iterator

Definition at line 7981 of file toml.hpp.

◆ map_iterator

using table::map_iterator = typename map_type::iterator
private

Definition at line 7631 of file toml.hpp.

◆ map_pair

using table::map_pair = std::pair<const toml::key, impl::node_ptr>
private

Definition at line 7630 of file toml.hpp.

◆ map_type

using table::map_type = std::map<toml::key, impl::node_ptr, std::less<>>
private

Definition at line 7629 of file toml.hpp.

◆ raw_value_type

using table::raw_value_type = impl::remove_cvref<ValueType>

Definition at line 8364 of file toml.hpp.

◆ unwrapped_type

using table::unwrapped_type = impl::remove_cvref<impl::unwrap_node<value_type>>

Definition at line 8383 of file toml.hpp.

◆ value_type

Initial value:
std::
conditional_t<std::is_void_v<raw_value_type>, impl::emplaced_type_of<ValueArgs&&...>, raw_value_type>
impl::remove_cvref< ValueType > raw_value_type
Definition toml.hpp:8364

Definition at line 8365 of file toml.hpp.

Constructor & Destructor Documentation

◆ table() [1/5]

◆ table() [2/5]

◆ ~table()

◆ table() [3/5]

◆ table() [4/5]

◆ table() [5/5]

TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION table::table ( std::initializer_list< impl::table_init_pair > kvps)
inlineexplicit

Definition at line 7660 of file toml.hpp.

References begin(), end(), and table().

Member Function Documentation

◆ as_array() [1/2]

TOML_CONST_INLINE_GETTER const array * table::as_array ( ) const
inlinefinalnoexcept

Definition at line 7832 of file toml.hpp.

◆ as_array() [2/2]

TOML_CONST_INLINE_GETTER array * table::as_array ( )
inlinefinalnoexcept

Definition at line 7778 of file toml.hpp.

◆ as_boolean() [1/2]

TOML_CONST_INLINE_GETTER const toml::value< bool > * table::as_boolean ( ) const
inlinefinalnoexcept

Definition at line 7856 of file toml.hpp.

◆ as_boolean() [2/2]

TOML_CONST_INLINE_GETTER toml::value< bool > * table::as_boolean ( )
inlinefinalnoexcept

Definition at line 7802 of file toml.hpp.

◆ as_date() [1/2]

TOML_CONST_INLINE_GETTER const toml::value< date > * table::as_date ( ) const
inlinefinalnoexcept

Definition at line 7862 of file toml.hpp.

◆ as_date() [2/2]

TOML_CONST_INLINE_GETTER toml::value< date > * table::as_date ( )
inlinefinalnoexcept

Definition at line 7808 of file toml.hpp.

◆ as_date_time() [1/2]

TOML_CONST_INLINE_GETTER const toml::value< date_time > * table::as_date_time ( ) const
inlinefinalnoexcept

Definition at line 7874 of file toml.hpp.

◆ as_date_time() [2/2]

TOML_CONST_INLINE_GETTER toml::value< date_time > * table::as_date_time ( )
inlinefinalnoexcept

Definition at line 7820 of file toml.hpp.

◆ as_floating_point() [1/2]

TOML_CONST_INLINE_GETTER const toml::value< double > * table::as_floating_point ( ) const
inlinefinalnoexcept

Definition at line 7850 of file toml.hpp.

◆ as_floating_point() [2/2]

TOML_CONST_INLINE_GETTER toml::value< double > * table::as_floating_point ( )
inlinefinalnoexcept

Definition at line 7796 of file toml.hpp.

◆ as_integer() [1/2]

TOML_CONST_INLINE_GETTER const toml::value< int64_t > * table::as_integer ( ) const
inlinefinalnoexcept

Definition at line 7844 of file toml.hpp.

◆ as_integer() [2/2]

TOML_CONST_INLINE_GETTER toml::value< int64_t > * table::as_integer ( )
inlinefinalnoexcept

Definition at line 7790 of file toml.hpp.

◆ as_string() [1/2]

TOML_CONST_INLINE_GETTER const toml::value< std::string > * table::as_string ( ) const
inlinefinalnoexcept

Definition at line 7838 of file toml.hpp.

◆ as_string() [2/2]

TOML_CONST_INLINE_GETTER toml::value< std::string > * table::as_string ( )
inlinefinalnoexcept

Definition at line 7784 of file toml.hpp.

◆ as_table() [1/2]

TOML_CONST_INLINE_GETTER const table * table::as_table ( ) const
inlinefinalnoexcept

Definition at line 7826 of file toml.hpp.

References table().

◆ as_table() [2/2]

TOML_CONST_INLINE_GETTER table * table::as_table ( )
inlinefinalnoexcept

Definition at line 7772 of file toml.hpp.

References table().

◆ as_time() [1/2]

TOML_CONST_INLINE_GETTER const toml::value< time > * table::as_time ( ) const
inlinefinalnoexcept

Definition at line 7868 of file toml.hpp.

◆ as_time() [2/2]

TOML_CONST_INLINE_GETTER toml::value< time > * table::as_time ( )
inlinefinalnoexcept

Definition at line 7814 of file toml.hpp.

◆ at() [1/2]

TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION node & table::at ( std::string_view key)

References key, and TOML_NODISCARD.

◆ at() [2/2]

TOML_NODISCARD const node & table::at ( std::string_view key) const
inline

Definition at line 7960 of file toml.hpp.

References key, and table().

◆ begin() [1/2]

TOML_PURE_INLINE_GETTER const_iterator table::begin ( ) const
inlinenoexcept

Definition at line 7992 of file toml.hpp.

References map_.

◆ begin() [2/2]

TOML_PURE_INLINE_GETTER iterator table::begin ( )
inlinenoexcept

Definition at line 7986 of file toml.hpp.

References map_.

Referenced by erase(), insert(), parser::parse_document(), and table().

◆ cbegin()

TOML_PURE_INLINE_GETTER const_iterator table::cbegin ( ) const
inlinenoexcept

Definition at line 7998 of file toml.hpp.

References map_.

◆ cend()

TOML_PURE_INLINE_GETTER const_iterator table::cend ( ) const
inlinenoexcept

Definition at line 8016 of file toml.hpp.

References map_.

◆ clear()

TOML_EXPORTED_MEMBER_FUNCTION void table::clear ( )
noexcept

◆ constexpr()

if table::constexpr ( impl::is_wide_string< KeyType > )
inlineconstexpr

Definition at line 8368 of file toml.hpp.

References args, and key.

◆ contains()

TOML_PURE_GETTER bool table::contains ( std::string_view key) const
inlinenoexcept

Definition at line 8266 of file toml.hpp.

References get(), and key.

Referenced by test_engine::test_leaving_the_table_is_reported_not_absorbed().

◆ do_for_each()

template<typename Func, typename Table>
void table::do_for_each ( Func && visitor,
Table && tbl )
inlinestaticprivatenoexcept

Definition at line 8068 of file toml.hpp.

References key, TOML_SA_NODE_TYPE_LIST, and value().

Referenced by for_each(), for_each(), for_each(), and for_each().

◆ empty()

TOML_PURE_INLINE_GETTER bool table::empty ( ) const
inlinenoexcept

Definition at line 8204 of file toml.hpp.

References map_.

Referenced by erase(), and fsw::script::anonymous_namespace{Validate.cpp}::suffixFor().

◆ end() [1/2]

TOML_PURE_INLINE_GETTER const_iterator table::end ( ) const
inlinenoexcept

Definition at line 8010 of file toml.hpp.

References map_.

◆ end() [2/2]

◆ equal()

TOML_PURE_GETTER static TOML_EXPORTED_STATIC_FUNCTION bool TOML_CALLCONV table::equal ( const table & ,
const table &  )
staticprivatenoexcept

References table(), TOML_CALLCONV, and TOML_NODISCARD.

Referenced by operator!=, and operator==.

◆ erase() [1/6]

iterator table::erase ( const_iterator begin,
const_iterator end )
inlinenoexcept

Definition at line 8316 of file toml.hpp.

References begin(), end(), and erase().

◆ erase() [2/6]

iterator table::erase ( const_iterator pos)
inlinenoexcept

Definition at line 8311 of file toml.hpp.

References erase().

◆ erase() [3/6]

◆ erase() [4/6]

◆ erase() [5/6]

iterator table::erase ( iterator pos)
inlinenoexcept

Definition at line 8306 of file toml.hpp.

References erase().

◆ erase() [6/6]

TOML_EXPORTED_MEMBER_FUNCTION size_t table::erase ( std::string_view key)
noexcept

References empty(), erase(), and key.

◆ find() [1/2]

TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION const_iterator table::find ( std::string_view key) const
noexcept

References key, and TOML_PURE_GETTER.

◆ find() [2/2]

◆ for_each() [1/4]

template<typename Func>
table && table::for_each ( Func && visitor) &&
inlinenoexcept

Definition at line 8180 of file toml.hpp.

References do_for_each(), and table().

◆ for_each() [2/4]

template<typename Func>
table & table::for_each ( Func && visitor) &
inlinenoexcept

Definition at line 8172 of file toml.hpp.

References do_for_each(), and table().

◆ for_each() [3/4]

template<typename Func>
const table && table::for_each ( Func && visitor) const &&
inlinenoexcept

Definition at line 8196 of file toml.hpp.

References do_for_each(), and table().

◆ for_each() [4/4]

template<typename Func>
const table & table::for_each ( Func && visitor) const &
inlinenoexcept

Definition at line 8188 of file toml.hpp.

References do_for_each(), and table().

◆ get() [1/2]

TOML_PURE_INLINE_GETTER const node * table::get ( std::string_view key) const
inlinenoexcept

Definition at line 7895 of file toml.hpp.

References key, and table().

◆ get() [2/2]

TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION node * table::get ( std::string_view key)
noexcept

References key, and TOML_PURE_INLINE_GETTER.

Referenced by contains(), get_as(), operator[](), and operator[]().

◆ get_as() [1/2]

template<typename T>
TOML_PURE_GETTER const impl::wrap_node< T > * table::get_as ( std::string_view key) const
inlinenoexcept

Definition at line 7929 of file toml.hpp.

References get_as(), key, and table().

◆ get_as() [2/2]

template<typename T>
TOML_PURE_GETTER impl::wrap_node< T > * table::get_as ( std::string_view key)
inlinenoexcept

Definition at line 7921 of file toml.hpp.

References get(), and key.

Referenced by get_as().

◆ get_lower_bound()

TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION map_iterator table::get_lower_bound ( std::string_view )
privatenoexcept

◆ if()

table::if ( !ipos-> second)
inline

Definition at line 8395 of file toml.hpp.

References args, erase(), and ipos.

◆ insert()

void table::insert ( Iter begin,
Iter end,
value_flags flags = preserve_source_value_flags )
inline

Definition at line 8462 of file toml.hpp.

References begin(), end(), insert(), insert(), preserve_source_value_flags, and value_flags::value_flags.

Referenced by insert().

◆ insert_with_hint()

TOML_EXPORTED_MEMBER_FUNCTION map_iterator table::insert_with_hint ( const_iterator ,
key && ,
impl::node_ptr &&  )
private

◆ is_array()

TOML_CONST_INLINE_GETTER bool table::is_array ( ) const
inlinefinalnoexcept

Definition at line 7706 of file toml.hpp.

◆ is_array_of_tables()

TOML_PURE_GETTER bool table::is_array_of_tables ( ) const
inlinefinalnoexcept

Definition at line 7712 of file toml.hpp.

◆ is_boolean()

TOML_CONST_INLINE_GETTER bool table::is_boolean ( ) const
inlinefinalnoexcept

Definition at line 7748 of file toml.hpp.

◆ is_date()

TOML_CONST_INLINE_GETTER bool table::is_date ( ) const
inlinefinalnoexcept

Definition at line 7754 of file toml.hpp.

◆ is_date_time()

TOML_CONST_INLINE_GETTER bool table::is_date_time ( ) const
inlinefinalnoexcept

Definition at line 7766 of file toml.hpp.

◆ is_floating_point()

TOML_CONST_INLINE_GETTER bool table::is_floating_point ( ) const
inlinefinalnoexcept

Definition at line 7736 of file toml.hpp.

◆ is_homogeneous() [1/4]

template<typename ElemType = void>
TOML_PURE_GETTER bool table::is_homogeneous ( ) const
inlinenoexcept

Definition at line 7690 of file toml.hpp.

References is_homogeneous(), TOML_SA_UNWRAPPED_NODE_TYPE_LIST, and type().

◆ is_homogeneous() [2/4]

TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION bool table::is_homogeneous ( node_type ntype) const
finalnoexcept

◆ is_homogeneous() [3/4]

TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION bool table::is_homogeneous ( node_type ntype,
const node *& first_nonmatch ) const
finalnoexcept

References TOML_PURE_GETTER.

◆ is_homogeneous() [4/4]

TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION bool table::is_homogeneous ( node_type ntype,
node *& first_nonmatch )
finalnoexcept

◆ is_inline() [1/2]

TOML_PURE_INLINE_GETTER bool table::is_inline ( ) const
inlinenoexcept

Definition at line 7880 of file toml.hpp.

References inline_.

Referenced by parser::parse_inline_table().

◆ is_inline() [2/2]

void table::is_inline ( bool val)
inlinenoexcept

Definition at line 7885 of file toml.hpp.

References inline_.

◆ is_integer()

TOML_CONST_INLINE_GETTER bool table::is_integer ( ) const
inlinefinalnoexcept

Definition at line 7730 of file toml.hpp.

◆ is_number()

TOML_CONST_INLINE_GETTER bool table::is_number ( ) const
inlinefinalnoexcept

Definition at line 7742 of file toml.hpp.

◆ is_string()

TOML_CONST_INLINE_GETTER bool table::is_string ( ) const
inlinefinalnoexcept

Definition at line 7724 of file toml.hpp.

◆ is_table()

TOML_CONST_INLINE_GETTER bool table::is_table ( ) const
inlinefinalnoexcept

Definition at line 7700 of file toml.hpp.

◆ is_time()

TOML_CONST_INLINE_GETTER bool table::is_time ( ) const
inlinefinalnoexcept

Definition at line 7760 of file toml.hpp.

◆ is_value()

TOML_CONST_INLINE_GETTER bool table::is_value ( ) const
inlinefinalnoexcept

Definition at line 7718 of file toml.hpp.

◆ lower_bound() [1/2]

TOML_PURE_GETTER const_iterator table::lower_bound ( std::string_view key) const
inlinenoexcept

Definition at line 8230 of file toml.hpp.

References key, and table().

◆ lower_bound() [2/2]

TOML_PURE_GETTER iterator table::lower_bound ( std::string_view key)
inlinenoexcept

Definition at line 8224 of file toml.hpp.

References get_lower_bound(), and key.

Referenced by parser::parse_key_value_pair_and_insert().

◆ operator=() [1/2]

TOML_EXPORTED_MEMBER_FUNCTION table & table::operator= ( const table & )

◆ operator=() [2/2]

TOML_EXPORTED_MEMBER_FUNCTION table & table::operator= ( table && rhs)
noexcept

◆ operator[]() [1/2]

TOML_NODISCARD node_view< const node > table::operator[] ( std::string_view key) const
inlinenoexcept

Definition at line 8574 of file toml.hpp.

References get(), key, and node_view().

◆ operator[]() [2/2]

TOML_NODISCARD node_view< node > table::operator[] ( std::string_view key)
inlinenoexcept

Definition at line 8568 of file toml.hpp.

References get(), key, and node_view().

◆ prune() [1/2]

table && table::prune ( bool recursive = true) &&
inlinenoexcept

Definition at line 8339 of file toml.hpp.

References prune(), and table().

◆ prune() [2/2]

TOML_EXPORTED_MEMBER_FUNCTION table & table::prune ( bool recursive = true) &
noexcept

References table().

Referenced by prune().

◆ size()

TOML_PURE_INLINE_GETTER size_t table::size ( ) const
inlinenoexcept

Definition at line 8210 of file toml.hpp.

References map_.

◆ TOML_CONSTRAINED_TEMPLATE() [1/4]

table::TOML_CONSTRAINED_TEMPLATE ( (is_key_or_convertible< KeyType && >||impl::is_wide_string< KeyType >) ,
typename KeyType ,
typename ValueType  )
inline

◆ TOML_CONSTRAINED_TEMPLATE() [2/4]

table::TOML_CONSTRAINED_TEMPLATE ( (is_key_or_convertible< KeyType && >||impl::is_wide_string< KeyType >) ,
typename KeyType ,
typename ValueType  )
inline

◆ TOML_CONSTRAINED_TEMPLATE() [3/4]

table::TOML_CONSTRAINED_TEMPLATE ( (is_key_or_convertible< KeyType && >||impl::is_wide_string< KeyType >) ,
typename ValueType = void,
typename KeyType ,
typename... ValueArgs )

◆ TOML_CONSTRAINED_TEMPLATE() [4/4]

table::TOML_CONSTRAINED_TEMPLATE ( (is_key_or_convertible< KeyType && >||impl::is_wide_string< KeyType >) ,
typename ValueType = void,
typename KeyType ,
typename... ValueArgs )
inline

◆ type()

◆ operator!=

TOML_NODISCARD friend bool operator!= ( const table & lhs,
const table & rhs )
friend

Definition at line 8610 of file toml.hpp.

References equal(), rhs, and table().

◆ operator<<

std::ostream & operator<< ( std::ostream & lhs,
const table & rhs )
friend

Definition at line 8617 of file toml.hpp.

References rhs, and table().

◆ operator==

TOML_NODISCARD friend bool operator== ( const table & lhs,
const table & rhs )
friend

Definition at line 8604 of file toml.hpp.

References equal(), rhs, and table().

Member Data Documentation

◆ args

KeyType ValueArgs&& table::args
Initial value:
{
static_assert(!impl::is_wide_string<KeyType> || TOML_ENABLE_WINDOWS_COMPAT,
"Emplacement using wide-character keys is only supported on Windows with "
"TOML_ENABLE_WINDOWS_COMPAT enabled.")
#define TOML_ENABLE_WINDOWS_COMPAT
Definition toml.hpp:1020

Definition at line 8358 of file toml.hpp.

Referenced by constexpr(), if(), and TOML_CONSTRAINED_TEMPLATE().

◆ else

table::else
Initial value:
{
static constexpr auto moving_node_ptr = std::is_same_v<value_type, impl::node_ptr>
&& sizeof...(ValueArgs) == 1u
&& impl::first_is_same<impl::node_ptr&&, ValueArgs&&...>

Definition at line 8378 of file toml.hpp.

◆ inline_

bool table::inline_ = false
private

Definition at line 7635 of file toml.hpp.

Referenced by is_inline(), and is_inline().

◆ ipos

map_iterator table::ipos = insert_with_hint(hint, toml::key{ static_cast<KeyType&&>(key) }, nullptr)

Definition at line 8391 of file toml.hpp.

Referenced by if(), TOML_CONSTRAINED_TEMPLATE(), and TOML_CONSTRAINED_TEMPLATE().

◆ iterator

return table::iterator { ipos }

Definition at line 8417 of file toml.hpp.

◆ key

◆ map_

map_type table::map_
private

The documentation for this class was generated from the following file:
  • daq-server/diablo_server/lib/include/toml++/toml.hpp