C++ Reference
C++ Reference: Routing
Detailed Description
template<class K, class V>
class operations_research::RevImmutableMultiMap< K, V >
Reversible Immutable MultiMap class.
Represents an immutable multi-map that backtracks with the solver.
Definition at line 288 of file constraint_solveri.h.
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'. More... | |
const V & | FindWithDefault (const K &key, const V &default_value) const |
Returns one value attached to 'key', or 'default_value' if 'key' is not in the multi-map. More... | |
void | Insert (const K &key, const V &value) |
Inserts (key, value) in the multi-map. More... | |
Constructor & Destructor Documentation
◆ RevImmutableMultiMap()
|
inline |
Definition at line 290 of file constraint_solveri.h.
◆ ~RevImmutableMultiMap()
|
inline |
Definition at line 298 of file constraint_solveri.h.
Member Function Documentation
◆ ContainsKey()
|
inline |
Returns true if the multi-map contains at least one instance of 'key'.
Definition at line 303 of file constraint_solveri.h.
◆ FindWithDefault()
|
inline |
Returns one value attached to 'key', or 'default_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 318 of file constraint_solveri.h.
◆ Insert()
|
inline |
Inserts (key, value) in the multi-map.
Definition at line 331 of file constraint_solveri.h.
◆ num_items()
|
inline |
Definition at line 300 of file constraint_solveri.h.
The documentation for this class was generated from the following file: