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);
154 ::std::pair<Iterator, bool>
insert(
const String& key,
const Value& value)
231 visitor.visit(*
this);
238 #ifdef BALL_COMPILER_MSVC
#define BALL_CREATE(name)
HashMap class based on the STL map (containing serveral convenience functions)
bool operator==(const HashMap< Key, T > &rhs) const
Equality operator. Check whether two two hashmaps contain the same elements. O(n) runtime.
StringHashMap(const StringHashMap &map)
bool remove(const String &key)
void host(Visitor< StringHashMap< Value > > &visitor)
HashMap< String, Value >::ValueType ValueType
const StringHashMap & operator=(const StringHashMap &hash_map)
Assign a hash map from another.
void set(const StringHashMap &hash_map)
bool has(const String &key) const
std::pair< Iterator, bool > insert(const ValueType &obj)
HashMap< String, Value >::Iterator Iterator
void get(StringHashMap &hash_map) const
Assigns the content of a hash map to 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.
HashMap< String, Value >::ConstIterator ConstIterator
bool operator==(const StringHashMap< Value > &hash_map) const