Kagome
Polkadot Runtime Engine in C++17
kagome::api::Method< RequestType, Api > Class Template Reference

#include <jrpc_method.hpp>

Collaboration diagram for kagome::api::Method< RequestType, Api >:

Public Member Functions

 Method (const std::shared_ptr< Api > &api)
 
jsonrpc::Value operator() (const jsonrpc::Request::Parameters &params)
 

Private Attributes

std::weak_ptr< Api > api_
 

Detailed Description

template<typename RequestType, typename Api>
class kagome::api::Method< RequestType, Api >

Definition at line 20 of file jrpc_method.hpp.

Constructor & Destructor Documentation

template<typename RequestType , typename Api >
kagome::api::Method< RequestType, Api >::Method ( const std::shared_ptr< Api > &  api)
inlineexplicit

Definition at line 25 of file jrpc_method.hpp.

Member Function Documentation

template<typename RequestType , typename Api >
jsonrpc::Value kagome::api::Method< RequestType, Api >::operator() ( const jsonrpc::Request::Parameters &  params)
inline

Definition at line 27 of file jrpc_method.hpp.

Member Data Documentation

template<typename RequestType , typename Api >
std::weak_ptr<Api> kagome::api::Method< RequestType, Api >::api_
private

Definition at line 22 of file jrpc_method.hpp.


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