Blender  V3.3
Public Member Functions | List of all members
blender::HashTableStats Class Reference

#include <BLI_hash_tables.hh>

Public Member Functions

template<typename HashTable , typename Keys >
 HashTableStats (const HashTable &hash_table, const Keys &keys)
 
void print (StringRef name="")
 

Detailed Description

Definition at line 258 of file BLI_hash_tables.hh.

Constructor & Destructor Documentation

◆ HashTableStats()

template<typename HashTable , typename Keys >
blender::HashTableStats::HashTableStats ( const HashTable &  hash_table,
const Keys &  keys 
)
inline

Requires that the hash table has the following methods:

  • count_collisions(key) -> int64_t
  • size() -> int64_t
  • capacity() -> int64_t
  • removed_amount() -> int64_t
  • size_per_element() -> int64_t
  • size_in_bytes() -> int64_t

Definition at line 283 of file BLI_hash_tables.hh.

References blender::Vector< T, InlineBufferCapacity, Allocator >::append_n_times(), float(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().

Member Function Documentation

◆ print()

void blender::HashTableStats::print ( StringRef  name = "")
inline

The documentation for this class was generated from the following file: