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::Key< K, T > Class Template Reference

#include </home/casse/otawa/elm/src/concepts.h>

Public Types

typedef K key_t
 

Static Public Member Functions

static const K & key (const T &value)
 

Detailed Description

template<class K, class T>
class elm::concept::Key< K, T >

This class are used for data whose only a part represents an identifier when comparison must be done.

Parameters
KType of the key.
TType of the item.

Implemented by:

  • elm::Id<T>
  • elm::PairAdapter<K, T>

Member Typedef Documentation

template<class K , class T >
typedef K elm::concept::Key< K, T >::key_t

Type of the key.

Member Function Documentation

template<class K , class T >
static const K& elm::concept::Key< K, T >::key ( const T &  value)
static

Get the key from a value.

Parameters
valueValue to get the key of.
Returns
Key of the current value.

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