LDK::Hash< Key, Data, Alloc >::DataProxy Class Reference

Returned by an "[]" operator to allow transparent getting and setting of keys/value pairs.

#include <LDK/Hash.h>

Collaboration diagram for LDK::Hash< Key, Data, Alloc >::DataProxy:

Collaboration graph
[legend]

Public Member Functions

 DataProxy (Hash &h, const Key &k)
void operator= (const Data &value)
 operator Data ()

Detailed Description

template<class Key, class Data, template< class > class Alloc = Allocator>
class LDK::Hash< Key, Data, Alloc >::DataProxy

Definition at line 523 of file Hash.h.


Member Function Documentation

template<class Key, class Data, template< class > class Alloc = Allocator>
void LDK::Hash< Key, Data, Alloc >::DataProxy::operator= ( const Data &  value  )  [inline]

Sets tha data associated with mKey

Parameters:
value The value to associate with mKey

Definition at line 533 of file Hash.h.

template<class Key, class Data, template< class > class Alloc = Allocator>
LDK::Hash< Key, Data, Alloc >::DataProxy::operator Data (  )  [inline]

Gets the data associated with mKey via an implicit type conversion

Returns:
The value associated with mKey
Exceptions:
IndexError if the key does not exist in the Hash.

Definition at line 538 of file Hash.h.

References LDK_INDEX_ERROR.


The documentation for this class was generated from the following file:
Generated on Fri Aug 17 18:32:27 2007 for LDK by  doxygen 1.5.1