Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Adapter Class Reference

#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_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_t

typedef void data_t

Data type itself.

◆ key_t

typedef void key_t

Type of the part of data used as a key.

◆ val_t

typedef void val_t

Type of the part of data used as a value.

Member Function Documentation

◆ key()

const key_t& key ( const data_t data)

Get the key of corresponding data.

Parameters
dataConcerned data.
Returns
Matching key.

◆ ref()

val_t& ref ( data_t data)

Get a reference on the value part of data.

Parameters
dataConcerned data.
Returns
Matching value reference.

◆ value()

const val_t& 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: