Embedded Template Library  1.0
etl::variant_pool< MAX_SIZE_, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16 > Class Template Reference

Public Member Functions

 variant_pool ()
 Default constructor.
 
template<typename T , typename... Args>
T * create (Args &&... args)
 Creates the object from a type. Variadic parameter constructor.
 
template<typename T >
bool destroy (const T *const p)
 Destroys the object.
 
size_t max_size () const
 Returns the maximum number of items in the variant_pool.
 
size_t available () const
 Returns the number of free items in the variant_pool.
 
size_t size () const
 Returns the number of allocated items in the variant_pool.
 
bool empty () const
 Checks to see if there are no allocated items in the variant_pool. More...
 
bool full () const
 Checks to see if there are no free items in the variant_pool. More...
 
 variant_pool ()
 Default constructor.
 
template<typename T >
T * create ()
 Creates the object. Default constructor.
 
template<typename T , typename TP1 >
T * create (const TP1 &p1)
 Creates the object. One parameter constructor.
 
template<typename T , typename TP1 , typename TP2 >
T * create (const TP1 &p1, const TP2 &p2)
 Creates the object. Two parameter constructor.
 
template<typename T , typename TP1 , typename TP2 , typename TP3 >
T * create (const TP1 &p1, const TP2 &p2, const TP3 &p3)
 Creates the object. Three parameter constructor.
 
template<typename T , typename TP1 , typename TP2 , typename TP3 , typename TP4 >
T * create (const TP1 &p1, const TP2 &p2, const TP3 &p3, const TP4 &p4)
 Creates the object. Four parameter constructor.
 
template<typename T >
bool destroy (const T *const p)
 Destroys the object.
 
size_t max_size () const
 Returns the maximum number of items in the variant_pool.
 
size_t available () const
 Returns the number of free items in the variant_pool.
 
size_t size () const
 Returns the number of allocated items in the variant_pool.
 
bool empty () const
 
bool full () const
 

Static Public Attributes

static const size_t MAX_SIZE = MAX_SIZE_
 

Member Function Documentation

◆ empty() [1/2]

template<const size_t MAX_SIZE_, typename T1 , typename T2 = void, typename T3 = void, typename T4 = void, typename T5 = void, typename T6 = void, typename T7 = void, typename T8 = void, typename T9 = void, typename T10 = void, typename T11 = void, typename T12 = void, typename T13 = void, typename T14 = void, typename T15 = void, typename T16 = void>
bool etl::variant_pool< MAX_SIZE_, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16 >::empty ( ) const
inline

Checks to see if there are no allocated items in the variant_pool.

Returns
true if there are none allocated.

◆ empty() [2/2]

template<const size_t MAX_SIZE_, typename T1 , typename T2 = void, typename T3 = void, typename T4 = void, typename T5 = void, typename T6 = void, typename T7 = void, typename T8 = void, typename T9 = void, typename T10 = void, typename T11 = void, typename T12 = void, typename T13 = void, typename T14 = void, typename T15 = void, typename T16 = void>
bool etl::variant_pool< MAX_SIZE_, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16 >::empty ( ) const
inline

Checks to see if there are no allocated items in the variant_pool.

Returns
true if there are none allocated.

◆ full() [1/2]

template<const size_t MAX_SIZE_, typename T1 , typename T2 = void, typename T3 = void, typename T4 = void, typename T5 = void, typename T6 = void, typename T7 = void, typename T8 = void, typename T9 = void, typename T10 = void, typename T11 = void, typename T12 = void, typename T13 = void, typename T14 = void, typename T15 = void, typename T16 = void>
bool etl::variant_pool< MAX_SIZE_, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16 >::full ( ) const
inline

Checks to see if there are no free items in the variant_pool.

Returns
true if there are none free.

◆ full() [2/2]

template<const size_t MAX_SIZE_, typename T1 , typename T2 = void, typename T3 = void, typename T4 = void, typename T5 = void, typename T6 = void, typename T7 = void, typename T8 = void, typename T9 = void, typename T10 = void, typename T11 = void, typename T12 = void, typename T13 = void, typename T14 = void, typename T15 = void, typename T16 = void>
bool etl::variant_pool< MAX_SIZE_, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16 >::full ( ) const
inline

Checks to see if there are no free items in the variant_pool.

Returns
true if there are none free.

The documentation for this class was generated from the following files: