• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kviewshell

GMapImpl< K, TI > Class Template Reference

#include <GContainer.h>

Inheritance diagram for GMapImpl< K, TI >:

Inheritance graph
[legend]

List of all members.


Protected Types

typedef GCONT MapNode< K, TI > MNode

Protected Member Functions

Associative Maps
These template classes implements a associative maps.

The associative map contains an arbitrary number of entries. Each entry is a pair containing one element of type KTYPE# (named the "key") and one element of type VTYPE# (named the "value"). All entries have distinct keys. These template class must be able to access the following functions: {itemize} a VTYPE# default constructor VTYPE::VTYPE()#, a VTYPE# copy constructor VTYPE::VTYPE(const VTYPE &)#, optionally a VTYPE# destructor VTYPE::~VTYPE()#, a KTYPE# default constructor KTYPE::KTYPE()#, a KTYPE# copy constructor KTYPE::KTYPE(const KTYPE &)#, optionally a KTYPE# destructor KTYPE::~KTYPE()#, a KTYPE# comparison operator KTYPE::operator==(const KTYPE &)#, and a KTYPE# hashing function hash(const KTYPE&)#. {itemize} The hashing function must return an unsigned int# number. Multiple invocations of the hashing function with equal arguments (in the sense of KTYPE::operator==#) must always return the same number. Position objects (see {GPosition}) may be used to iterate over the entries contained by an associative map. Associative maps.

GCONT HNode * get_or_create (const K &key)
 GMapImpl (const GCONT Traits &traits)
 GMapImpl ()

Detailed Description

template<class K, class TI>
class GMapImpl< K, TI >

Definition at line 1101 of file GContainer.h.


Member Typedef Documentation

template<class K, class TI>
typedef GCONT MapNode<K,TI> GMapImpl< K, TI >::MNode [protected]

Definition at line 1106 of file GContainer.h.


Constructor & Destructor Documentation

template<class K , class TI >
GMapImpl< K, TI >::GMapImpl (  )  [inline, protected]

Definition at line 1111 of file GContainer.h.

template<class K , class TI >
GMapImpl< K, TI >::GMapImpl ( const GCONT Traits &  traits  )  [inline, protected]

Definition at line 1117 of file GContainer.h.


Member Function Documentation

template<class K, class TI >
GCONT HNode * GMapImpl< K, TI >::get_or_create ( const K &  key  )  [inline, protected]

Reimplemented from GSetImpl< K >.

Definition at line 1123 of file GContainer.h.


The documentation for this class was generated from the following file:
  • GContainer.h

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal