Public Types | Public Member Functions | Private Types | Static Private Member Functions | Private Attributes | List of all members
lexy::production_value_callback< Production, ParseState > Class Template Reference

#include <grammar.hpp>

Public Types

using return_type = typename decltype(_return_type_callback())::return_type
 

Public Member Functions

template<typename... Args>
constexpr return_type operator() (Args &&... args) const
 
template<typename State = ParseState, typename = std::enable_if_t<std::is_void_v<State>>>
constexpr production_value_callback ()
 
constexpr production_value_callback (ParseState *state)
 
template<typename State = ParseState, typename = std::enable_if_t<std::is_same_v<State, ParseState>>>
constexpr production_value_callback (State &state)
 
constexpr auto sink () const
 

Private Types

using _type = decltype(_get_value(nullptr))
 

Static Private Member Functions

static constexpr auto _get_value ([[maybe_unused]] ParseState *state)
 
static auto _return_type_callback ()
 

Private Attributes

ParseState * _state
 

Detailed Description

template<typename Production, typename ParseState = void>
class lexy::production_value_callback< Production, ParseState >

Definition at line 274 of file grammar.hpp.

Member Typedef Documentation

◆ _type

template<typename Production , typename ParseState = void>
using lexy::production_value_callback< Production, ParseState >::_type = decltype(_get_value(nullptr))
private

Definition at line 283 of file grammar.hpp.

◆ return_type

template<typename Production , typename ParseState = void>
using lexy::production_value_callback< Production, ParseState >::return_type = typename decltype(_return_type_callback())::return_type

Definition at line 306 of file grammar.hpp.

Constructor & Destructor Documentation

◆ production_value_callback() [1/3]

template<typename Production , typename ParseState = void>
constexpr lexy::production_value_callback< Production, ParseState >::production_value_callback ( ParseState *  state)
inlineexplicitconstexpr

Definition at line 296 of file grammar.hpp.

◆ production_value_callback() [2/3]

template<typename Production , typename ParseState = void>
template<typename State = ParseState, typename = std::enable_if_t<std::is_void_v<State>>>
constexpr lexy::production_value_callback< Production, ParseState >::production_value_callback ( )
inlineconstexpr

Definition at line 299 of file grammar.hpp.

◆ production_value_callback() [3/3]

template<typename Production , typename ParseState = void>
template<typename State = ParseState, typename = std::enable_if_t<std::is_same_v<State, ParseState>>>
constexpr lexy::production_value_callback< Production, ParseState >::production_value_callback ( State &  state)
inlineexplicitconstexpr

Definition at line 303 of file grammar.hpp.

Member Function Documentation

◆ _get_value()

template<typename Production , typename ParseState = void>
static constexpr auto lexy::production_value_callback< Production, ParseState >::_get_value ( [[maybe_unused] ] ParseState *  state)
inlinestaticconstexprprivate

Definition at line 276 of file grammar.hpp.

◆ _return_type_callback()

template<typename Production , typename ParseState = void>
static auto lexy::production_value_callback< Production, ParseState >::_return_type_callback ( )
inlinestaticprivate

Definition at line 285 of file grammar.hpp.

◆ operator()()

template<typename Production , typename ParseState = void>
template<typename... Args>
constexpr return_type lexy::production_value_callback< Production, ParseState >::operator() ( Args &&...  args) const
inlineconstexpr

Definition at line 324 of file grammar.hpp.

◆ sink()

template<typename Production , typename ParseState = void>
constexpr auto lexy::production_value_callback< Production, ParseState >::sink ( ) const
inlineconstexpr

Definition at line 308 of file grammar.hpp.

Member Data Documentation

◆ _state

template<typename Production , typename ParseState = void>
ParseState* lexy::production_value_callback< Production, ParseState >::_state
private

Definition at line 353 of file grammar.hpp.


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


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Jun 28 2024 02:20:09