Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include </home/casse/Dev/elm/src/genstruct.h>
Public Types | |
typedef void | key_t |
typedef void | val_t |
typedef void | data_t |
Public Member Functions | |
const key_t & | key (const data_t &data) |
const val_t & | value (const data_t &data) |
val_t & | ref (data_t &data) |
For sorted data, adapter classes (elm/adapter.h) allows to separate in the stored object the key part from the value part. This allows sorted container to adapt themselves easily to the concept of sets and maps.
Existing
Get the key of corresponding data.
data | Concerned data. |
Get a reference on the value part of data.
data | Concerned data. |
Get the value of the corresponding data.
data | Concerned data. |