FD.io VPP  v19.01.2-3-gf61a1a8
Vector Packet Processing
vapi::Event_registration< M > Class Template Reference

Class representing event registration - incoming events (messages) from vpp as a result of a subscription (typically a want_* simple request) More...

+ Inheritance diagram for vapi::Event_registration< M >:
+ Collaboration diagram for vapi::Event_registration< M >:

Public Types

using resp_type = typename M::shm_data_type
 

Public Member Functions

 Event_registration (Connection &con, std::function< vapi_error_e(Event_registration< M > &)> callback=nullptr)
 
 Event_registration (const Event_registration &)=delete
 
virtual ~Event_registration ()
 
virtual std::tuple< vapi_error_e, boolassign_response (vapi_msg_id_t id, void *shm_data)
 
Result_set< resp_type > & get_result_set (void)
 
- Public Member Functions inherited from vapi::Common_req
virtual ~Common_req ()
 
Connectionget_connection ()
 
vapi_response_state_e get_response_state (void) const
 

Detailed Description

template<typename M>
class vapi::Event_registration< M >

Class representing event registration - incoming events (messages) from vpp as a result of a subscription (typically a want_* simple request)

Definition at line 56 of file vapi.hpp.

Member Typedef Documentation

template<typename M>
using vapi::Event_registration< M >::resp_type = typename M::shm_data_type

Definition at line 885 of file vapi.hpp.

Constructor & Destructor Documentation

template<typename M>
vapi::Event_registration< M >::Event_registration ( Connection con,
std::function< vapi_error_e(Event_registration< M > &)>  callback = nullptr 
)
inline

Definition at line 855 of file vapi.hpp.

+ Here is the call graph for this function:

template<typename M>
vapi::Event_registration< M >::Event_registration ( const Event_registration< M > &  )
delete
template<typename M>
virtual vapi::Event_registration< M >::~Event_registration ( )
inlinevirtual

Definition at line 869 of file vapi.hpp.

Member Function Documentation

template<typename M>
virtual std::tuple<vapi_error_e, bool> vapi::Event_registration< M >::assign_response ( vapi_msg_id_t  id,
void *  shm_data 
)
inlinevirtual

Implements vapi::Common_req.

Definition at line 874 of file vapi.hpp.

template<typename M>
Result_set<resp_type>& vapi::Event_registration< M >::get_result_set ( void  )
inline

Definition at line 887 of file vapi.hpp.


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