Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBpair Class Template Reference

Wrapper class for key-value pairs. More...

#include <CTBpair.hxx>

Inheritance diagram for CTBpair:

Inheritance graph
[legend]
Collaboration diagram for CTBpair:

Collaboration graph
[legend]
List of all members.

Public Methods

 CTBpair ()
 CTBpair (const K &key)
 CTBpair (const K &key, const V &value)
KKey ()
const KKey () const
VValue ()
const VValue () const

Private Attributes

K m_key
V m_value

Detailed Description

template<class K, class V>
class CTBpair< K, V >

Wrapper class for key-value pairs.

The class CTBpair represents a pair of two entities of types K and V. It is mainly used in associative containers like CTBmap, therefore the first terminology: key of type K for the first and value of type V for the second member of the pair.

Definition at line 17 of file CTBpair.hxx.


Constructor & Destructor Documentation

template<class K, class V>
CTBpair< K, V >::CTBpair [inline]
 

Default constructor.

Definition at line 27 of file CTBpair.icc.

template<class K, class V>
CTBpair< K, V >::CTBpair const K & key [inline]
 

Construct from key only.

Definition at line 34 of file CTBpair.icc.

template<class K, class V>
CTBpair< K, V >::CTBpair const K & key,
const V & value
[inline]
 

Construct from key and value.

Definition at line 42 of file CTBpair.icc.


Member Function Documentation

template<class K, class V>
K & CTBpair< K, V >::Key [inline]
 

Access key.

Definition at line 51 of file CTBpair.icc.

Referenced by CTBmap::Insert(), and CTBmapNode::Key().

template<class K, class V>
const K & CTBpair< K, V >::Key const [inline]
 

Constant access key.

Definition at line 60 of file CTBpair.icc.

template<class K, class V>
V & CTBpair< K, V >::Value [inline]
 

Access value.

Definition at line 69 of file CTBpair.icc.

Referenced by CTBmapNode::Value().

template<class K, class V>
const V & CTBpair< K, V >::Value const [inline]
 

Constant access value.

Definition at line 78 of file CTBpair.icc.


Member Data Documentation

template<class K, class V>
K CTBpair::m_key [private]
 

the key object.

Definition at line 30 of file CTBpair.hxx.

template<class K, class V>
V CTBpair::m_value [private]
 

the value object.

Definition at line 31 of file CTBpair.hxx.


The documentation for this class was generated from the following files:
Generated at Fri Oct 24 18:13:58 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001