Embedded Template Library 1.0
packet

Classes

class  etl::packet< TBase, SIZE, ALIGNMENT >
 

Detailed Description

A class that can contain one a several related types.


Class Documentation

◆ etl::packet

class etl::packet
template<typename TBase, size_t SIZE, size_t ALIGNMENT>
class etl::packet< TBase, SIZE, ALIGNMENT >

A template class that can store any types derived from TBase that conform to the size and alignment requirements.

Public Types

typedef TBase base_t
 

Public Member Functions

template<typename T >
 packet (const T &value)
 Constructor that static asserts any types that do not conform to the max size and alignment.
 
 ~packet ()
 Destructor.
 
template<typename T >
packetoperator= (const T &value)
 
TBase & get ()
 Get access to the contained object.
 
const TBase & get () const
 Get access to the contained object.
 

Member Function Documentation

◆ operator=()

template<typename TBase , size_t SIZE, size_t ALIGNMENT>
template<typename T >
packet & etl::packet< TBase, SIZE, ALIGNMENT >::operator= ( const T &  value)
inline

Assignment operator for type.

Parameters
valueThe value to assign.