Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ constraint_solver/

operations_research::RevImmutableMultiMap< K, V > Class Template Reference

Immutable Multi Map. More...

#include <constraint_solveri.h>

List of all members.

Public Member Functions

 RevImmutableMultiMap (Solver *const solver, int initial_size)
 ~RevImmutableMultiMap ()
int num_items () const
bool ContainsKey (const K &key) const
 Returns true if the multi-map contains at least one instance of 'key'.
const V & FindWithDefault (const K &key, const V &default_value) const
 Returns one value attached to 'key', or 'defaut_value' if 'key' is not in the multi-map.
void Insert (const K &key, const V &value)
 Inserts (key, value) in the multi-map.

Classes

class  Cell


Detailed Description

template<class K, class V>
class operations_research::RevImmutableMultiMap< K, V >

Immutable Multi Map.

Reversible Immutable MultiMap class. Represents an immutable multi-map that backstracks with the solver.

Definition at line 297 of file constraint_solveri.h.


Constructor & Destructor Documentation

template<class K, class V>
operations_research::RevImmutableMultiMap< K, V >::RevImmutableMultiMap ( Solver *const   solver,
int  initial_size 
) [inline]

Definition at line 299 of file constraint_solveri.h.

template<class K, class V>
operations_research::RevImmutableMultiMap< K, V >::~RevImmutableMultiMap (  )  [inline]

Definition at line 307 of file constraint_solveri.h.


Member Function Documentation

template<class K, class V>
int operations_research::RevImmutableMultiMap< K, V >::num_items (  )  const [inline]

Definition at line 309 of file constraint_solveri.h.

template<class K, class V>
bool operations_research::RevImmutableMultiMap< K, V >::ContainsKey ( const K &  key  )  const [inline]

Returns true if the multi-map contains at least one instance of 'key'.

Definition at line 312 of file constraint_solveri.h.

template<class K, class V>
const V& operations_research::RevImmutableMultiMap< K, V >::FindWithDefault ( const K &  key,
const V &  default_value 
) const [inline]

Returns one value attached to 'key', or 'defaut_value' if 'key' is not in the multi-map.

The actual value returned if more than one values is attached to the same key is not specified.

Definition at line 327 of file constraint_solveri.h.

template<class K, class V>
void operations_research::RevImmutableMultiMap< K, V >::Insert ( const K &  key,
const V &  value 
) [inline]

Inserts (key, value) in the multi-map.

Definition at line 340 of file constraint_solveri.h.


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