mCRL2
Loading...
Searching...
No Matches
hash_table3 Class Reference

#include <sim_hashtable.h>

Public Member Functions

 hash_table3 (std::size_t initsize)
 
 ~hash_table3 ()
 
void clear ()
 
void add (std::size_t x, std::size_t y, std::size_t z)
 
bool find (std::size_t x, std::size_t y, std::size_t z)
 
void remove (std::size_t x, std::size_t y, std::size_t z)
 
std::size_t get_num_elements ()
 

Private Member Functions

std::size_t hash (std::size_t x, std::size_t y, std::size_t z)
 
std::size_t hfind (std::size_t h, std::size_t x, std::size_t y, std::size_t z)
 
bool check_table ()
 

Private Attributes

std::vector< bucket3buckets
 
std::vector< std::size_t > table
 
std::size_t mask
 
std::size_t removed_count
 

Friends

class hash_table3_iterator
 

Detailed Description

Definition at line 84 of file sim_hashtable.h.

Constructor & Destructor Documentation

◆ hash_table3()

hash_table3::hash_table3 ( std::size_t  initsize)

Definition at line 188 of file sim_hashtable.cpp.

◆ ~hash_table3()

hash_table3::~hash_table3 ( )

Definition at line 199 of file sim_hashtable.cpp.

Member Function Documentation

◆ add()

void hash_table3::add ( std::size_t  x,
std::size_t  y,
std::size_t  z 
)

Definition at line 209 of file sim_hashtable.cpp.

◆ check_table()

bool hash_table3::check_table ( )
private

Definition at line 283 of file sim_hashtable.cpp.

◆ clear()

void hash_table3::clear ( )

Definition at line 202 of file sim_hashtable.cpp.

◆ find()

bool hash_table3::find ( std::size_t  x,
std::size_t  y,
std::size_t  z 
)

Definition at line 228 of file sim_hashtable.cpp.

◆ get_num_elements()

std::size_t hash_table3::get_num_elements ( )
inline

Definition at line 93 of file sim_hashtable.h.

◆ hash()

std::size_t hash_table3::hash ( std::size_t  x,
std::size_t  y,
std::size_t  z 
)
private

Definition at line 305 of file sim_hashtable.cpp.

◆ hfind()

std::size_t hash_table3::hfind ( std::size_t  h,
std::size_t  x,
std::size_t  y,
std::size_t  z 
)
private

Definition at line 267 of file sim_hashtable.cpp.

◆ remove()

void hash_table3::remove ( std::size_t  x,
std::size_t  y,
std::size_t  z 
)

Definition at line 233 of file sim_hashtable.cpp.

Friends And Related Symbol Documentation

◆ hash_table3_iterator

friend class hash_table3_iterator
friend

Definition at line 107 of file sim_hashtable.h.

Member Data Documentation

◆ buckets

std::vector<bucket3> hash_table3::buckets
private

Definition at line 99 of file sim_hashtable.h.

◆ mask

std::size_t hash_table3::mask
private

Definition at line 101 of file sim_hashtable.h.

◆ removed_count

std::size_t hash_table3::removed_count
private

Definition at line 102 of file sim_hashtable.h.

◆ table

std::vector<std::size_t> hash_table3::table
private

Definition at line 100 of file sim_hashtable.h.


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