Public Member Functions | Private Attributes | List of all members
lexy::error_context< Input > Class Template Reference

Contains information about the context of an error, production is type-erased. More...

#include <error.hpp>

Public Member Functions

constexpr error_context (lexy::production_info production, const Input &input, typename input_reader< Input >::iterator pos) noexcept
 
constexpr const auto & input () const noexcept
 The input. More...
 
constexpr auto position () const noexcept
 The starting position of the production. More...
 
const char * production () const noexcept
 The name of the production where the error occurred. More...
 

Private Attributes

const Input * _input
 
input_reader< Input >::iterator _pos
 
const char * _production
 

Detailed Description

template<typename Input>
class lexy::error_context< Input >

Contains information about the context of an error, production is type-erased.

Definition at line 233 of file error.hpp.

Constructor & Destructor Documentation

◆ error_context()

template<typename Input >
constexpr lexy::error_context< Input >::error_context ( lexy::production_info  production,
const Input &  input,
typename input_reader< Input >::iterator  pos 
)
inlineexplicitconstexprnoexcept

Definition at line 236 of file error.hpp.

Member Function Documentation

◆ input()

template<typename Input >
constexpr const auto& lexy::error_context< Input >::input ( ) const
inlineconstexprnoexcept

The input.

Definition at line 242 of file error.hpp.

◆ position()

template<typename Input >
constexpr auto lexy::error_context< Input >::position ( ) const
inlineconstexprnoexcept

The starting position of the production.

Definition at line 257 of file error.hpp.

◆ production()

template<typename Input >
const char* lexy::error_context< Input >::production ( ) const
inlinenoexcept

The name of the production where the error occurred.

Definition at line 251 of file error.hpp.

Member Data Documentation

◆ _input

template<typename Input >
const Input* lexy::error_context< Input >::_input
private

Definition at line 263 of file error.hpp.

◆ _pos

template<typename Input >
input_reader<Input>::iterator lexy::error_context< Input >::_pos
private

Definition at line 264 of file error.hpp.

◆ _production

template<typename Input >
const char* lexy::error_context< Input >::_production
private

Definition at line 265 of file error.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