Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
actor.hpp File Reference
#include <fc/api.hpp>
#include <fc/thread/thread.hpp>
Include dependency graph for actor.hpp:

Go to the source code of this file.

Classes

struct  fc::detail::actor_member
 
struct  fc::detail::actor_vtable_visitor< ThisPtr >
 
class  fc::actor< Interface >
 

Namespaces

namespace  fc
 namespace sysio::chain
 
namespace  fc::detail
 

Macros

#define RPC_MEMBER_FUNCTOR(z, n, IS_CONST)
 

Macro Definition Documentation

◆ RPC_MEMBER_FUNCTOR

#define RPC_MEMBER_FUNCTOR ( z,
n,
IS_CONST )
Value:
template<typename R, typename C, typename P BOOST_PP_ENUM_TRAILING_PARAMS( n, typename A)> \
static std::function<fc::future<R>( BOOST_PP_ENUM_PARAMS(n,A) ) > \
functor( P p, R (C::*mem_func)(BOOST_PP_ENUM_PARAMS(n,A)) IS_CONST, fc::thread* c = 0) { \
return [=](BOOST_PP_ENUM_BINARY_PARAMS(n,A,a))->fc::future<R>{ \
return c->async( [=](){ return (p->*mem_func)(BOOST_PP_ENUM_PARAMS(n,a)); } ); }; \
}
const mie::Vuint & p
Definition bn.cpp:27
#define P
Definition dtoa.c:437
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
#define R

Definition at line 10 of file actor.hpp.

10 #define RPC_MEMBER_FUNCTOR(z,n,IS_CONST) \
11 template<typename R, typename C, typename P BOOST_PP_ENUM_TRAILING_PARAMS( n, typename A)> \
12 static std::function<fc::future<R>( BOOST_PP_ENUM_PARAMS(n,A) ) > \
13 functor( P p, R (C::*mem_func)(BOOST_PP_ENUM_PARAMS(n,A)) IS_CONST, fc::thread* c = 0) { \
14 return [=](BOOST_PP_ENUM_BINARY_PARAMS(n,A,a))->fc::future<R>{ \
15 return c->async( [=](){ return (p->*mem_func)(BOOST_PP_ENUM_PARAMS(n,a)); } ); }; \
16 }