Embedded Template Library 1.0
|
Classes | |
class | etl::packet< TBase, SIZE, ALIGNMENT > |
A class that can contain one a several related types.
class etl::packet |
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 > | |
packet & | operator= (const T &value) |
TBase & | get () |
Get access to the contained object. | |
const TBase & | get () const |
Get access to the contained object. | |
|
inline |
Assignment operator for type.
value | The value to assign. |