|
Embedded Template Library 1.0
|
Public Member Functions | |
| factory () | |
| Default constructor. | |
| template<typename T > | |
| T * | create_from_type () |
| Creates the object. Default constructor. | |
| template<typename T , typename TP1 > | |
| T * | create_from_type (const TP1 &p1) |
| Creates the object. One parameter constructor. | |
| template<typename T , typename TP1 , typename TP2 > | |
| T * | create_from_type (const TP1 &p1, const TP2 &p2) |
| Creates the object. Two parameter constructor. | |
| template<typename T , typename TP1 , typename TP2 , typename TP3 > | |
| T * | create_from_type (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_from_type (const TP1 &p1, const TP2 &p2, const TP3 &p3, const TP4 &p4) |
| Creates the object. Four parameter constructor. | |
| template<size_t ID> | |
| lookup_t::template type_from_id< ID >::type * | create_from_id () |
| Creates the object from an index. Default constructor. | |
| template<size_t ID, typename TP1 > | |
| lookup_t::template type_from_id< ID >::type * | create_from_id (const TP1 &p1) |
| Creates the object from an index. One parameter constructor. | |
| template<size_t ID, typename TP1 , typename TP2 > | |
| lookup_t::template type_from_id< ID >::type * | create_from_id (const TP1 &p1, const TP2 &p2) |
| Creates the object from an index. Two parameter constructor. | |
| template<size_t ID, typename TP1 , typename TP2 , typename TP3 > | |
| lookup_t::template type_from_id< ID >::type * | create_from_id (const TP1 &p1, const TP2 &p2, const TP3 &p3) |
| Creates the object from an index. Three parameter constructor. | |
| template<size_t ID, typename TP1 , typename TP2 , typename TP3 , typename TP4 > | |
| lookup_t::template type_from_id< ID >::type * | create_from_id (const TP1 &p1, const TP2 &p2, const TP3 &p3, const TP4 &p4) |
| Creates the object from an index. Three 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 factory. | |
| size_t | available () const |
| Returns the number of free items in the factory. | |
| size_t | size () const |
| Returns the number of allocated items in the factory. | |
| bool | empty () const |
| bool | full () const |
Static Public Attributes | |
| static const size_t | MAX_SIZE = MAX_SIZE_ |
|
inline |
Checks to see if there are no allocated items in the factory.
|
inline |
Checks to see if there are no free items in the factory.