Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
lexy::parse_result< T, ErrorCallback > Class Template Reference

#include <parse.hpp>

Public Types

using error_callback = ErrorCallback
 
using error_type = typename _impl_t::error_type
 
using value_type = T
 

Public Member Functions

constexpr std::size_t error_count () const noexcept
 
constexpr auto && errors () &&noexcept
 
constexpr const auto & errors () const &noexcept
 
constexpr bool has_value () const noexcept
 
constexpr bool is_error () const noexcept
 
constexpr bool is_fatal_error () const noexcept
 
constexpr bool is_recovered_error () const noexcept
 
constexpr bool is_success () const noexcept
 
constexpr operator bool () const noexcept
 
constexpr decltype(auto) value () &&noexcept
 
constexpr decltype(auto) value () const &noexcept
 

Private Types

using _impl_t = lexy::validate_result< ErrorCallback >
 

Private Member Functions

constexpr parse_result (_impl_t &&impl) noexcept
 
template<typename U >
constexpr parse_result (_impl_t &&impl, U &&v) noexcept
 

Private Attributes

_impl_t _impl
 
lexy::_detail::lazy_init< T > _value
 

Friends

template<typename Reader >
class _ph
 

Detailed Description

template<typename T, typename ErrorCallback>
class lexy::parse_result< T, ErrorCallback >

Definition at line 16 of file parse.hpp.

Member Typedef Documentation

◆ _impl_t

template<typename T , typename ErrorCallback >
using lexy::parse_result< T, ErrorCallback >::_impl_t = lexy::validate_result<ErrorCallback>
private

Definition at line 18 of file parse.hpp.

◆ error_callback

template<typename T , typename ErrorCallback >
using lexy::parse_result< T, ErrorCallback >::error_callback = ErrorCallback

Definition at line 22 of file parse.hpp.

◆ error_type

template<typename T , typename ErrorCallback >
using lexy::parse_result< T, ErrorCallback >::error_type = typename _impl_t::error_type

Definition at line 23 of file parse.hpp.

◆ value_type

template<typename T , typename ErrorCallback >
using lexy::parse_result< T, ErrorCallback >::value_type = T

Definition at line 21 of file parse.hpp.

Constructor & Destructor Documentation

◆ parse_result() [1/2]

template<typename T , typename ErrorCallback >
constexpr lexy::parse_result< T, ErrorCallback >::parse_result ( _impl_t &&  impl)
inlineexplicitconstexprprivatenoexcept

Definition at line 79 of file parse.hpp.

◆ parse_result() [2/2]

template<typename T , typename ErrorCallback >
template<typename U >
constexpr lexy::parse_result< T, ErrorCallback >::parse_result ( _impl_t &&  impl,
U &&  v 
)
inlineexplicitconstexprprivatenoexcept

Definition at line 81 of file parse.hpp.

Member Function Documentation

◆ error_count()

template<typename T , typename ErrorCallback >
constexpr std::size_t lexy::parse_result< T, ErrorCallback >::error_count ( ) const
inlineconstexprnoexcept

Definition at line 64 of file parse.hpp.

◆ errors() [1/2]

template<typename T , typename ErrorCallback >
constexpr auto&& lexy::parse_result< T, ErrorCallback >::errors ( ) &&
inlineconstexprnoexcept

Definition at line 73 of file parse.hpp.

◆ errors() [2/2]

template<typename T , typename ErrorCallback >
constexpr const auto& lexy::parse_result< T, ErrorCallback >::errors ( ) const &
inlineconstexprnoexcept

Definition at line 69 of file parse.hpp.

◆ has_value()

template<typename T , typename ErrorCallback >
constexpr bool lexy::parse_result< T, ErrorCallback >::has_value ( ) const
inlineconstexprnoexcept

Definition at line 49 of file parse.hpp.

◆ is_error()

template<typename T , typename ErrorCallback >
constexpr bool lexy::parse_result< T, ErrorCallback >::is_error ( ) const
inlineconstexprnoexcept

Definition at line 35 of file parse.hpp.

◆ is_fatal_error()

template<typename T , typename ErrorCallback >
constexpr bool lexy::parse_result< T, ErrorCallback >::is_fatal_error ( ) const
inlineconstexprnoexcept

Definition at line 43 of file parse.hpp.

◆ is_recovered_error()

template<typename T , typename ErrorCallback >
constexpr bool lexy::parse_result< T, ErrorCallback >::is_recovered_error ( ) const
inlineconstexprnoexcept

Definition at line 39 of file parse.hpp.

◆ is_success()

template<typename T , typename ErrorCallback >
constexpr bool lexy::parse_result< T, ErrorCallback >::is_success ( ) const
inlineconstexprnoexcept

Definition at line 31 of file parse.hpp.

◆ operator bool()

template<typename T , typename ErrorCallback >
constexpr lexy::parse_result< T, ErrorCallback >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 26 of file parse.hpp.

◆ value() [1/2]

template<typename T , typename ErrorCallback >
constexpr decltype(auto) lexy::parse_result< T, ErrorCallback >::value ( ) &&
inlineconstexprnoexcept

Definition at line 58 of file parse.hpp.

◆ value() [2/2]

template<typename T , typename ErrorCallback >
constexpr decltype(auto) lexy::parse_result< T, ErrorCallback >::value ( ) const &
inlineconstexprnoexcept

Definition at line 54 of file parse.hpp.

Friends And Related Function Documentation

◆ _ph

template<typename T , typename ErrorCallback >
template<typename Reader >
friend class _ph
friend

Definition at line 93 of file parse.hpp.

Member Data Documentation

◆ _impl

template<typename T , typename ErrorCallback >
_impl_t lexy::parse_result< T, ErrorCallback >::_impl
private

Definition at line 89 of file parse.hpp.

◆ _value

template<typename T , typename ErrorCallback >
lexy::_detail::lazy_init<T> lexy::parse_result< T, ErrorCallback >::_value
private

Definition at line 90 of file parse.hpp.


The documentation for this class was generated from the following file:


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:19