class TMDDAssociation

template class TMDDAssociation More...

Definition#include <classlib/include/classlib/assoc.h>
Template formTMDDAssociation<class K,class V>
Inherited byTCAssoc, TDDAssociation, TDIAssociation, TIDAssociation, TIIAssociation, TMDIAssociation, TMIDAssociation, TMIIAssociation
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

template class TMDDAssociation

Managed association (direct key, direct value)

Implements a binding of a key (K) and value (V). Assumes that K has a HashValue() member function or a global function with the following prototype exists:

unsigned HashValue( K& );

 TMDDAssociation ()

TMDDAssociation

 TMDDAssociation ( const K& k, const V& v )

TMDDAssociation

unsigned  HashValue ()

HashValue

[const]

return the hash value of this association; pratically the hash value of the key value

const K&  Key ()

Key

[const]

const V&  Value ()

Value

[const]

int  operator == (const TMDDAssociation & a)

operator ==

[const]

convenience operator; compare the key of the association

void  DeleteElements ()

DeleteElements

K KeyData

KeyData

[protected]

V ValueData

ValueData

[protected]


Generated by: nicola on gulliver.wadahome.it on Sun May 25 13:54:34 2003, using kdoc 2.0a53.