7 #ifndef BALL_DATATYPE_STRINGHASHMAP_H 8 #define BALL_DATATYPE_STRINGHASHMAP_H 14 #ifndef BALL_COMMON_HASH_H 18 #ifndef BALL_CONCEPT_VISITOR_H 22 #ifndef BALL_CONCEPT_PROCESSOR_H 26 #ifndef BALL_DATATYPE_HASHMAP_H 39 template <
typename Value>
113 for ( ; it != hash_map.end(); ++it)
135 std::swap(*
this, hash_map);
231 visitor.visit(*
this);
238 #ifdef BALL_COMPILER_MSVC 244 #endif // BALL_DATATYPE_HASHMAP_H #define BALL_CREATE(name)
Base::const_iterator ConstIterator
const StringHashMap & operator=(const StringHashMap &hash_map)
Assign a hash map from another.
::std::pair< Iterator, bool > insert(const String &key, const Value &value)
bool operator==(const StringHashMap< Value > &hash_map) const
void swap(StringHashMap &hash_map)
Swaps the contents of two hash maps.
StringHashMap(const StringHashMap &map)
bool has(const String &key) const
bool operator==(const HashMap< Key, T > &rhs) const
Equality operator. Check whether two two hashmaps contain the same elements. O(n) runtime...
-*- Mode: C++; tab-width: 2; -*-
void set(const StringHashMap &hash_map)
bool operator!=(const StringHashMap< Value > &hash_map) const
Base::value_type ValueType
void host(Visitor< StringHashMap< Value > > &visitor)
std::pair< Iterator, bool > insert(const ValueType &obj)
HashMap class based on the STL map (containing serveral convenience functions)