FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
hecmw_map_int.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "hecmw_util.h"
#include "hecmw_malloc.h"
#include "hecmw_config.h"
#include "hecmw_bit_array.h"
#include "hecmw_map_int.h"
Include dependency graph for hecmw_map_int.c:

Go to the source code of this file.

Enumerations

enum  { MAP_MAX_VAL_INIT = 1024, MAP_MAX_VAL_GROW = 2 }
 

Functions

int HECMW_map_int_init (struct hecmw_map_int *map, void(*free_fnc)(void *))
 
void HECMW_map_int_finalize (struct hecmw_map_int *map)
 
size_t HECMW_map_int_nval (const struct hecmw_map_int *map)
 
int HECMW_map_int_add (struct hecmw_map_int *map, int key, void *value)
 
size_t HECMW_map_int_check_dup (struct hecmw_map_int *map)
 
int HECMW_map_int_key2local (const struct hecmw_map_int *map, int key, size_t *local)
 
void * HECMW_map_int_get (const struct hecmw_map_int *map, int key)
 
void HECMW_map_int_iter_init (struct hecmw_map_int *map)
 
int HECMW_map_int_iter_next (struct hecmw_map_int *map, int *key, void **value)
 
int HECMW_map_int_mark_init (struct hecmw_map_int *map)
 
int HECMW_map_int_mark (struct hecmw_map_int *map, int key)
 
int HECMW_map_int_iter_next_unmarked (struct hecmw_map_int *map, int *key, void **value)
 
int HECMW_map_int_del_unmarked (struct hecmw_map_int *map)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAP_MAX_VAL_INIT 
MAP_MAX_VAL_GROW 

Definition at line 16 of file hecmw_map_int.c.

Function Documentation

◆ HECMW_map_int_add()

int HECMW_map_int_add ( struct hecmw_map_int map,
int  key,
void *  value 
)

Definition at line 122 of file hecmw_map_int.c.

◆ HECMW_map_int_check_dup()

size_t HECMW_map_int_check_dup ( struct hecmw_map_int map)

Definition at line 158 of file hecmw_map_int.c.

◆ HECMW_map_int_del_unmarked()

int HECMW_map_int_del_unmarked ( struct hecmw_map_int map)

Definition at line 343 of file hecmw_map_int.c.

◆ HECMW_map_int_finalize()

void HECMW_map_int_finalize ( struct hecmw_map_int map)

Definition at line 40 of file hecmw_map_int.c.

◆ HECMW_map_int_get()

void* HECMW_map_int_get ( const struct hecmw_map_int map,
int  key 
)

Definition at line 242 of file hecmw_map_int.c.

Here is the call graph for this function:

◆ HECMW_map_int_init()

int HECMW_map_int_init ( struct hecmw_map_int map,
void(*)(void *)  free_fnc 
)

Definition at line 18 of file hecmw_map_int.c.

◆ HECMW_map_int_iter_init()

void HECMW_map_int_iter_init ( struct hecmw_map_int map)

Definition at line 253 of file hecmw_map_int.c.

◆ HECMW_map_int_iter_next()

int HECMW_map_int_iter_next ( struct hecmw_map_int map,
int *  key,
void **  value 
)

Definition at line 262 of file hecmw_map_int.c.

Here is the caller graph for this function:

◆ HECMW_map_int_iter_next_unmarked()

int HECMW_map_int_iter_next_unmarked ( struct hecmw_map_int map,
int *  key,
void **  value 
)

Definition at line 314 of file hecmw_map_int.c.

Here is the call graph for this function:

◆ HECMW_map_int_key2local()

int HECMW_map_int_key2local ( const struct hecmw_map_int map,
int  key,
size_t *  local 
)

Definition at line 227 of file hecmw_map_int.c.

Here is the caller graph for this function:

◆ HECMW_map_int_mark()

int HECMW_map_int_mark ( struct hecmw_map_int map,
int  key 
)

Definition at line 300 of file hecmw_map_int.c.

Here is the call graph for this function:

◆ HECMW_map_int_mark_init()

int HECMW_map_int_mark_init ( struct hecmw_map_int map)

Definition at line 281 of file hecmw_map_int.c.

Here is the call graph for this function:

◆ HECMW_map_int_nval()

size_t HECMW_map_int_nval ( const struct hecmw_map_int map)

Definition at line 65 of file hecmw_map_int.c.