My Project
programmer's documentation
Functions
cs_map.c File Reference
#include "cs_defs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_base.h"
#include "cs_map.h"
Include dependency graph for cs_map.c:

Functions

cs_map_name_to_id_tcs_map_name_to_id_create (void)
 
void cs_map_name_to_id_destroy (cs_map_name_to_id_t **m)
 
int cs_map_name_to_id (cs_map_name_to_id_t *m, const char *key)
 
int cs_map_name_to_id_try (const cs_map_name_to_id_t *m, const char *key)
 
const char * cs_map_name_to_id_reverse (const cs_map_name_to_id_t *m, size_t id)
 
size_t cs_map_name_to_id_size (const cs_map_name_to_id_t *m)
 
const char * cs_map_name_to_id_key (const cs_map_name_to_id_t *m, size_t index)
 

Function Documentation

◆ cs_map_name_to_id()

int cs_map_name_to_id ( cs_map_name_to_id_t m,
const char *  key 
)

◆ cs_map_name_to_id_create()

cs_map_name_to_id_t* cs_map_name_to_id_create ( void  )

◆ cs_map_name_to_id_destroy()

void cs_map_name_to_id_destroy ( cs_map_name_to_id_t **  m)

◆ cs_map_name_to_id_key()

const char* cs_map_name_to_id_key ( const cs_map_name_to_id_t m,
size_t  index 
)

◆ cs_map_name_to_id_reverse()

const char* cs_map_name_to_id_reverse ( const cs_map_name_to_id_t m,
size_t  id 
)

◆ cs_map_name_to_id_size()

size_t cs_map_name_to_id_size ( const cs_map_name_to_id_t m)

◆ cs_map_name_to_id_try()

int cs_map_name_to_id_try ( const cs_map_name_to_id_t m,
const char *  key 
)