FD.io VPP  v18.01.2-1-g9b554f3
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 522 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 533 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 541 of file vapi.hpp.

Friends And Related Function Documentation

template<typename M>
friend class Connection
friend

Definition at line 620 of file vapi.hpp.

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

Definition at line 625 of file vapi.hpp.

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

Definition at line 627 of file vapi.hpp.

template<typename M>
friend struct Msg_allocator
friend

Definition at line 631 of file vapi.hpp.

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

Definition at line 623 of file vapi.hpp.

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

Definition at line 629 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 509 of file vapi.hpp.


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