Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::vtable_copy_visitor< OtherType > Struct Template Reference

#include <api.hpp>

Public Types

typedef OtherType other_type
 

Public Member Functions

 vtable_copy_visitor (OtherType &s)
 
template<typename R , typename MemberPtr , typename... Args>
void operator() (const char *name, std::function< R(Args...)> &memb, MemberPtr m) const
 

Public Attributes

OtherType & _source
 

Detailed Description

template<typename OtherType>
struct fc::vtable_copy_visitor< OtherType >

Definition at line 28 of file api.hpp.

Member Typedef Documentation

◆ other_type

template<typename OtherType >
OtherType fc::vtable_copy_visitor< OtherType >::other_type

Definition at line 29 of file api.hpp.

Constructor & Destructor Documentation

◆ vtable_copy_visitor()

template<typename OtherType >
fc::vtable_copy_visitor< OtherType >::vtable_copy_visitor ( OtherType & s)
inline

Definition at line 31 of file api.hpp.

31:_source( s ){}
OtherType & _source
Definition api.hpp:38
char * s

Member Function Documentation

◆ operator()()

template<typename OtherType >
template<typename R , typename MemberPtr , typename... Args>
void fc::vtable_copy_visitor< OtherType >::operator() ( const char * name,
std::function< R(Args...)> & memb,
MemberPtr m ) const
inline

Definition at line 34 of file api.hpp.

34 {
35 OtherType* src = &_source;
36 memb = [src,m]( Args... args ){ return (src->*m)(args...); };
37 }

Member Data Documentation

◆ _source

template<typename OtherType >
OtherType& fc::vtable_copy_visitor< OtherType >::_source

Definition at line 38 of file api.hpp.


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