![]() |
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 |
References EquivManager< T, E, A >::alloc.
|
inlinestatic |
|
inline |
References EquivManager< T, E, A >::eq.
References EquivManager< T, E, A >::alloc, and elm::io::p().
| A& alloc |
Referenced by EquivManager< T, E, A >::allocate(), and EquivManager< T, E, A >::free().
| E& eq |
Referenced by EquivManager< T, E, A >::equals().