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(* >.
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] |
template<class Key, class Value>
Gecode::Support::Map< Key, Value >::~Map | ( | void | ) | [inline] |
Member Function Documentation
template<class Key, class Value>
void Gecode::Support::Map< Key, Value >::put | ( | const Key & | k, | |
Value | v | |||
) | [inline] |
template<class Key, class Value>
bool Gecode::Support::Map< Key, Value >::get | ( | const Key & | k, | |
Value & | v | |||
) | const [inline] |
The documentation for this class was generated from the following file:
- gecode/support/map.icc (Revision: 5654)