Back to index

php5  5.3.10
Classes | Defines | Typedefs | Enumerations | Functions
st.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  st_hash_type
struct  st_table

Defines

#define ST_DATA_T_DEFINED
#define st_is_member(table, key)   st_lookup(table,key,(st_data_t *)0)
#define _(args)   args
#define ANYARGS
#define ST_NUMCMP   ((int (*)()) 0)
#define ST_NUMHASH   ((int (*)()) -2)
#define st_numcmp   ST_NUMCMP
#define st_numhash   ST_NUMHASH

Typedefs

typedef unsigned long st_data_t
typedef struct st_table

Enumerations

enum  st_retval { ST_CONTINUE, ST_STOP, ST_DELETE, ST_CHECK }

Functions

st_table *st_init_table _ ((struct st_hash_type *))
st_table *st_init_table_with_size _ ((struct st_hash_type *, int))
st_table *st_init_numtable _ ((void))
st_table
*st_init_numtable_with_size 
_ ((int))
int st_delete _ ((st_table *, st_data_t *, st_data_t *))
int st_delete_safe _ ((st_table *, st_data_t *, st_data_t *, st_data_t))
int st_insert _ ((st_table *, st_data_t, st_data_t))
int st_lookup _ ((st_table *, st_data_t, st_data_t *))
int st_foreach _ ((st_table *, int(*)(ANYARGS), st_data_t))
void st_free_table _ ((st_table *))
void st_cleanup_safe _ ((st_table *, st_data_t))

Class Documentation

struct st_table

Definition at line 19 of file st.h.

Collaboration diagram for st_table:
Class Members
struct st_table_entry ** bins
int num_bins
int num_entries
struct st_hash_type * type

Define Documentation

#define _ (   args)    args

Definition at line 31 of file st.h.

#define ANYARGS

Definition at line 37 of file st.h.

Definition at line 10 of file st.h.

#define st_is_member (   table,
  key 
)    st_lookup(table,key,(st_data_t *)0)

Definition at line 26 of file st.h.

#define ST_NUMCMP   ((int (*)()) 0)

Definition at line 57 of file st.h.

#define st_numcmp   ST_NUMCMP

Definition at line 60 of file st.h.

#define ST_NUMHASH   ((int (*)()) -2)

Definition at line 58 of file st.h.

#define st_numhash   ST_NUMHASH

Definition at line 61 of file st.h.


Typedef Documentation

typedef unsigned long st_data_t

Definition at line 9 of file st.h.

typedef struct st_table

Definition at line 12 of file st.h.


Enumeration Type Documentation

enum st_retval
Enumerator:
ST_CONTINUE 
ST_STOP 
ST_DELETE 
ST_CHECK 

Definition at line 28 of file st.h.


Function Documentation

st_table* st_init_table _ ( (struct st_hash_type *)  )
st_table *st_init_strtable _ ( (void)  )
st_table *st_copy _ ( (st_table *)  )