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