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

#include <toml.hpp>

Collaboration diagram for parse_result:
[legend]

Classes

struct  storage_t

Public Types

using iterator = table_iterator
using const_iterator = const_table_iterator

Public Member Functions

TOML_NODISCARD_CTOR parse_result () noexcept
TOML_NODISCARD_CTOR parse_result (toml::table &&tbl) noexcept
TOML_NODISCARD_CTOR parse_result (parse_error &&err) noexcept
TOML_NODISCARD_CTOR parse_result (parse_result &&res) noexcept
parse_result & operator= (parse_result &&rhs) noexcept
 ~parse_result () noexcept
TOML_NODISCARD bool succeeded () const noexcept
TOML_NODISCARD bool failed () const noexcept
TOML_NODISCARD operator bool () const noexcept
TOML_NODISCARD toml::table & table () &noexcept
TOML_NODISCARD toml::table && table () &&noexcept
TOML_NODISCARD const toml::table & table () const &noexcept
TOML_NODISCARD operator toml::table & () noexcept
TOML_NODISCARD operator toml::table && () noexcept
TOML_NODISCARD operator const toml::table & () const noexcept
TOML_NODISCARD parse_error & error () &noexcept
TOML_NODISCARD parse_error && error () &&noexcept
TOML_NODISCARD const parse_error & error () const &noexcept
TOML_NODISCARD operator parse_error & () noexcept
TOML_NODISCARD operator parse_error && () noexcept
TOML_NODISCARD operator const parse_error & () const noexcept
TOML_NODISCARD table_iterator begin () noexcept
TOML_NODISCARD const_table_iterator begin () const noexcept
TOML_NODISCARD const_table_iterator cbegin () const noexcept
TOML_NODISCARD table_iterator end () noexcept
TOML_NODISCARD const_table_iterator end () const noexcept
TOML_NODISCARD const_table_iterator cend () const noexcept
TOML_NODISCARD node_view< node > at_path (std::string_view path) noexcept
TOML_NODISCARD node_view< const node > at_path (std::string_view path) const noexcept
TOML_NODISCARD node_view< node > at_path (const toml::path &path) noexcept
TOML_NODISCARD node_view< const node > at_path (const toml::path &path) const noexcept
TOML_NODISCARD node_view< node > operator[] (const toml::path &path) noexcept
TOML_NODISCARD node_view< const node > operator[] (const toml::path &path) const noexcept
TOML_NODISCARD node_view< node > operator[] (std::string_view key) noexcept
TOML_NODISCARD node_view< const node > operator[] (std::string_view key) const noexcept

Private Member Functions

void destroy () noexcept

Static Private Member Functions

template<typename Type>
TOML_NODISCARD static TOML_ALWAYS_INLINE Type * get_as (storage_t &s) noexcept

Private Attributes

storage_t storage_
bool err_

Friends

std::ostream & operator<< (std::ostream &os, const parse_result &result)

Detailed Description

Definition at line 9182 of file toml.hpp.

Member Typedef Documentation

◆ const_iterator

Definition at line 9371 of file toml.hpp.

◆ iterator

Definition at line 9369 of file toml.hpp.

Constructor & Destructor Documentation

◆ parse_result() [1/4]

TOML_NODISCARD_CTOR parse_result::parse_result ( )
inlinenoexcept

Definition at line 9217 of file toml.hpp.

References err_.

Referenced by operator<<, operator=(), and parse_result().

◆ parse_result() [2/4]

TOML_NODISCARD_CTOR parse_result::parse_result ( toml::table && tbl)
inlineexplicitnoexcept

Definition at line 9224 of file toml.hpp.

References err_.

◆ parse_result() [3/4]

TOML_NODISCARD_CTOR parse_result::parse_result ( parse_error && err)
inlineexplicitnoexcept

Definition at line 9231 of file toml.hpp.

References err_.

◆ parse_result() [4/4]

TOML_NODISCARD_CTOR parse_result::parse_result ( parse_result && res)
inlinenoexcept

Definition at line 9238 of file toml.hpp.

References err_, parse_result(), and res.

◆ ~parse_result()

parse_result::~parse_result ( )
inlinenoexcept

Definition at line 9268 of file toml.hpp.

References destroy().

Member Function Documentation

◆ at_path() [1/4]

TOML_NODISCARD node_view< const node > parse_result::at_path ( const toml::path & path) const
inlinenoexcept

Definition at line 9428 of file toml.hpp.

References err_, node_view(), and table().

◆ at_path() [2/4]

TOML_NODISCARD node_view< node > parse_result::at_path ( const toml::path & path)
inlinenoexcept

Definition at line 9422 of file toml.hpp.

References err_, node_view(), and table().

◆ at_path() [3/4]

TOML_NODISCARD node_view< const node > parse_result::at_path ( std::string_view path) const
inlinenoexcept

Definition at line 9416 of file toml.hpp.

References err_, node_view(), and table().

◆ at_path() [4/4]

TOML_NODISCARD node_view< node > parse_result::at_path ( std::string_view path)
inlinenoexcept

Definition at line 9410 of file toml.hpp.

References err_, node_view(), and table().

◆ begin() [1/2]

TOML_NODISCARD const_table_iterator parse_result::begin ( ) const
inlinenoexcept

Definition at line 9380 of file toml.hpp.

References err_, and table().

◆ begin() [2/2]

TOML_NODISCARD table_iterator parse_result::begin ( )
inlinenoexcept

Definition at line 9374 of file toml.hpp.

References err_, and table().

◆ cbegin()

TOML_NODISCARD const_table_iterator parse_result::cbegin ( ) const
inlinenoexcept

Definition at line 9386 of file toml.hpp.

References err_, and table().

◆ cend()

TOML_NODISCARD const_table_iterator parse_result::cend ( ) const
inlinenoexcept

Definition at line 9404 of file toml.hpp.

References err_, and table().

◆ destroy()

void parse_result::destroy ( )
inlineprivatenoexcept

Definition at line 9206 of file toml.hpp.

References err_, get_as(), and storage_.

Referenced by operator=(), and ~parse_result().

◆ end() [1/2]

TOML_NODISCARD const_table_iterator parse_result::end ( ) const
inlinenoexcept

Definition at line 9398 of file toml.hpp.

References err_, and table().

◆ end() [2/2]

TOML_NODISCARD table_iterator parse_result::end ( )
inlinenoexcept

Definition at line 9392 of file toml.hpp.

References err_, and table().

◆ error() [1/3]

TOML_NODISCARD parse_error && parse_result::error ( ) &&
inlinenoexcept

Definition at line 9338 of file toml.hpp.

References err_, get_as(), storage_, and TOML_ASSERT_ASSUME.

◆ error() [2/3]

TOML_NODISCARD parse_error & parse_result::error ( ) &
inlinenoexcept

◆ error() [3/3]

TOML_NODISCARD const parse_error & parse_result::error ( ) const &
inlinenoexcept

Definition at line 9345 of file toml.hpp.

References err_, get_as(), storage_, and TOML_ASSERT_ASSUME.

◆ failed()

TOML_NODISCARD bool parse_result::failed ( ) const
inlinenoexcept

Definition at line 9280 of file toml.hpp.

References err_.

◆ get_as()

template<typename Type>
TOML_NODISCARD static TOML_ALWAYS_INLINE Type * parse_result::get_as ( storage_t & s)
inlinestaticprivatenoexcept

Definition at line 9201 of file toml.hpp.

References TOML_LAUNDER.

Referenced by destroy(), error(), error(), error(), table(), table(), and table().

◆ operator bool()

TOML_NODISCARD parse_result::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 9286 of file toml.hpp.

References err_.

◆ operator const parse_error &()

TOML_NODISCARD parse_result::operator const parse_error & ( ) const
inlineexplicitnoexcept

Definition at line 9364 of file toml.hpp.

References error().

◆ operator const toml::table &()

TOML_NODISCARD parse_result::operator const toml::table & ( ) const
inlinenoexcept

Definition at line 9325 of file toml.hpp.

References table().

◆ operator parse_error &()

TOML_NODISCARD parse_result::operator parse_error & ( )
inlineexplicitnoexcept

Definition at line 9352 of file toml.hpp.

References error().

◆ operator parse_error &&()

TOML_NODISCARD parse_result::operator parse_error && ( )
inlineexplicitnoexcept

Definition at line 9358 of file toml.hpp.

References error().

◆ operator toml::table &()

TOML_NODISCARD parse_result::operator toml::table & ( )
inlinenoexcept

Definition at line 9313 of file toml.hpp.

References table().

◆ operator toml::table &&()

TOML_NODISCARD parse_result::operator toml::table && ( )
inlinenoexcept

Definition at line 9319 of file toml.hpp.

References table().

◆ operator=()

parse_result & parse_result::operator= ( parse_result && rhs)
inlinenoexcept

Definition at line 9247 of file toml.hpp.

References destroy(), err_, error(), parse_result(), rhs, storage_, and table().

◆ operator[]() [1/4]

TOML_NODISCARD node_view< const node > parse_result::operator[] ( const toml::path & path) const
inlinenoexcept

Definition at line 9456 of file toml.hpp.

References err_, node_view(), and table().

◆ operator[]() [2/4]

TOML_NODISCARD node_view< node > parse_result::operator[] ( const toml::path & path)
inlinenoexcept

Definition at line 9450 of file toml.hpp.

References err_, node_view(), and table().

◆ operator[]() [3/4]

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

Definition at line 9468 of file toml.hpp.

References err_, node_view(), and table().

◆ operator[]() [4/4]

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

Definition at line 9462 of file toml.hpp.

References err_, node_view(), and table().

◆ succeeded()

TOML_NODISCARD bool parse_result::succeeded ( ) const
inlinenoexcept

Definition at line 9274 of file toml.hpp.

References err_.

◆ table() [1/3]

TOML_NODISCARD toml::table && parse_result::table ( ) &&
inlinenoexcept

Definition at line 9299 of file toml.hpp.

References err_, get_as(), storage_, and TOML_ASSERT_ASSUME.

◆ table() [2/3]

◆ table() [3/3]

TOML_NODISCARD const toml::table & parse_result::table ( ) const &
inlinenoexcept

Definition at line 9306 of file toml.hpp.

References err_, get_as(), storage_, and TOML_ASSERT_ASSUME.

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const parse_result & result )
friend

Definition at line 9491 of file toml.hpp.

References parse_result(), and result.

Member Data Documentation

◆ err_

◆ storage_

storage_t parse_result::storage_
mutableprivate

Definition at line 9195 of file toml.hpp.

Referenced by destroy(), error(), error(), error(), operator=(), table(), table(), and table().


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