XenevaOS
Loading...
Searching...
No Matches
Functions
hashmap.cpp File Reference
#include <hashmap.h>
#include <string.h>
#include <_null.h>
#include <Mm\kmalloc.h>
Include dependency graph for hashmap.cpp:

Functions

unsigned int hashmap_string_hash (const void *_key)
 
int hashmap_string_comp (const void *a, const void *b)
 
void * hashmap_string_dupe (const void *key)
 
unsigned int hashmap_int_hash (const void *key)
 
int hashmap_int_comp (const void *a, const void *b)
 
void * hashmap_int_dupe (const void *key)
 
hashmap_tAuHashmapCreate (int size)
 
hashmap_tAuHashmapCreateInt (int size)
 
void * AuHashmapSet (hashmap_t *map, const void *key, void *value)
 
void * AuHashmapGet (hashmap_t *map, const void *key)
 
void * AuHashmapRemove (hashmap_t *map, const void *key)
 
int AuHashmapHas (hashmap_t *map, const void *key)
 
void AuHashmapFree (hashmap_t *map)
 
int AuHashmapIsEmpty (hashmap_t *map)
 

Function Documentation

◆ AuHashmapCreate()

hashmap_t * AuHashmapCreate ( int  size)

◆ AuHashmapCreateInt()

hashmap_t * AuHashmapCreateInt ( int  size)

◆ AuHashmapFree()

void AuHashmapFree ( hashmap_t map)

◆ AuHashmapGet()

void * AuHashmapGet ( hashmap_t map,
const void *  key 
)

◆ AuHashmapHas()

int AuHashmapHas ( hashmap_t map,
const void *  key 
)

◆ AuHashmapIsEmpty()

int AuHashmapIsEmpty ( hashmap_t map)

◆ AuHashmapRemove()

void * AuHashmapRemove ( hashmap_t map,
const void *  key 
)

◆ AuHashmapSet()

void * AuHashmapSet ( hashmap_t map,
const void *  key,
void *  value 
)

◆ hashmap_int_comp()

int hashmap_int_comp ( const void *  a,
const void *  b 
)

◆ hashmap_int_dupe()

void * hashmap_int_dupe ( const void *  key)

◆ hashmap_int_hash()

unsigned int hashmap_int_hash ( const void *  key)

◆ hashmap_string_comp()

int hashmap_string_comp ( const void *  a,
const void *  b 
)

◆ hashmap_string_dupe()

void * hashmap_string_dupe ( const void *  key)

◆ hashmap_string_hash()

unsigned int hashmap_string_hash ( const void *  _key)

BSD 2-Clause License

Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.