Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htdata.cc File Reference

#include "htatom.h"
#include "htdata.h"
#include "htdebug.h"
#include "stream.h"
#include "tools.h"
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Defines

#define NEW_TREE_ENUM
#define HT_CLIST_ENTRY_COUNT_START   32
#define HT_CLIST_ENTRY_COUNT_EXT_NUM   3
#define HT_CLIST_ENTRY_COUNT_EXT_DEN   2

Functions

int qsort_compare (const void *e1, const void *e2)
int qsort_compare_keys_tree_node (const void *e1, const void *e2)
void stree_load (ht_object_stream *s, ht_tree_node **n, uint *node_count, int l, int r)
char * matchhash (int value, int_hash *hash_table)
int compare_keys_ht_data (Object *key_a, Object *key_b)
int compare_keys_int (Object *key_a, Object *key_b)
int compare_keys_uint (Object *key_a, Object *key_b)
 BUILDER (ATOM_HT_DATA_UINT, ht_data_uint)
 BUILDER (ATOM_HT_DATA_MEM, ht_data_mem)
 BUILDER (ATOM_HT_STREE, ht_stree)
 BUILDER (ATOM_HT_CLIST, ht_clist)
bool init_data ()
void done_data ()

Variables

int(* qsort_compare_compare_keys )(Object *key_a, Object *key_b)


Define Documentation

#define HT_CLIST_ENTRY_COUNT_EXT_DEN   2
 

Definition at line 941 of file htdata.cc.

Referenced by ht_clist::extend_list().

#define HT_CLIST_ENTRY_COUNT_EXT_NUM   3
 

Definition at line 940 of file htdata.cc.

Referenced by ht_clist::extend_list().

#define HT_CLIST_ENTRY_COUNT_START   32
 

Definition at line 937 of file htdata.cc.

Referenced by ht_clist::init(), and ht_clist::load().

#define NEW_TREE_ENUM
 

Definition at line 30 of file htdata.cc.


Function Documentation

BUILDER ATOM_HT_CLIST  ,
ht_clist 
 

BUILDER ATOM_HT_STREE  ,
ht_stree 
 

BUILDER ATOM_HT_DATA_MEM  ,
ht_data_mem 
 

BUILDER ATOM_HT_DATA_UINT  ,
ht_data_uint 
 

int compare_keys_ht_data Object key_a,
Object key_b
 

Definition at line 1344 of file htdata.cc.

References Object::compareTo().

Referenced by Analyser::addXRef(), Analyser::assignXRef(), class_read(), and init_data().

int compare_keys_int Object key_a,
Object key_b
 

Definition at line 1349 of file htdata.cc.

Referenced by init_data().

int compare_keys_uint Object key_a,
Object key_b
 

Definition at line 1357 of file htdata.cc.

References uint.

Referenced by ht_reloc_file::init(), init_atom(), and init_data().

void done_data  ) 
 

Definition at line 1394 of file htdata.cc.

References ATOM_COMPARE_KEYS_HT_DATA, ATOM_COMPARE_KEYS_INT, ATOM_COMPARE_KEYS_UINT, ATOM_HT_CLIST, ATOM_HT_DATA_MEM, ATOM_HT_DATA_UINT, ATOM_HT_DATA_UINT32, ATOM_HT_STREE, UNREGISTER, and unregister_atom().

bool init_data  ) 
 

Definition at line 1375 of file htdata.cc.

References ATOM_COMPARE_KEYS_HT_DATA, ATOM_COMPARE_KEYS_INT, ATOM_COMPARE_KEYS_UINT, ATOM_HT_CLIST, ATOM_HT_DATA_MEM, ATOM_HT_DATA_UINT, ATOM_HT_DATA_UINT32, ATOM_HT_STREE, compare_keys_ht_data(), compare_keys_int(), compare_keys_uint(), REGISTER, and register_atom().

char* matchhash int  value,
int_hash hash_table
 

Definition at line 1329 of file htdata.cc.

References int_hash::desc, NULL, int_hash::value, and value.

Referenced by ht_uformat_viewer::render_tagstring_desc().

int qsort_compare const void *  e1,
const void *  e2
 

Definition at line 34 of file htdata.cc.

References qsort_compare_compare_keys.

Referenced by ht_clist::sort().

int qsort_compare_keys_tree_node const void *  e1,
const void *  e2
 

Definition at line 41 of file htdata.cc.

References ht_tree_node::key, and qsort_compare_compare_keys.

Referenced by ht_dtree::set_compare_keys(), and ht_stree::set_compare_keys().

void stree_load ht_object_stream s,
ht_tree_node **  n,
uint node_count,
int  l,
int  r
 

Definition at line 509 of file htdata.cc.

References ht_object_stream::getObject(), NULL, and uint.

Referenced by ht_stree::load().


Variable Documentation

int(* qsort_compare_compare_keys)(Object *key_a, Object *key_b)
 

Definition at line 32 of file htdata.cc.

Referenced by qsort_compare(), qsort_compare_keys_tree_node(), ht_dtree::set_compare_keys(), ht_stree::set_compare_keys(), and ht_clist::sort().


Generated on Fri May 7 21:15:48 2004 by doxygen 1.3.5