FD.io VPP  v19.08.3-2-gbabecb413
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

◆ Request() [1/2]

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.

◆ Request() [2/2]

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

◆ ~Request()

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

◆ execute()

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.

◆ get_request()

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.

◆ get_response()

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

◆ Connection

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: