FD.io VPP  v19.04.4-rc0-5-ge88582fac
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

◆ resp_type

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

◆ Event_registration() [1/2]

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:

◆ Event_registration() [2/2]

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

◆ ~Event_registration()

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

Definition at line 869 of file vapi.hpp.

Member Function Documentation

◆ assign_response()

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.

◆ get_result_set()

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: