Embedded Template Library 1.0
Loading...
Searching...
No Matches
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 Types

typedef etl::generic_pool< etl::largest< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16 >::size, etl::largest< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16 >::alignment, MAX_SIZE_base_t
 
- Public Types inherited from etl::ipool
typedef size_t size_type
 

Public Member Functions

 variant_pool ()
 Default constructor.
 
template<typename T >
Tcreate ()
 Creates the object. Default constructor.
 
template<typename T , typename TP1 >
Tcreate (const TP1 &p1)
 Creates the object. One parameter constructor.
 
template<typename T , typename TP1 , typename TP2 >
Tcreate (const TP1 &p1, const TP2 &p2)
 Creates the object. Two parameter constructor.
 
template<typename T , typename TP1 , typename TP2 , typename TP3 >
Tcreate (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 >
Tcreate (const TP1 &p1, const TP2 &p2, const TP3 &p3, const TP4 &p4)
 Creates the object. Four parameter constructor.
 
template<typename T >
void destroy (const T *const p)
 Destroys the object.
 
size_t max_size () const
 Returns the maximum number of items in the variant_pool.
 
- Public Member Functions inherited from etl::generic_pool< VTypeSize, VAlignment, VSize >
 generic_pool ()
 Constructor.
 
template<typename U >
Uallocate ()
 
template<typename U >
Ucreate ()
 
template<typename U , typename T1 >
Ucreate (const T1 &value1)
 
template<typename U , typename T1 , typename T2 >
Ucreate (const T1 &value1, const T2 &value2)
 
template<typename U , typename T1 , typename T2 , typename T3 >
Ucreate (const T1 &value1, const T2 &value2, const T3 &value3)
 
template<typename U , typename T1 , typename T2 , typename T3 , typename T4 >
Ucreate (const T1 &value1, const T2 &value2, const T3 &value3, const T4 &value4)
 
template<typename U >
void destroy (const U *const p_object)
 
- Public Member Functions inherited from etl::ipool
template<typename T >
Tallocate ()
 
template<typename T >
Tcreate ()
 
template<typename T , typename T1 >
Tcreate (const T1 &value1)
 
template<typename T , typename T1 , typename T2 >
Tcreate (const T1 &value1, const T2 &value2)
 
template<typename T , typename T1 , typename T2 , typename T3 >
Tcreate (const T1 &value1, const T2 &value2, const T3 &value3)
 
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 >
Tcreate (const T1 &value1, const T2 &value2, const T3 &value3, const T4 &value4)
 
template<typename T >
void destroy (const T *const p_object)
 
void release (const void *const p_object)
 
void release_all ()
 Release all objects in the pool.
 
bool is_in_pool (const void *const p_object) const
 
size_t max_size () const
 Returns the maximum number of items in the pool.
 
size_t capacity () const
 Returns the maximum number of items in the pool.
 
size_t available () const
 Returns the number of free items in the pool.
 
size_t size () const
 Returns the number of allocated items in the pool.
 
bool empty () const
 
bool full () const
 

Static Public Attributes

static const size_t MAX_SIZE = MAX_SIZE_
 
- Static Public Attributes inherited from etl::generic_pool< VTypeSize, VAlignment, VSize >
static ETL_CONSTANT size_t SIZE = VSize
 
static ETL_CONSTANT size_t ALIGNMENT = VAlignment
 
static ETL_CONSTANT size_t TYPE_SIZE = VTypeSize
 

Additional Inherited Members

- Protected Member Functions inherited from etl::ipool
 ipool (char *p_buffer_, uint32_t item_size_, uint32_t max_size_)
 Constructor.
 
 ~ipool ()
 Destructor.
 

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