hudson::KeyValue< Key, Value > Struct Template Reference

#include <FastHash.h>

List of all members.

Public Types

typedef Pair< Key &, Value & > ref
typedef Pair< const Key &,
const Value & > 
const_ref

Public Member Functions

 KeyValue (const Key &k)
 operator ref ()
 operator const_ref () const
 operator const Key & () const
bool operator== (const Key &k) const
bool operator!= (const Key &k) const

Public Attributes

Key key_
Value value_

Classes

struct  Pair


Detailed Description

template<typename Key, typename Value>
struct hudson::KeyValue< Key, Value >

A templated key/value pair. This is set up to handle the case of Value being void. The generic class has it be non-void. We can cast to ref and const_ref, which return the pair; or to const Key&, which returns just the key.


Member Typedef Documentation

template<typename Key, typename Value>
typedef Pair<const Key&, const Value&> hudson::KeyValue< Key, Value >::const_ref
 

template<typename Key, typename Value>
typedef Pair<Key&, Value&> hudson::KeyValue< Key, Value >::ref
 


Constructor & Destructor Documentation

template<typename Key, typename Value>
hudson::KeyValue< Key, Value >::KeyValue const Key &  k  )  [inline]
 


Member Function Documentation

template<typename Key, typename Value>
hudson::KeyValue< Key, Value >::operator const Key &  )  const [inline]
 

template<typename Key, typename Value>
hudson::KeyValue< Key, Value >::operator const_ref  )  const [inline]
 

template<typename Key, typename Value>
hudson::KeyValue< Key, Value >::operator ref  )  [inline]
 

template<typename Key, typename Value>
bool hudson::KeyValue< Key, Value >::operator!= const Key &  k  )  const [inline]
 

template<typename Key, typename Value>
bool hudson::KeyValue< Key, Value >::operator== const Key &  k  )  const [inline]
 


Member Data Documentation

template<typename Key, typename Value>
Key hudson::KeyValue< Key, Value >::key_
 

template<typename Key, typename Value>
Value hudson::KeyValue< Key, Value >::value_
 


The documentation for this struct was generated from the following file:
Generated on Thu Mar 27 19:04:16 2008 by  doxygen 1.4.6