|
void | construct () |
|
template<typename P1 > |
void | construct (typename ParameterType< P1 >::Type p1) |
|
template<typename P1 , typename P2 > |
void | construct (typename ParameterType< P1 >::Type p1, typename ParameterType< P2 >::Type p2) |
|
template<typename P1 , typename P2 , typename P3 > |
void | construct (typename ParameterType< P1 >::Type p1, typename ParameterType< P2 >::Type p2, typename ParameterType< P3 >::Type p3) |
|
template<typename P1 , typename P2 , typename P3 , typename P4 > |
void | construct (typename ParameterType< P1 >::Type p1, typename ParameterType< P2 >::Type p2, typename ParameterType< P3 >::Type p3, typename ParameterType< P4 >::Type p4) |
|
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 > |
void | construct (typename ParameterType< P1 >::Type p1, typename ParameterType< P2 >::Type p2, typename ParameterType< P3 >::Type p3, typename ParameterType< P4 >::Type p4, typename ParameterType< P5 >::Type p5) |
|
template<typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 > |
void | construct (typename ParameterType< P1 >::Type p1, typename ParameterType< P2 >::Type p2, typename ParameterType< P3 >::Type p3, typename ParameterType< P4 >::Type p4, typename ParameterType< P5 >::Type p5, typename ParameterType< P6 >::Type p6) |
|
void | destroy () |
|
bool | isConstructed () const |
|
| LazyConstructor () |
|
| LazyConstructor (const LazyConstructor< T > &rhs) |
|
| operator T* () const |
|
T & | operator* () |
|
const T & | operator* () const |
|
T * | operator-> () |
|
const T * | operator-> () const |
|
LazyConstructor< T > & | operator= (const LazyConstructor< T > &rhs) |
|
| ~LazyConstructor () |
|
template<typename T>
class uavcan::LazyConstructor< T >
This class allows to postpone the object contruction. It statically allocates a pool of memory of just enough size to fit the object being constructed. Later call to construct<>() calls the constructor of the object. The object will be destroyed automatically when the container class destructor is called. The memory pool is aligned at the size of the largest primitive type (long double or long long int).
Definition at line 27 of file lazy_constructor.hpp.