template<class KTYPE, class VTYPE> class GPMap: public GMapTemplate<KTYPE, GP<VTYPE>, GPBase>

Associative maps for smart-pointers.

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 for smart-pointers. Template class GMap<KTYPE,VTYPE> implements an associative map for key type KTYPE and value type GP<VTYPE> (see GSmartPointer.h). The map contains an arbitrary number of entries. Each entry is a pair containing one element of type KTYPE (named the "key") and one aelement of type VTYPE (named the "value"). The entry associated to a particular value of the key can retrieved very efficiently. Significantly smaller code sizes can be achieved by using this class instead of the more general GMap<KTYPE,GP<VTYPE>> (see GMap). 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.