HPCToolkit
HashTable.hpp File Reference
#include <cstdarg>
#include <sys/types.h>
#include <include/uint.h>
#include "HashTableSortedIterator.hpp"
Include dependency graph for HashTable.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HashTable
 
class  HashTableIterator
 

Typedefs

typedef void(* AddEntryFunctPtr) (void *, void *, va_list)
 
typedef void(* DeleteEntryFunctPtr) (void *, va_list)
 
typedef uint(* HashFunctFunctPtr) (const void *, const uint)
 
typedef uint(* RehashFunctFunctPtr) (const uint, const uint)
 
typedef int(* EntryCompareFunctPtr) (const void *, const void *)
 
typedef void(* EntryCleanupFunctPtr) (void *)
 

Functions

uint IntegerHashFunct (const int value, const uint size)
 
uint IntegerRehashHashFunct (const uint oldHashValue, const uint size)
 
int IntegerEntryCompare (const int value1, const int value2)
 
uint StringHashFunct (const void *entry, const uint size)
 
uint StringRehashFunct (const uint oldHashValue, const uint size)
 
int StringEntryCompare (const void *entry1, const void *entry2)
 

Typedef Documentation

◆ AddEntryFunctPtr

typedef void(* AddEntryFunctPtr) (void *, void *, va_list)

Definition at line 288 of file HashTable.hpp.

◆ DeleteEntryFunctPtr

typedef void(* DeleteEntryFunctPtr) (void *, va_list)

Definition at line 291 of file HashTable.hpp.

◆ EntryCleanupFunctPtr

typedef void(* EntryCleanupFunctPtr) (void *)

Definition at line 303 of file HashTable.hpp.

◆ EntryCompareFunctPtr

typedef int(* EntryCompareFunctPtr) (const void *, const void *)

Definition at line 300 of file HashTable.hpp.

◆ HashFunctFunctPtr

typedef uint(* HashFunctFunctPtr) (const void *, const uint)

Definition at line 294 of file HashTable.hpp.

◆ RehashFunctFunctPtr

typedef uint(* RehashFunctFunctPtr) (const uint, const uint)

Definition at line 297 of file HashTable.hpp.

Function Documentation

◆ IntegerEntryCompare()

int IntegerEntryCompare ( const int  value1,
const int  value2 
)

Definition at line 810 of file HashTable.cpp.

◆ IntegerHashFunct()

uint IntegerHashFunct ( const int  value,
const uint  size 
)

Definition at line 795 of file HashTable.cpp.

◆ IntegerRehashHashFunct()

uint IntegerRehashHashFunct ( const uint  oldHashValue,
const uint  size 
)

Definition at line 802 of file HashTable.cpp.

◆ StringEntryCompare()

int StringEntryCompare ( const void *  entry1,
const void *  entry2 
)

Definition at line 843 of file HashTable.cpp.

◆ StringHashFunct()

uint StringHashFunct ( const void *  entry,
const uint  size 
)

Definition at line 817 of file HashTable.cpp.

◆ StringRehashFunct()

uint StringRehashFunct ( const uint  oldHashValue,
const uint  size 
)

Definition at line 835 of file HashTable.cpp.