Template Class SparseMap

Inheritance Relationships

Base Type

Class Documentation

template<typename Key, typename Value>
class SparseMap : public kahypar::SparseMapBase<Key, Value, SparseMap<Key, Value>>

Public Functions

inline explicit SparseMap(const Key max_size, const Value initial_value = 0)
SparseMap(const SparseMap&) = delete
SparseMap &operator=(const SparseMap &other) = delete
inline SparseMap(SparseMap &&other)
inline SparseMap &operator=(SparseMap &&other)
~SparseMap() = default
inline void remove(const Key key)

Private Types

using Base = SparseMapBase<Key, Value, SparseMap<Key, Value>>

Private Functions

inline bool containsImpl(const Key key) const
inline void addImpl(const Key key, const Value value)
inline void clearImpl()

Private Members

friend Base