Public Member Functions | Private Attributes | List of all members
lexy::error< Reader, expected_literal > Class Template Reference

#include <error.hpp>

Public Member Functions

constexpr auto character () const noexcept
 
constexpr error (typename Reader::iterator pos, const typename Reader::encoding::char_type *str, std::size_t index, std::size_t length) noexcept
 
constexpr std::size_t index () const noexcept
 
constexpr std::size_t length () const noexcept
 
template<typename OtherReader , typename = std::enable_if_t<std::is_same_v< typename Reader::iterator, typename OtherReader::iterator>>>
constexpr operator error< OtherReader, expected_literal > () const noexcept
 
constexpr auto position () const noexcept
 
constexpr auto string () const noexcept -> const typename Reader::encoding::char_type *
 

Private Attributes

std::size_t _idx
 
std::size_t _length
 
Reader::iterator _pos
 
const Reader::encoding::char_type * _str
 

Detailed Description

template<typename Reader>
class lexy::error< Reader, expected_literal >

Definition at line 91 of file error.hpp.

Constructor & Destructor Documentation

◆ error()

template<typename Reader >
constexpr lexy::error< Reader, expected_literal >::error ( typename Reader::iterator  pos,
const typename Reader::encoding::char_type *  str,
std::size_t  index,
std::size_t  length 
)
inlineexplicitconstexprnoexcept

Definition at line 94 of file error.hpp.

Member Function Documentation

◆ character()

template<typename Reader >
constexpr auto lexy::error< Reader, expected_literal >::character ( ) const
inlineconstexprnoexcept

Definition at line 127 of file error.hpp.

◆ index()

template<typename Reader >
constexpr std::size_t lexy::error< Reader, expected_literal >::index ( ) const
inlineconstexprnoexcept

Definition at line 117 of file error.hpp.

◆ length()

template<typename Reader >
constexpr std::size_t lexy::error< Reader, expected_literal >::length ( ) const
inlineconstexprnoexcept

Definition at line 122 of file error.hpp.

◆ operator error< OtherReader, expected_literal >()

template<typename Reader >
template<typename OtherReader , typename = std::enable_if_t<std::is_same_v< typename Reader::iterator, typename OtherReader::iterator>>>
constexpr lexy::error< Reader, expected_literal >::operator error< OtherReader, expected_literal > ( ) const
inlineconstexprnoexcept

Definition at line 102 of file error.hpp.

◆ position()

template<typename Reader >
constexpr auto lexy::error< Reader, expected_literal >::position ( ) const
inlineconstexprnoexcept

Definition at line 107 of file error.hpp.

◆ string()

template<typename Reader >
constexpr auto lexy::error< Reader, expected_literal >::string ( ) const -> const typename Reader::encoding::char_type*
inlineconstexprnoexcept

Definition at line 112 of file error.hpp.

Member Data Documentation

◆ _idx

template<typename Reader >
std::size_t lexy::error< Reader, expected_literal >::_idx
private

Definition at line 135 of file error.hpp.

◆ _length

template<typename Reader >
std::size_t lexy::error< Reader, expected_literal >::_length
private

Definition at line 135 of file error.hpp.

◆ _pos

template<typename Reader >
Reader::iterator lexy::error< Reader, expected_literal >::_pos
private

Definition at line 133 of file error.hpp.

◆ _str

template<typename Reader >
const Reader::encoding::char_type* lexy::error< Reader, expected_literal >::_str
private

Definition at line 134 of file error.hpp.


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


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Wed Apr 16 2025 02:20:59