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

#include <toml.hpp>

Collaboration diagram for path:
[legend]

Public Types

using iterator = std::vector<path_component>::iterator
using const_iterator = std::vector<path_component>::const_iterator

Public Member Functions

TOML_NODISCARD_CTOR path () noexcept=default
TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION path (std::string_view)
 ~path () noexcept=default
TOML_NODISCARD_CTOR path (const path &)=default
TOML_NODISCARD_CTOR path (path &&) noexcept=default
TOML_PURE_INLINE_GETTER size_t size () const noexcept
TOML_PURE_INLINE_GETTER operator bool () const noexcept
TOML_PURE_INLINE_GETTER bool empty () const noexcept
TOML_PURE_INLINE_GETTER path_component & operator[] (size_t index) noexcept
TOML_PURE_INLINE_GETTER const path_component & operator[] (size_t index) const noexcept
path & operator= (const path &)=default
path & operator= (path &&) noexcept=default
TOML_EXPORTED_MEMBER_FUNCTION path & operator= (std::string_view)
TOML_ALWAYS_INLINE path & assign (const path &p)
TOML_ALWAYS_INLINE path & assign (path &&p) noexcept
TOML_ALWAYS_INLINE path & assign (std::string_view str)
TOML_EXPORTED_MEMBER_FUNCTION path & operator+= (const path &)
TOML_EXPORTED_MEMBER_FUNCTION path & operator+= (path &&)
TOML_EXPORTED_MEMBER_FUNCTION path & operator+= (std::string_view)
TOML_ALWAYS_INLINE path & append (const path &p)
TOML_ALWAYS_INLINE path & append (path &&p)
TOML_ALWAYS_INLINE path & append (std::string_view str)
TOML_EXPORTED_MEMBER_FUNCTION path & prepend (const path &)
TOML_EXPORTED_MEMBER_FUNCTION path & prepend (path &&)
TOML_EXPORTED_MEMBER_FUNCTION path & prepend (std::string_view)
TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION std::string str () const
TOML_NODISCARD TOML_ALWAYS_INLINE operator std::string () const
TOML_PURE_INLINE_GETTER iterator begin () noexcept
TOML_PURE_INLINE_GETTER iterator end () noexcept
TOML_PURE_INLINE_GETTER const_iterator begin () const noexcept
TOML_PURE_INLINE_GETTER const_iterator end () const noexcept
TOML_PURE_INLINE_GETTER const_iterator cbegin () const noexcept
TOML_PURE_INLINE_GETTER const_iterator cend () const noexcept
TOML_EXPORTED_MEMBER_FUNCTION void clear () noexcept
TOML_EXPORTED_MEMBER_FUNCTION path & truncate (size_t n)
TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION path truncated (size_t n) const
TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION path parent () const
TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION path leaf (size_t n=1) const
TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION path subpath (const_iterator start, const_iterator end) const
TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION path subpath (size_t start, size_t length) const

Private Member Functions

TOML_EXPORTED_MEMBER_FUNCTION void print_to (std::ostream &) const

Static Private Member Functions

TOML_PURE_GETTER static TOML_EXPORTED_STATIC_FUNCTION bool TOML_CALLCONV equal (const path &, const path &) noexcept

Private Attributes

std::vector< path_component > components_

Friends

TOML_NODISCARD friend path operator+ (const path &lhs, const path &rhs)
TOML_NODISCARD friend path operator+ (const path &lhs, std::string_view rhs)
TOML_NODISCARD friend path operator+ (std::string_view lhs, const path &rhs)
TOML_ALWAYS_INLINE friend std::ostream & operator<< (std::ostream &os, const path &rhs)
TOML_PURE_INLINE_GETTER friend bool operator== (const path &lhs, const path &rhs) noexcept
TOML_PURE_INLINE_GETTER friend bool operator!= (const path &lhs, const path &rhs) noexcept
TOML_NODISCARD TOML_ALWAYS_INLINE friend bool operator== (const path &lhs, std::string_view rhs)
TOML_NODISCARD TOML_ALWAYS_INLINE friend bool operator== (std::string_view lhs, const path &rhs)
TOML_NODISCARD TOML_ALWAYS_INLINE friend bool operator!= (const path &lhs, std::string_view rhs)
TOML_NODISCARD TOML_ALWAYS_INLINE friend bool operator!= (std::string_view lhs, const path &rhs)

Detailed Description

Definition at line 3181 of file toml.hpp.

Member Typedef Documentation

◆ const_iterator

Definition at line 3504 of file toml.hpp.

◆ iterator

Definition at line 3502 of file toml.hpp.

Constructor & Destructor Documentation

◆ path() [1/4]

◆ path() [2/4]

◆ ~path()

path::~path ( )
defaultnoexcept

References TOML_NODISCARD_CTOR.

◆ path() [3/4]

◆ path() [4/4]

Member Function Documentation

◆ append() [1/3]

TOML_ALWAYS_INLINE path & path::append ( const path & p)
inline

Definition at line 3310 of file toml.hpp.

References p, and path().

Referenced by feedtwin.session.core.Session::_find_fill_stops(), and feedtwin.session.watch::_path_to_air().

◆ append() [2/3]

TOML_ALWAYS_INLINE path & path::append ( path && p)
inline

Definition at line 3316 of file toml.hpp.

References p, and path().

◆ append() [3/3]

TOML_ALWAYS_INLINE path & path::append ( std::string_view str)
inline

Definition at line 3322 of file toml.hpp.

References path(), and str().

◆ assign() [1/3]

TOML_ALWAYS_INLINE path & path::assign ( const path & p)
inline

Definition at line 3266 of file toml.hpp.

References p, and path().

◆ assign() [2/3]

TOML_ALWAYS_INLINE path & path::assign ( path && p)
inlinenoexcept

Definition at line 3272 of file toml.hpp.

References p, and path().

◆ assign() [3/3]

TOML_ALWAYS_INLINE path & path::assign ( std::string_view str)
inline

Definition at line 3278 of file toml.hpp.

References path(), and str().

◆ begin() [1/2]

TOML_PURE_INLINE_GETTER const_iterator path::begin ( ) const
inlinenoexcept

Definition at line 3519 of file toml.hpp.

References components_.

◆ begin() [2/2]

TOML_PURE_INLINE_GETTER iterator path::begin ( )
inlinenoexcept

Definition at line 3507 of file toml.hpp.

References components_.

◆ cbegin()

TOML_PURE_INLINE_GETTER const_iterator path::cbegin ( ) const
inlinenoexcept

Definition at line 3531 of file toml.hpp.

References components_.

◆ cend()

TOML_PURE_INLINE_GETTER const_iterator path::cend ( ) const
inlinenoexcept

Definition at line 3537 of file toml.hpp.

References components_.

◆ clear()

TOML_EXPORTED_MEMBER_FUNCTION void path::clear ( )
noexcept

◆ empty()

TOML_PURE_INLINE_GETTER bool path::empty ( ) const
inlinenoexcept

Definition at line 3232 of file toml.hpp.

References components_.

Referenced by resolveConfigPath().

◆ end() [1/2]

TOML_PURE_INLINE_GETTER const_iterator path::end ( ) const
inlinenoexcept

Definition at line 3525 of file toml.hpp.

References components_.

◆ end() [2/2]

TOML_PURE_INLINE_GETTER iterator path::end ( )
inlinenoexcept

Definition at line 3513 of file toml.hpp.

References components_.

Referenced by subpath().

◆ equal()

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

References path(), TOML_CALLCONV, and TOML_NODISCARD_CTOR.

Referenced by operator!=, and operator==.

◆ leaf()

TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION path path::leaf ( size_t n = 1) const

◆ operator bool()

TOML_PURE_INLINE_GETTER path::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 3226 of file toml.hpp.

References components_.

◆ operator std::string()

TOML_NODISCARD TOML_ALWAYS_INLINE path::operator std::string ( ) const
inlineexplicit

Definition at line 3410 of file toml.hpp.

References str().

◆ operator+=() [1/3]

TOML_EXPORTED_MEMBER_FUNCTION path & path::operator+= ( const path & )

References path(), and TOML_EXPORTED_MEMBER_FUNCTION.

Referenced by operator+=().

◆ operator+=() [2/3]

TOML_EXPORTED_MEMBER_FUNCTION path & path::operator+= ( path && )

◆ operator+=() [3/3]

TOML_EXPORTED_MEMBER_FUNCTION path & path::operator+= ( std::string_view )

◆ operator=() [1/3]

path & path::operator= ( const path & )
default

References path().

Referenced by operator=().

◆ operator=() [2/3]

path & path::operator= ( path && )
defaultnoexcept

◆ operator=() [3/3]

TOML_EXPORTED_MEMBER_FUNCTION path & path::operator= ( std::string_view )

◆ operator[]() [1/2]

TOML_PURE_INLINE_GETTER const path_component & path::operator[] ( size_t index) const
inlinenoexcept

Definition at line 3245 of file toml.hpp.

References components_, size(), and TOML_ASSERT.

◆ operator[]() [2/2]

TOML_PURE_INLINE_GETTER path_component & path::operator[] ( size_t index)
inlinenoexcept

Definition at line 3238 of file toml.hpp.

References components_, size(), and TOML_ASSERT.

◆ parent()

◆ prepend() [1/3]

TOML_EXPORTED_MEMBER_FUNCTION path & path::prepend ( const path & )

References path(), and TOML_EXPORTED_MEMBER_FUNCTION.

Referenced by prepend().

◆ prepend() [2/3]

◆ prepend() [3/3]

TOML_EXPORTED_MEMBER_FUNCTION path & path::prepend ( std::string_view )

◆ print_to()

TOML_EXPORTED_MEMBER_FUNCTION void path::print_to ( std::ostream & ) const
private

◆ size()

TOML_PURE_INLINE_GETTER size_t path::size ( ) const
inlinenoexcept

Definition at line 3220 of file toml.hpp.

References components_, and size().

Referenced by operator[](), operator[](), resolveConfigPath(), and size().

◆ str()

TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION std::string path::str ( ) const

◆ subpath() [1/2]

◆ subpath() [2/2]

TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION path path::subpath ( size_t start,
size_t length ) const

◆ truncate()

TOML_EXPORTED_MEMBER_FUNCTION path & path::truncate ( size_t n)

◆ truncated()

◆ operator!= [1/3]

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

Definition at line 3437 of file toml.hpp.

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

◆ operator!= [2/3]

TOML_NODISCARD TOML_ALWAYS_INLINE friend bool operator!= ( const path & lhs,
std::string_view rhs )
friend

Definition at line 3458 of file toml.hpp.

References path(), and rhs.

◆ operator!= [3/3]

TOML_NODISCARD TOML_ALWAYS_INLINE friend bool operator!= ( std::string_view lhs,
const path & rhs )
friend

Definition at line 3465 of file toml.hpp.

References path(), and rhs.

◆ operator+ [1/3]

TOML_NODISCARD friend path operator+ ( const path & lhs,
const path & rhs )
friend

Definition at line 3354 of file toml.hpp.

References path(), result, and rhs.

◆ operator+ [2/3]

TOML_NODISCARD friend path operator+ ( const path & lhs,
std::string_view rhs )
friend

Definition at line 3362 of file toml.hpp.

References path(), result, and rhs.

◆ operator+ [3/3]

TOML_NODISCARD friend path operator+ ( std::string_view lhs,
const path & rhs )
friend

Definition at line 3370 of file toml.hpp.

References path(), result, and rhs.

◆ operator<<

TOML_ALWAYS_INLINE friend std::ostream & operator<< ( std::ostream & os,
const path & rhs )
friend

Definition at line 3398 of file toml.hpp.

References path(), and rhs.

◆ operator== [1/3]

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

Definition at line 3431 of file toml.hpp.

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

◆ operator== [2/3]

TOML_NODISCARD TOML_ALWAYS_INLINE friend bool operator== ( const path & lhs,
std::string_view rhs )
friend

Definition at line 3444 of file toml.hpp.

References path(), and rhs.

◆ operator== [3/3]

TOML_NODISCARD TOML_ALWAYS_INLINE friend bool operator== ( std::string_view lhs,
const path & rhs )
friend

Definition at line 3451 of file toml.hpp.

References path(), and rhs.

Member Data Documentation

◆ components_

std::vector<path_component> path::components_
private

Definition at line 3185 of file toml.hpp.

Referenced by begin(), begin(), cbegin(), cend(), empty(), end(), end(), operator bool(), operator[](), operator[](), and size().


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