#include <api.hpp>
Definition at line 48 of file api.hpp.
◆ api_base()
fc::api_base::api_base |
( |
| ) |
|
|
inline |
◆ ~api_base()
virtual fc::api_base::~api_base |
( |
| ) |
|
|
inlinevirtual |
◆ as() [1/2]
◆ as() [2/2]
api< T > fc::api_base::as |
( |
| ) |
|
Definition at line 465 of file api_connection.hpp.
466 {
467
468 api<T>* maybe_requested_type = dynamic_cast< api<T>* >(this);
469 if( maybe_requested_type != nullptr )
470 return *maybe_requested_type;
471
472 detail::any_api* maybe_any = dynamic_cast< detail::any_api* >(this);
474 std::shared_ptr< api_connection > api_conn = maybe_any->_api_connection.lock();
476 return api_conn->get_remote_api<
T>( maybe_any->_api_id );
477 }
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
#define T(meth, val, expected)
◆ get_handle()
virtual uint64_t fc::api_base::get_handle |
( |
| ) |
const |
|
pure virtual |
◆ register_api()
The documentation for this class was generated from the following files: