Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::concept::Adapter Class Reference

#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_tkey (const data_t &data)
 
const val_tvalue (const data_t &data)
 
val_tref (data_t &data)
 

Detailed Description

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

Member Typedef Documentation

Data type itself.

Type of the part of data used as a key.

Type of the part of data used as a value.

Member Function Documentation

const key_t& elm::concept::Adapter::key ( const data_t data)

Get the key of corresponding data.

Parameters
dataConcerned data.
Returns
Matching key.
val_t& elm::concept::Adapter::ref ( data_t data)

Get a reference on the value part of data.

Parameters
dataConcerned data.
Returns
Matching value reference.
const val_t& elm::concept::Adapter::value ( const data_t data)

Get the value of the corresponding data.

Parameters
dataConcerned data.
Returns
Matching value.

The documentation for this class was generated from the following file: