DUNE: Uniform Navigational Environment  2022.04.0
DUNE::IMC::InlineMessage< Type > Class Template Reference

Detailed Description

template<typename Type>
class DUNE::IMC::InlineMessage< Type >

Inline Message.

Public Member Functions

 InlineMessage (void)
 
 InlineMessage (const InlineMessage &other)
 
 ~InlineMessage (void)
 
void setParent (const Message *parent)
 
void set (const Type &msg)
 
void set (Type *msg)
 
void clear (void)
 
const Type * get (void) const
 
Type * get (void)
 
template<typename T >
bool get (const T *&m) const
 
template<typename T >
bool get (T *&m)
 
unsigned getSerializationSize (void) const
 
bool isNull (void) const
 
Type & operator* (void) const
 
Type * operator-> (void) const
 
InlineMessageoperator= (const InlineMessage &other)
 
bool operator== (const InlineMessage &other) const
 
bool operator!= (const InlineMessage &other) const
 
uint16_t serialize (uint8_t *bfr) const
 
uint16_t deserialize (const uint8_t *bfr, uint16_t &bfr_len)
 
uint16_t reverseDeserialize (const uint8_t *bfr, uint16_t &bfr_len)
 
void toJSON (std::ostream &os, const char *label, unsigned nindent, char prefix=',') const
 

Constructor & Destructor Documentation

◆ InlineMessage() [1/2]

template<typename Type>
DUNE::IMC::InlineMessage< Type >::InlineMessage ( void  )
inline

Default constructor.

◆ InlineMessage() [2/2]

template<typename Type>
DUNE::IMC::InlineMessage< Type >::InlineMessage ( const InlineMessage< Type > &  other)
inline

Copy constructor.

◆ ~InlineMessage()

template<typename Type>
DUNE::IMC::InlineMessage< Type >::~InlineMessage ( void  )
inline

Default destructor.

Member Function Documentation

◆ clear()

◆ deserialize()

template<typename Type>
uint16_t DUNE::IMC::InlineMessage< Type >::deserialize ( const uint8_t *  bfr,
uint16_t &  bfr_len 
)
inline

◆ get() [1/4]

template<typename Type>
const Type* DUNE::IMC::InlineMessage< Type >::get ( void  ) const
inline

◆ get() [2/4]

template<typename Type>
Type* DUNE::IMC::InlineMessage< Type >::get ( void  )
inline

◆ get() [3/4]

template<typename Type>
template<typename T >
bool DUNE::IMC::InlineMessage< Type >::get ( const T *&  m) const
inline

◆ get() [4/4]

template<typename Type>
template<typename T >
bool DUNE::IMC::InlineMessage< Type >::get ( T *&  m)
inline

◆ getSerializationSize()

template<typename Type>
unsigned DUNE::IMC::InlineMessage< Type >::getSerializationSize ( void  ) const
inline

◆ isNull()

◆ operator!=()

template<typename Type>
bool DUNE::IMC::InlineMessage< Type >::operator!= ( const InlineMessage< Type > &  other) const
inline

◆ operator*()

template<typename Type>
Type& DUNE::IMC::InlineMessage< Type >::operator* ( void  ) const
inline

◆ operator->()

template<typename Type>
Type* DUNE::IMC::InlineMessage< Type >::operator-> ( void  ) const
inline

◆ operator=()

template<typename Type>
InlineMessage& DUNE::IMC::InlineMessage< Type >::operator= ( const InlineMessage< Type > &  other)
inline

Assignment operator.

◆ operator==()

template<typename Type>
bool DUNE::IMC::InlineMessage< Type >::operator== ( const InlineMessage< Type > &  other) const
inline

◆ reverseDeserialize()

template<typename Type>
uint16_t DUNE::IMC::InlineMessage< Type >::reverseDeserialize ( const uint8_t *  bfr,
uint16_t &  bfr_len 
)
inline

◆ serialize()

template<typename Type>
uint16_t DUNE::IMC::InlineMessage< Type >::serialize ( uint8_t *  bfr) const
inline

◆ set() [1/2]

template<typename Type>
void DUNE::IMC::InlineMessage< Type >::set ( const Type &  msg)
inline

◆ set() [2/2]

template<typename Type>
void DUNE::IMC::InlineMessage< Type >::set ( Type *  msg)
inline

◆ setParent()

template<typename Type>
void DUNE::IMC::InlineMessage< Type >::setParent ( const Message parent)
inline

◆ toJSON()

template<typename Type>
void DUNE::IMC::InlineMessage< Type >::toJSON ( std::ostream &  os,
const char *  label,
unsigned  nindent,
char  prefix = ',' 
) const
inline
Collaboration diagram for DUNE::IMC::InlineMessage< Type >:
Collaboration graph