Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include </home/casse/otawa/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
typedef void elm::concept::Adapter::data_t |
Data type itself.
typedef void elm::concept::Adapter::key_t |
Type of the part of data used as a key.
typedef void elm::concept::Adapter::val_t |
Type of the part of data used as a value.
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. |