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

#include <validate.hpp>

Public Types

using error_callback = ErrorCallback
 
using error_type = typename _sink_t::return_type
 

Public Member Functions

constexpr std::size_t error_count () const noexcept
 
constexpr auto && errors () &&noexcept
 
constexpr const auto & errors () 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
 

Private Types

enum  { _status_success, _status_recovered, _status_fatal }
 
using _sink_t = _error_sink_t< ErrorCallback >
 

Private Member Functions

constexpr validate_result (bool did_recover, error_type &&error)
 

Private Attributes

error_type _error
 
enum lexy::validate_result:: { ... }  _status
 

Friends

template<typename Reader >
class _vh
 

Detailed Description

template<typename ErrorCallback>
class lexy::validate_result< ErrorCallback >

Definition at line 45 of file validate.hpp.

Member Typedef Documentation

◆ _sink_t

template<typename ErrorCallback >
using lexy::validate_result< ErrorCallback >::_sink_t = _error_sink_t<ErrorCallback>
private

Definition at line 47 of file validate.hpp.

◆ error_callback

template<typename ErrorCallback >
using lexy::validate_result< ErrorCallback >::error_callback = ErrorCallback

Definition at line 50 of file validate.hpp.

◆ error_type

template<typename ErrorCallback >
using lexy::validate_result< ErrorCallback >::error_type = typename _sink_t::return_type

Definition at line 51 of file validate.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<typename ErrorCallback >
anonymous enum
private
Enumerator
_status_success 
_status_recovered 
_status_fatal 

Definition at line 108 of file validate.hpp.

Constructor & Destructor Documentation

◆ validate_result()

template<typename ErrorCallback >
constexpr lexy::validate_result< ErrorCallback >::validate_result ( bool  did_recover,
error_type &&  error 
)
inlineexplicitconstexprprivate

Definition at line 96 of file validate.hpp.

Member Function Documentation

◆ error_count()

template<typename ErrorCallback >
constexpr std::size_t lexy::validate_result< ErrorCallback >::error_count ( ) const
inlineconstexprnoexcept

Definition at line 76 of file validate.hpp.

◆ errors() [1/2]

template<typename ErrorCallback >
constexpr auto&& lexy::validate_result< ErrorCallback >::errors ( ) &&
inlineconstexprnoexcept

Definition at line 90 of file validate.hpp.

◆ errors() [2/2]

template<typename ErrorCallback >
constexpr const auto& lexy::validate_result< ErrorCallback >::errors ( ) const &
inlineconstexprnoexcept

Definition at line 86 of file validate.hpp.

◆ is_error()

template<typename ErrorCallback >
constexpr bool lexy::validate_result< ErrorCallback >::is_error ( ) const
inlineconstexprnoexcept

Definition at line 63 of file validate.hpp.

◆ is_fatal_error()

template<typename ErrorCallback >
constexpr bool lexy::validate_result< ErrorCallback >::is_fatal_error ( ) const
inlineconstexprnoexcept

Definition at line 71 of file validate.hpp.

◆ is_recovered_error()

template<typename ErrorCallback >
constexpr bool lexy::validate_result< ErrorCallback >::is_recovered_error ( ) const
inlineconstexprnoexcept

Definition at line 67 of file validate.hpp.

◆ is_success()

template<typename ErrorCallback >
constexpr bool lexy::validate_result< ErrorCallback >::is_success ( ) const
inlineconstexprnoexcept

Definition at line 59 of file validate.hpp.

◆ operator bool()

template<typename ErrorCallback >
constexpr lexy::validate_result< ErrorCallback >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 54 of file validate.hpp.

Friends And Related Function Documentation

◆ _vh

template<typename ErrorCallback >
template<typename Reader >
friend class _vh
friend

Definition at line 116 of file validate.hpp.

Member Data Documentation

◆ _error

template<typename ErrorCallback >
error_type lexy::validate_result< ErrorCallback >::_error
private

Definition at line 107 of file validate.hpp.

◆ _status

enum { ... } lexy::validate_result< ErrorCallback >::_status

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