52 void Rehash(
size_t buckets);
57 void Insert(
const void* input_keys,
58 const void* input_values,
66 const Tensor& input_values,
73 void Activate(
const void* input_keys,
88 void Find(
const void* input_keys,
102 void Erase(
const void* input_keys,
bool* output_masks,
size_t count);
115 const bool* input_masks,
124 const bool* input_masks,
125 const void* input_values,
146 std::shared_ptr<DefaultDeviceHashmap> device_hashmap_;
size_t Size() const
Definition: Hashmap.cpp:219
void Rehash(size_t buckets)
Definition: Hashmap.cpp:55
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t timeout_in_ms capture_handle capture_handle capture_handle image_handle temperature_c k4a_image_t image_handle uint8_t image_handle image_handle image_handle image_handle uint32_t
Definition: K4aPlugin.cpp:554
Device GetDevice() const
Definition: Hashmap.h:143
void UnpackIterators(const iterator_t *input_iterators, const bool *input_masks, void *output_keys, void *output_values, size_t count)
Definition: Hashmap.cpp:202
void Erase(const void *input_keys, bool *output_masks, size_t count)
Definition: Hashmap.cpp:174
Hashmap(size_t init_capacity, Dtype dtype_key, Dtype dtype_val, const Device &device)
Definition: Hashmap.cpp:45
void AssertKeyDtype(const Dtype &dtype_key) const
Definition: Hashmap.cpp:227
static const Dtype Undefined
Definition: Dtype.h:41
int count
Definition: FilePCD.cpp:61
~Hashmap()
Definition: Hashmap.h:45
void AssertValueDtype(const Dtype &dtype_val) const
Definition: Hashmap.cpp:235
Dtype GetKeyDtype() const
Definition: Hashmap.h:140
Definition: PinholeCameraIntrinsic.cpp:35
Dtype GetValueDtype() const
Definition: Hashmap.h:141
void Insert(const void *input_keys, const void *input_values, iterator_t *output_iterators, bool *output_masks, size_t count)
Definition: Hashmap.cpp:59
float LoadFactor() const
Return size / bucket_count.
Definition: Hashmap.cpp:225
void AssignIterators(iterator_t *input_iterators, const bool *input_masks, const void *input_values, size_t count)
Definition: Hashmap.cpp:211
std::vector< size_t > BucketSizes() const
Definition: Hashmap.cpp:221
void Find(const void *input_keys, iterator_t *output_iterators, bool *output_masks, size_t count)
Definition: Hashmap.cpp:140
size_t GetIterators(iterator_t *output_iterators)
Parallel collect all iterators in the hash table.
Definition: Hashmap.cpp:198
void Activate(const void *input_keys, iterator_t *output_iterators, bool *output_masks, size_t count)
Definition: Hashmap.cpp:106
static constexpr uint32_t kDefaultElemsPerBucket
Definition: Hashmap.h:37