LibJuno 0.42.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
juno_map.c File Reference
#include "juno/hash/hash_api.h"
#include "juno/macros.h"
#include "juno/map/map_impl.h"
#include "juno/memory/memory_api.h"
#include "juno/status.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for juno_map.c:

Functions

static JUNO_STATUS_T Verify (JUNO_MAP_T *ptJunoMap)
 
static JUNO_STATUS_T Juno_MapGetIndex (JUNO_MAP_T *ptJunoMap, JUNO_MEMORY_T tKey, size_t *pzRetSize, bool bShallEqual)
 
static JUNO_STATUS_T Juno_MapSet (JUNO_MAP_T *ptJunoMap, JUNO_MEMORY_T tKey, JUNO_MEMORY_T tValue)
 
static JUNO_STATUS_T Juno_MapRemove (JUNO_MAP_T *ptJunoMap, JUNO_MEMORY_T tKey)
 
static JUNO_STATUS_T Juno_MapGet (JUNO_MAP_T *ptJunoMap, JUNO_MEMORY_T tKey, JUNO_MEMORY_T *ptRetValue)
 
JUNO_STATUS_T JunoMap_ImplApi (JUNO_MAP_T *ptJunoMap, JUNO_HASH_T *ptHash, JUNO_MEMORY_T *ptKeyTable, JUNO_MEMORY_T *ptValueTable, size_t zCapacity, JUNO_MAP_KEY_EQUAL_FCN_T pfcnIsEqual, JUNO_FAILURE_HANDLER_T pfcnFailureHandler, JUNO_USER_DATA_T *pvFailureUserData)
 

Variables

static const JUNO_MAP_API_T tJunoMapImplApi
 

Function Documentation

◆ Juno_MapGet()

static JUNO_STATUS_T Juno_MapGet ( JUNO_MAP_T ptJunoMap,
JUNO_MEMORY_T  tKey,
JUNO_MEMORY_T ptRetValue 
)
static

◆ Juno_MapGetIndex()

static JUNO_STATUS_T Juno_MapGetIndex ( JUNO_MAP_T ptJunoMap,
JUNO_MEMORY_T  tKey,
size_t *  pzRetSize,
bool  bShallEqual 
)
inlinestatic

◆ Juno_MapRemove()

static JUNO_STATUS_T Juno_MapRemove ( JUNO_MAP_T ptJunoMap,
JUNO_MEMORY_T  tKey 
)
static

◆ Juno_MapSet()

static JUNO_STATUS_T Juno_MapSet ( JUNO_MAP_T ptJunoMap,
JUNO_MEMORY_T  tKey,
JUNO_MEMORY_T  tValue 
)
static

◆ JunoMap_ImplApi()

JUNO_STATUS_T JunoMap_ImplApi ( JUNO_MAP_T ptJunoMap,
JUNO_HASH_T ptHash,
JUNO_MEMORY_T ptKeyTable,
JUNO_MEMORY_T ptValueTable,
size_t  zCapacity,
JUNO_MAP_KEY_EQUAL_FCN_T  pfcnIsEqual,
JUNO_FAILURE_HANDLER_T  pfcnFailureHandler,
JUNO_USER_DATA_T pvFailureUserData 
)

◆ Verify()

static JUNO_STATUS_T Verify ( JUNO_MAP_T ptJunoMap)
inlinestatic

Variable Documentation

◆ tJunoMapImplApi

static const JUNO_MAP_API_T tJunoMapImplApi
static
Initial value:
=
{
.Set = Juno_MapSet,
.Remove = Juno_MapRemove,
.Get = Juno_MapGet
}
static JUNO_STATUS_T Juno_MapRemove(JUNO_MAP_T *ptJunoMap, JUNO_MEMORY_T tKey)
Definition juno_map.c:103
static JUNO_STATUS_T Juno_MapSet(JUNO_MAP_T *ptJunoMap, JUNO_MEMORY_T tKey, JUNO_MEMORY_T tValue)
Definition juno_map.c:90
static JUNO_STATUS_T Juno_MapGet(JUNO_MAP_T *ptJunoMap, JUNO_MEMORY_T tKey, JUNO_MEMORY_T *ptRetValue)
Definition juno_map.c:117