Classes | Namespaces | Macros | Functions
adapter.hpp File Reference
#include <lexy/callback/base.hpp>
Include dependency graph for adapter.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lexy::_callback< ReturnType, Fns >
 
struct  lexy::_callback_with_state< ReturnType, Fns >
 
struct  lexy::_cb_from_sink< Sink >
 
struct  lexy::_mem_fn< Fn >
 
struct  lexy::_mem_fn< MemFn T::* >
 
struct  lexy::_mem_fn_traits< MemFn >
 
struct  lexy::_callback_with_state< ReturnType, Fns >::_with_state< State >
 

Namespaces

 lexy
 

Macros

#define LEXY_MAKE_MEM_FN_TRAITS(...)
 
#define LEXY_MAKE_MEM_FN_TRAITS_CV(...)
 
#define LEXY_MAKE_MEM_FN_TRAITS_CV_REF(...)
 

Functions

template<typename... Fns>
constexpr auto lexy::callback (Fns &&... fns)
 Creates a callback. More...
 
template<typename ReturnType , typename... Fns>
constexpr auto lexy::callback (Fns &&... fns)
 
template<typename Sink , typename = lexy::sink_callback<Sink>>
constexpr auto lexy::callback (Sink &&sink)
 Creates a callback that forwards all arguments to the sink. More...
 
template<typename... Fns>
constexpr auto lexy::callback_with_state (Fns &&... fns)
 Creates a callback that also receives the parse state. More...
 
template<typename ReturnType , typename... Fns>
constexpr auto lexy::callback_with_state (Fns &&... fns)
 
template<typename MemFn , typename T >
constexpr auto lexy::mem_fn (MemFn T::*fn)
 Creates a callback from a member function. More...
 

Macro Definition Documentation

◆ LEXY_MAKE_MEM_FN_TRAITS

#define LEXY_MAKE_MEM_FN_TRAITS (   ...)
Value:
template <typename ReturnType, typename... Args> \
struct _mem_fn_traits<ReturnType(Args...) __VA_ARGS__> \
{ \
using return_type = ReturnType; \
}; \
template <typename ReturnType, typename... Args> \
struct _mem_fn_traits<ReturnType(Args..., ...) __VA_ARGS__> \
{ \
using return_type = ReturnType; \
};

Definition at line 112 of file adapter.hpp.

◆ LEXY_MAKE_MEM_FN_TRAITS_CV

#define LEXY_MAKE_MEM_FN_TRAITS_CV (   ...)
Value:
LEXY_MAKE_MEM_FN_TRAITS(__VA_ARGS__) \
LEXY_MAKE_MEM_FN_TRAITS(const __VA_ARGS__) \
LEXY_MAKE_MEM_FN_TRAITS(volatile __VA_ARGS__) \
LEXY_MAKE_MEM_FN_TRAITS(const volatile __VA_ARGS__)

Definition at line 124 of file adapter.hpp.

◆ LEXY_MAKE_MEM_FN_TRAITS_CV_REF

#define LEXY_MAKE_MEM_FN_TRAITS_CV_REF (   ...)
Value:
LEXY_MAKE_MEM_FN_TRAITS_CV(&__VA_ARGS__) \
LEXY_MAKE_MEM_FN_TRAITS_CV(&&__VA_ARGS__)

Definition at line 130 of file adapter.hpp.

LEXY_MAKE_MEM_FN_TRAITS_CV
#define LEXY_MAKE_MEM_FN_TRAITS_CV(...)
Definition: adapter.hpp:124
LEXY_MAKE_MEM_FN_TRAITS
#define LEXY_MAKE_MEM_FN_TRAITS(...)
Definition: adapter.hpp:112


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:17