From 88580c78ee9bbe1882388d162cefc76ee878ef01 Mon Sep 17 00:00:00 2001 From: Graham Date: Mon, 24 Apr 2017 06:16:37 -0400 Subject: [PATCH] HashMap: Add properties for HashMapFind* functions --- lithos_c/inc/Lth_hashmap.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lithos_c/inc/Lth_hashmap.h b/lithos_c/inc/Lth_hashmap.h index 3c95712..e987507 100644 --- a/lithos_c/inc/Lth_hashmap.h +++ b/lithos_c/inc/Lth_hashmap.h @@ -43,6 +43,13 @@ static inline void Lth_HashMapDestroy(struct Lth_HashMap *map); static inline void Lth_HashMapAlloc(struct Lth_HashMap *map, size_t count); static inline void Lth_HashMapBuild(struct Lth_HashMap *map); +static inline void *Lth_HashMapFind_hash(struct Lth_HashMap *map, size_t key); +static inline void *Lth_HashMapFind_wchar(struct Lth_HashMap *map, + wchar_t const *key); +static inline void *Lth_HashMapFind_str(struct Lth_HashMap *map, + char __str_ars const *key); +static inline void *Lth_HashMapFind_char(struct Lth_HashMap *map, + char const *key); // Type Definitions ----------------------------------------------------------| @@ -74,6 +81,10 @@ typedef struct Lth_HashMap __prop destroy {call: Lth_HashMapDestroy(this)} __prop alloc {call: Lth_HashMapAlloc (this)} __prop build {call: Lth_HashMapBuild (this)} + __prop findhash {call: Lth_HashMapFind_hash (this)} + __prop findwchr {call: Lth_HashMapFind_wchar(this)} + __prop find_str {call: Lth_HashMapFind_str (this)} + __prop findcstr {call: Lth_HashMapFind_char (this)} } Lth_HashMap;