pair Struct Template Reference

#include <rc_hash_map.h>

List of all members.


Detailed Description

template<class T1, class T2>
struct ReChannel::internals::hash_map::pair< T1, T2 >

the value type used by hash (multi)maps.

pair is a reimplementation of class std::pair. A custom pair is needed, because boost::multi_index only possesses constant iterators. To enable non-constant accesses to the second data element it has to be declared "mutable".

Definition at line 63 of file rc_hash_map.h.


Public Types

typedef T1 first_type
typedef T2 second_type

Public Member Functions

 pair ()
 pair (const T1 &f, const T2 &s)
 pair (const std::pair< T1, T2 > &p)
 o () const

Public Attributes

T1 first
T2 second

Member Typedef Documentation

typedef T1 first_type

Definition at line 65 of file rc_hash_map.h.

typedef T2 second_type

Definition at line 66 of file rc_hash_map.h.


Constructor & Destructor Documentation

pair (  )  [inline]

Definition at line 68 of file rc_hash_map.h.

pair ( const T1 &  f,
const T2 &  s 
) [inline]

Definition at line 71 of file rc_hash_map.h.

pair ( const std::pair< T1, T2 > &  p  )  [inline]

Definition at line 74 of file rc_hash_map.h.


Member Function Documentation

o (  )  const [inline]

Definition at line 78 of file rc_hash_map.h.


Member Data Documentation

T1 first

Definition at line 81 of file rc_hash_map.h.

Referenced by pair::o().

T2 second [mutable]

Definition at line 82 of file rc_hash_map.h.

Referenced by pair::o().


The documentation for this struct was generated from the following file:
Generated on Tue Jan 1 23:14:16 2008 for ReChannel by  doxygen 1.5.3