![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/data/Manager.h>
Public Types | |
typedef E | equiv_t |
typedef A | alloc_t |
Public Member Functions | |
EquivManager (E &e=single< E >(), A &a=A::DEFAULT) | |
bool | equals (const T &v1, const T &v2) const |
void * | allocate (t::size size) const |
void | free (t::ptr p) const |
Static Public Member Functions | |
static EquivManager< T, E, A > & | def () |
Public Attributes | |
E & | eq |
A & | alloc |
This class is used to control the work of container classes (see Data Structures) supporting lookup based on Equiv test. It embeds two control objects:
It is easily customized by changing the type parameters and by passing objects to the constructor.
T | Type of managed data. |
E | Equivalence class (default to Equiv<T>). |
A | Allocation class (default to DefaultAllocator). |
typedef A alloc_t |
typedef E equiv_t |
|
inline |
|
inlinestatic |
|
inline |
A& alloc |
Referenced by EquivManager< T >::allocate(), and EquivManager< T >::free().
E& eq |
Referenced by EquivManager< T >::equals().