abc-master
|
Go to the source code of this file.
Data Structures | |
struct | Hash_Gen_Entry_t_ |
struct | Hash_Gen_t_ |
Macros | |
#define | Hash_GenForEachEntry(pHash, pEntry, bin) |
MACRO DEFINITIONS ///. More... | |
Typedefs | |
typedef typedefABC_NAMESPACE_HEADER_START struct Hash_Gen_t_ | Hash_Gen_t |
INCLUDES ///. More... | |
typedef struct Hash_Gen_Entry_t_ | Hash_Gen_Entry_t |
typedef int(* | Hash_GenHashFunction_t )(void *key, int nBins) |
typedef int(* | Hash_GenCompFunction_t )(void *key, void *data) |
Functions | |
static int | Hash_DefaultHashFuncStr (void *key, int nBins) |
FUNCTION DEFINITIONS ///. More... | |
static int | Hash_DefaultCmpFuncStr (void *key1, void *key2) |
static int | Hash_DefaultHashFuncInt (void *key, int nBins) |
static int | Hash_DefaultCmpFuncInt (void *key1, void *key2) |
static Hash_Gen_t * | Hash_GenAlloc (int nBins, int(*Hash_FuncHash)(void *, int), int(*Hash_FuncComp)(void *, void *), int fFreeKey) |
static int | Hash_GenExists (Hash_Gen_t *p, void *key) |
static void | Hash_GenWriteEntry (Hash_Gen_t *p, void *key, void *data) |
static Hash_Gen_Entry_t * | Hash_GenEntry (Hash_Gen_t *p, void *key, int fCreate) |
static void * | Hash_GenRemove (Hash_Gen_t *p, void *key) |
static void | Hash_GenFree (Hash_Gen_t *p) |
#define Hash_GenForEachEntry | ( | pHash, | |
pEntry, | |||
bin | |||
) |
typedef struct Hash_Gen_Entry_t_ Hash_Gen_Entry_t |
typedef typedefABC_NAMESPACE_HEADER_START struct Hash_Gen_t_ Hash_Gen_t |
INCLUDES ///.
CFile****************************************************************
FileName [vecGen.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Hash maps.]
Synopsis [Hash maps.]
Author [Aaron P. Hurst, Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - Jan 26, 2011.]
Revision [
]PARAMETERS ///BASIC TYPES ///
typedef int(* Hash_GenCompFunction_t)(void *key, void *data) |
typedef int(* Hash_GenHashFunction_t)(void *key, int nBins) |
|
static |
|
static |
|
static |
Function*************************************************************
Synopsis [Default hash function for (long) integers.]
Description []
SideEffects []
SeeAlso []
|
static |
|
inlinestatic |
Function*************************************************************
Synopsis [Allocates a hash map with the given number of bins.]
Description []
SideEffects []
SeeAlso []
Definition at line 150 of file hashGen.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Finds or creates an entry with a key.]
Description [fCreate specifies whether a new entry should be created.]
SideEffects []
SeeAlso []
Definition at line 253 of file hashGen.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Returns 1 if a key already exists.]
Description []
SideEffects []
SeeAlso []
Definition at line 179 of file hashGen.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Frees the hash.]
Description []
SideEffects []
SeeAlso []
Definition at line 337 of file hashGen.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Deletes an entry.]
Description [Returns data, if there was any.]
SideEffects []
SeeAlso []
Definition at line 296 of file hashGen.h.
|
inlinestatic |
Function*************************************************************
Synopsis [Finds or creates an entry with a key and writes value.]
Description []
SideEffects []
SeeAlso []
Definition at line 210 of file hashGen.h.