4#include <unordered_map>
14 template<
class Key,
class Value>
39 void Add(
const Key& _key,
const Value& _value)
83 if (index != lastIndex)
107 operator std::vector<Value>& ()
Definition SparseSet.hpp:16
std::vector< Key > indexToKey
denseをループ処理するときにkeyがほしい時などに使うやつ
Definition SparseSet.hpp:31
void Add(const Key &_key, const Value &_value)
配列の追加
Definition SparseSet.hpp:39
std::unordered_map< Key, unsigned int > sparseContainer
疎な配列、keyを引数としてvalue配列の引数を取得する
Definition SparseSet.hpp:21
Value & operator[](Key _key)
Definition SparseSet.hpp:112
void Erase(const Key &_key)
_key要素を削除する
Definition SparseSet.hpp:64
std::vector< Value > denseContainer
密な配列、実際のバリューが格納される
Definition SparseSet.hpp:26
Definition Accessor.hpp:110