FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
vapi::Request< Req, Resp, Args > Class Template Reference

Class representing a simple request - with a single response message. More...

+ Inheritance diagram for vapi::Request< Req, Resp, Args >:
+ Collaboration diagram for vapi::Request< Req, Resp, Args >:

Public Member Functions

 Request (Connection &con, Args...args, std::function< vapi_error_e(Request< Req, Resp, Args... > &)> callback=nullptr)
 
 Request (const Request &)=delete
 
virtual ~Request ()
 
vapi_error_e execute ()
 
const Msg< Req > & get_request (void) const
 
const Msg< Resp > & get_response (void)
 
- Public Member Functions inherited from vapi::Common_req
virtual ~Common_req ()
 
Connectionget_connection ()
 
vapi_response_state_e get_response_state (void) const
 

Friends

class Connection
 

Detailed Description

template<typename Req, typename Resp, typename... Args>
class vapi::Request< Req, Resp, Args >

Class representing a simple request - with a single response message.

Definition at line 49 of file vapi.hpp.

Constructor & Destructor Documentation

template<typename Req , typename Resp , typename... Args>
vapi::Request< Req, Resp, Args >::Request ( Connection con,
Args...  args,
std::function< vapi_error_e(Request< Req, Resp, Args... > &)>  callback = nullptr 
)
inline

Definition at line 644 of file vapi.hpp.

template<typename Req , typename Resp , typename... Args>
vapi::Request< Req, Resp, Args >::Request ( const Request< Req, Resp, Args > &  )
delete
template<typename Req , typename Resp , typename... Args>
virtual vapi::Request< Req, Resp, Args >::~Request ( )
inlinevirtual

Definition at line 654 of file vapi.hpp.

Member Function Documentation

template<typename Req , typename Resp , typename... Args>
vapi_error_e vapi::Request< Req, Resp, Args >::execute ( )
inline

Definition at line 662 of file vapi.hpp.

template<typename Req , typename Resp , typename... Args>
const Msg<Req>& vapi::Request< Req, Resp, Args >::get_request ( void  ) const
inline

Definition at line 667 of file vapi.hpp.

template<typename Req , typename Resp , typename... Args>
const Msg<Resp>& vapi::Request< Req, Resp, Args >::get_response ( void  )
inline

Definition at line 672 of file vapi.hpp.

Friends And Related Function Documentation

template<typename Req , typename Resp , typename... Args>
friend class Connection
friend

Definition at line 694 of file vapi.hpp.


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