template<class KTYPE, class VTYPE> class GMap: public GMapTemplate<KTYPE, VTYPE, VTYPE>

Associative maps.

Inheritance:


Inherited from GMapTemplate:

Public Methods

oint size() const
oGPosition firstpos() const
o operator GPosition() const
oint isempty() const
oGPosition contains(const KTYPE &key) const
ovoid empty()
oconst KTYPE& key(const GPosition &pos) const
oVTYPE& operator[](const GPosition &pos)
oconst VTYPE& operator[](const GPosition &pos) const
oconst VTYPE& operator[](const KTYPE &key) const
oVTYPE& operator[](const KTYPE &key)
ovoid del(GPosition &pos)
ovoid del(const KTYPE &key)


Documentation

Associative maps. Template class GMap<KTYPE,VTYPE> implements an associative map. The 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"). The entry associated to a particular value of the key can retrieved very efficiently. This class only implement constructors. See class GMapTemplate and GPosition for a description of all access methods.

This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java


DjVu is a trademark of LizardTech, Inc.
All other products mentioned are registered trademarks or trademarks of their respective companies.