17 #ifndef JUBATUS_CORE_STORAGE_LSH_VECTOR_HPP_
18 #define JUBATUS_CORE_STORAGE_LSH_VECTOR_HPP_
24 #include "jubatus/util/data/unordered_map.h"
41 int get(
size_t pos)
const;
42 void set(
size_t pos,
int value);
80 const char* p =
reinterpret_cast<const char*
>(&lv.
values_[0]);
81 const size_t len = lv.
size() *
sizeof(lv.
values_[0]);
82 const char*
const end = p + len;
84 uint64_t x = 14695981039346656037ull;
86 x *= 1099511628211ull;
87 x ^=
static_cast<uint64_t
>(*p++);
97 #endif // JUBATUS_CORE_STORAGE_LSH_VECTOR_HPP_
lsh_vector slice(size_t from, size_t len) const
bool operator==(const lsh_vector &lv) const
void debug_print(std::ostream &os) const
lsh_vector cut(size_t from, size_t len) const
void resize_and_clear(size_t sz)
uint64_t operator()(const jubatus::core::storage::lsh_vector &lv) const
void swap(lsh_vector &l, lsh_vector &r)
void set(size_t pos, int value)
void push_back(int value)
void swap(lsh_vector &lv)
std::ostream & operator<<(std::ostream &os, const version &v)
std::vector< int > values_
bool operator!=(const lsh_vector &lv) const