Generated on Mon Aug 25 11:35:54 2008 for Gecode by doxygen 1.5.6

Gecode::Support::Map< Key, Value > Class Template Reference

Inherited by Gecode::Support::PtrMap< P, Value >, Gecode::Support::SymbolMap< Value >, Gecode::Support::PtrMap< Gecode::VarImpBase, Gecode::Support::Symbol >, Gecode::Support::PtrMap< Gecode::VarImpBase, int >, Gecode::Support::PtrMap< void, int >, Gecode::Support::SymbolMap< Arg *(* >, Gecode::Support::SymbolMap< Gecode::VarImpBase * >, Gecode::Support::SymbolMap< std::ostream &(* >, Gecode::Support::SymbolMap< VarImpBase *(* >, and Gecode::Support::SymbolMap< void(* >.

List of all members.


Detailed Description

template<class Key, class Value>
class Gecode::Support::Map< Key, Value >

Hash map.

This class is used as a symbol table. Key objects must have a hash function (see String class as an example).

Definition at line 46 of file map.icc.


Public Member Functions

 Map (void)
 Constructor.
void put (const Key &k, Value v)
 Insert v at key k.
bool get (const Key &k, Value &v) const
 Check if entry with key k exists and return it in v.
 ~Map (void)
 Destructor.

Constructor & Destructor Documentation

template<class Key, class Value>
Gecode::Support::Map< Key, Value >::Map ( void   )  [inline]

Constructor.

Definition at line 123 of file map.icc.

template<class Key, class Value>
Gecode::Support::Map< Key, Value >::~Map ( void   )  [inline]

Destructor.

Definition at line 199 of file map.icc.


Member Function Documentation

template<class Key, class Value>
void Gecode::Support::Map< Key, Value >::put ( const Key &  k,
Value  v 
) [inline]

Insert v at key k.

Definition at line 162 of file map.icc.

template<class Key, class Value>
bool Gecode::Support::Map< Key, Value >::get ( const Key &  k,
Value &  v 
) const [inline]

Check if entry with key k exists and return it in v.

Definition at line 181 of file map.icc.


The documentation for this class was generated from the following file: