Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::actor< Interface > Class Template Reference

#include <actor.hpp>

Inheritance diagram for fc::actor< Interface >:
Collaboration diagram for fc::actor< Interface >:

Public Member Functions

 actor ()
 
template<typename InterfaceType >
 actor (InterfaceType *p, fc::thread *t=&fc::thread::current())
 
- Public Member Functions inherited from fc::api< Interface, detail::actor_member >
 api ()
 
 api (const T &p)
 
 api (const api &cpy)
 
virtual ~api ()
 
virtual uint64_t get_handle () const override
 
virtual api_id_type register_api (api_connection &conn) const override
 
vtable_typeoperator* () const
 
vtable_typeoperator-> () const
 
- Public Member Functions inherited from fc::api_base
 api_base ()
 
virtual ~api_base ()
 
template<typename T >
api< T, identity_memberas ()
 
template<typename T >
api< Tas ()
 

Additional Inherited Members

- Public Types inherited from fc::api< Interface, detail::actor_member >
typedef vtable< Interface, detail::actor_membervtable_type
 
- Protected Attributes inherited from fc::api< Interface, detail::actor_member >
std::shared_ptr< vtable_type_vtable
 
std::shared_ptr< fc::any_data
 

Detailed Description

template<typename Interface>
class fc::actor< Interface >

Posts all method calls to another thread and returns a future.

Definition at line 53 of file actor.hpp.

Constructor & Destructor Documentation

◆ actor() [1/2]

template<typename Interface >
fc::actor< Interface >::actor ( )
inline

Definition at line 55 of file actor.hpp.

55{}

◆ actor() [2/2]

template<typename Interface >
template<typename InterfaceType >
fc::actor< Interface >::actor ( InterfaceType * p,
fc::thread * t = &fc::thread::current() )
inline

Definition at line 58 of file actor.hpp.

59 {
60 this->_vtable.reset(new detail::vtable<Interface,detail::actor_member>() );
61 this->_vtable->template visit<InterfaceType>( detail::actor_vtable_visitor<InterfaceType*>(t, p) );
62 }
const mie::Vuint & p
Definition bn.cpp:27
std::shared_ptr< vtable_type > _vtable
Definition api.hpp:97

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