FD.io VPP  v18.07-34-g55fbdb9
Vector Packet Processing
vapi::Msg< M > Class Template Reference

Class representing a message stored in shared memory. More...

Public Member Functions

 Msg (const Msg &)=delete
 
 ~Msg ()
 
template<typename X = M>
std::enable_if< vapi_has_payload_trait< X >::value, decltype(X::payload)& >::type get_payload () const
 

Static Public Member Functions

static vapi_msg_id_t get_msg_id ()
 

Friends

class Connection
 
template<typename Req , typename Resp , typename... Args>
class Request
 
template<typename Req , typename Resp , typename... Args>
class Dump
 
template<typename X >
class Event_registration
 
template<typename X >
class Result_set
 
struct Msg_allocator
 
template<typename X >
void vapi_msg_set_msg_id (vapi_msg_id_t id)
 

Detailed Description

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

Class representing a message stored in shared memory.

Definition at line 50 of file vapi.hpp.

Constructor & Destructor Documentation

template<typename M>
vapi::Msg< M >::Msg ( const Msg< M > &  )
delete
template<typename M>
vapi::Msg< M >::~Msg ( )
inline

Definition at line 525 of file vapi.hpp.

Member Function Documentation

template<typename M>
static vapi_msg_id_t vapi::Msg< M >::get_msg_id ( )
inlinestatic

Definition at line 536 of file vapi.hpp.

template<typename M>
template<typename X = M>
std::enable_if<vapi_has_payload_trait<X>::value, decltype (X::payload) &>::type vapi::Msg< M >::get_payload ( ) const
inline

Definition at line 544 of file vapi.hpp.

Friends And Related Function Documentation

template<typename M>
friend class Connection
friend

Definition at line 623 of file vapi.hpp.

template<typename M>
template<typename Req , typename Resp , typename... Args>
friend class Dump
friend

Definition at line 628 of file vapi.hpp.

template<typename M>
template<typename X >
friend class Event_registration
friend

Definition at line 630 of file vapi.hpp.

template<typename M>
friend struct Msg_allocator
friend

Definition at line 634 of file vapi.hpp.

template<typename M>
template<typename Req , typename Resp , typename... Args>
friend class Request
friend

Definition at line 626 of file vapi.hpp.

template<typename M>
template<typename X >
friend class Result_set
friend

Definition at line 632 of file vapi.hpp.

template<typename M>
template<typename X >
void vapi_msg_set_msg_id ( vapi_msg_id_t  id)
friend

Definition at line 512 of file vapi.hpp.


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