FD.io VPP  v18.11-rc0-18-g2a3fb1a
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 646 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 656 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 664 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 669 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 674 of file vapi.hpp.

Friends And Related Function Documentation

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

Definition at line 696 of file vapi.hpp.


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