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 296 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 305 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 328 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 318 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 321 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 325 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 298 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 307 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 346 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 330 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 377 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 Dec 13 2024 03:19:19