Stefan Scholz / ETL
Embed: (wiki syntax)

« Back to documentation index

packet< TBase, SIZE, ALIGNMENT > Class Template Reference

packet< TBase, SIZE, ALIGNMENT > Class Template Reference
[packet]

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

#include <packet.h>

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)
 Assignment operator for type.
TBase & get ()
 Get access to the contained object.
const TBase & get () const
 Get access to the contained object.

Detailed Description

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.

Definition at line 55 of file packet.h.


Constructor & Destructor Documentation

packet ( const T &  value ) [explicit]

Constructor that static asserts any types that do not conform to the max size and alignment.

Definition at line 63 of file packet.h.

~packet (  )

Destructor.

Definition at line 75 of file packet.h.


Member Function Documentation

TBase& get (  )

Get access to the contained object.

Definition at line 100 of file packet.h.

const TBase& get (  ) const

Get access to the contained object.

Definition at line 108 of file packet.h.

packet& operator= ( const T &  value )

Assignment operator for type.

Parameters:
valueThe value to assign.

Definition at line 85 of file packet.h.