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

#include <toml.hpp>

Collaboration diagram for path_component:
[legend]

Classes

struct  storage_t

Public Member Functions

TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION path_component ()
TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION path_component (size_t index) noexcept
TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION path_component (std::string_view key)
TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION path_component (const path_component &pc)
TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION path_component (path_component &&pc) noexcept
TOML_EXPORTED_MEMBER_FUNCTION path_component & operator= (const path_component &rhs)
TOML_EXPORTED_MEMBER_FUNCTION path_component & operator= (path_component &&rhs) noexcept
TOML_EXPORTED_MEMBER_FUNCTION path_component & operator= (size_t new_index) noexcept
TOML_EXPORTED_MEMBER_FUNCTION path_component & operator= (std::string_view new_key)
 ~path_component () noexcept
TOML_PURE_GETTER size_t index () const noexcept
TOML_PURE_INLINE_GETTER operator size_t () const noexcept
TOML_PURE_GETTER const std::string & key () const noexcept
TOML_PURE_INLINE_GETTER operator const std::string & () const noexcept
TOML_PURE_INLINE_GETTER path_component_type type () const noexcept

Private Member Functions

void destroy () noexcept
TOML_NODISCARD size_t & index_ref () noexcept
TOML_NODISCARD std::string & key_ref () noexcept

Static Private Member Functions

TOML_PURE_GETTER static TOML_EXPORTED_STATIC_FUNCTION bool TOML_CALLCONV equal (const path_component &, const path_component &) noexcept
template<typename Type>
static TOML_PURE_INLINE_GETTER Type * get_as (storage_t &s) noexcept
static void store_key (std::string_view key, storage_t &storage_)
static void store_index (size_t index, storage_t &storage_) noexcept

Private Attributes

storage_t value_storage_
path_component_type type_

Friends

TOML_PURE_INLINE_GETTER friend bool operator== (const path_component &lhs, const path_component &rhs) noexcept
TOML_PURE_INLINE_GETTER friend bool operator!= (const path_component &lhs, const path_component &rhs) noexcept

Detailed Description

Definition at line 3026 of file toml.hpp.

Constructor & Destructor Documentation

◆ path_component() [1/5]

◆ path_component() [2/5]

TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION path_component::path_component ( size_t index)
noexcept

◆ path_component() [3/5]

TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION path_component::path_component ( std::string_view key)

◆ path_component() [4/5]

◆ path_component() [5/5]

TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION path_component::path_component ( path_component && pc)
noexcept

◆ ~path_component()

path_component::~path_component ( )
inlinenoexcept

Definition at line 3131 of file toml.hpp.

References destroy().

Member Function Documentation

◆ destroy()

void path_component::destroy ( )
inlineprivatenoexcept

Definition at line 3062 of file toml.hpp.

References get_as(), type_, and value_storage_.

Referenced by ~path_component().

◆ equal()

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

◆ get_as()

template<typename Type>
TOML_PURE_INLINE_GETTER Type * path_component::get_as ( storage_t & s)
inlinestaticprivatenoexcept

Definition at line 3047 of file toml.hpp.

References TOML_LAUNDER.

Referenced by destroy(), index(), index_ref(), key(), and key_ref().

◆ index()

TOML_PURE_GETTER size_t path_component::index ( ) const
inlinenoexcept

Definition at line 3137 of file toml.hpp.

References get_as(), TOML_ASSERT_ASSUME, type_, and value_storage_.

Referenced by operator size_t(), path_component(), and store_index().

◆ index_ref()

TOML_NODISCARD size_t & path_component::index_ref ( )
inlineprivatenoexcept

Definition at line 3069 of file toml.hpp.

References get_as(), TOML_ASSERT_ASSUME, type_, and value_storage_.

◆ key()

TOML_PURE_GETTER const std::string & path_component::key ( ) const
inlinenoexcept

Definition at line 3150 of file toml.hpp.

References get_as(), TOML_ASSERT_ASSUME, type_, and value_storage_.

Referenced by operator const std::string &(), path_component(), and store_key().

◆ key_ref()

TOML_NODISCARD std::string & path_component::key_ref ( )
inlineprivatenoexcept

Definition at line 3076 of file toml.hpp.

References get_as(), TOML_ASSERT_ASSUME, type_, and value_storage_.

◆ operator const std::string &()

TOML_PURE_INLINE_GETTER path_component::operator const std::string & ( ) const
inlineexplicitnoexcept

Definition at line 3157 of file toml.hpp.

References key().

◆ operator size_t()

TOML_PURE_INLINE_GETTER path_component::operator size_t ( ) const
inlineexplicitnoexcept

Definition at line 3144 of file toml.hpp.

References index().

◆ operator=() [1/4]

TOML_EXPORTED_MEMBER_FUNCTION path_component & path_component::operator= ( const path_component & rhs)

◆ operator=() [2/4]

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

◆ operator=() [3/4]

TOML_EXPORTED_MEMBER_FUNCTION path_component & path_component::operator= ( size_t new_index)
noexcept

◆ operator=() [4/4]

TOML_EXPORTED_MEMBER_FUNCTION path_component & path_component::operator= ( std::string_view new_key)

◆ store_index()

void path_component::store_index ( size_t index,
storage_t & storage_ )
inlinestaticprivatenoexcept

Definition at line 3057 of file toml.hpp.

References index().

◆ store_key()

void path_component::store_key ( std::string_view key,
storage_t & storage_ )
inlinestaticprivate

Definition at line 3052 of file toml.hpp.

References path_component::storage_t::bytes, and key().

◆ type()

◆ operator!=

TOML_PURE_INLINE_GETTER friend bool operator!= ( const path_component & lhs,
const path_component & rhs )
friend

Definition at line 3175 of file toml.hpp.

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

◆ operator==

TOML_PURE_INLINE_GETTER friend bool operator== ( const path_component & lhs,
const path_component & rhs )
friend

Definition at line 3169 of file toml.hpp.

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

Member Data Documentation

◆ type_

path_component_type path_component::type_
private

Definition at line 3039 of file toml.hpp.

Referenced by destroy(), index(), index_ref(), key(), key_ref(), and type().

◆ value_storage_

storage_t path_component::value_storage_
mutableprivate

Definition at line 3037 of file toml.hpp.

Referenced by destroy(), index(), index_ref(), key(), and key_ref().


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