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

or-tools/src/base/map-util.h File Reference

#include <utility>

Go to the source code of this file.

Namespaces

namespace  operations_research

Functions

template<class Collection>
const
Collection::value_type::second_type & 
operations_research::FindWithDefault (const Collection &collection, const typename Collection::value_type::first_type &key, const typename Collection::value_type::second_type &value)
 Perform a lookup in a map or hash_map.
template<class Collection>
const
Collection::value_type::second_type * 
operations_research::FindOrNull (const Collection &collection, const typename Collection::value_type::first_type &key)
 Perform a lookup in a map or hash_map.
template<class Collection>
Collection::value_type::second_type * operations_research::FindOrNull (Collection &collection, const typename Collection::value_type::first_type &key)
 Perform a lookup in a map or hash_map.
template<class Collection>
const
Collection::value_type::second_type 
operations_research::FindPtrOrNull (const Collection &collection, const typename Collection::value_type::first_type &key)
 Perform a lookup in a map or hash_map whose values are pointers.
template<class Collection, class Key, class Value>
bool operations_research::InsertOrUpdate (Collection *const collection, const Key &key, const Value &value)
 Change the value associated with a particular key in a map or hash_map.
template<class Collection, class Key, class Value>
bool operations_research::InsertIfNotPresent (Collection *const collection, const Key &key, const Value &value)
 Insert a new key and value into a map or hash_map.
template<class Collection>
void operations_research::InsertOrDie (Collection *const collection, const typename Collection::value_type &value)
 Inserts a new pair<key,value> into a map or hash_map.
template<class Collection>
void operations_research::InsertOrDie (Collection *const collection, const typename Collection::value_type::first_type &key, const typename Collection::value_type::second_type &data)
 Inserts a new key/value into a map or hash_map.
template<class Collection, class Key, class Value>
bool operations_research::FindCopy (const Collection &collection, const Key &key, Value *const value)
 Perform a lookup in map or hash_map.
template<class Collection, class Key>
bool operations_research::ContainsKey (const Collection &collection, const Key &key)
 Test to see if a set, map, hash_set or hash_map contains a particular key.
template<class Collection>
const
Collection::value_type::second_type & 
operations_research::FindOrDie (const Collection &collection, const typename Collection::value_type::first_type &key)