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

htdata.h File Reference

#include "common.h"

Go to the source code of this file.

Classes

struct  char_set
class  ht_clist
class  ht_data_mem
class  ht_data_ptr
class  ht_data_uint
class  ht_data_uint32
class  ht_dtree
class  ht_list
class  ht_queue
class  ht_sorted_list
class  ht_stack
class  ht_stree
class  ht_tree
struct  ht_tree_node
struct  int_hash

Defines

#define ATOM_HT_DATA_UINT   MAGICD("DAT\x00")
#define ATOM_HT_DATA_UINT32   MAGICD("DAT\x01")
#define ATOM_HT_DATA_MEM   MAGICD("DAT\x02")
#define ATOM_HT_STREE   MAGICD("DAT\x10")
#define ATOM_HT_CLIST   MAGICD("DAT\x11")
#define ATOM_COMPARE_KEYS_HT_DATA   MAGICD("DAT\x20")
#define ATOM_COMPARE_KEYS_INT   MAGICD("DAT\x21")
#define ATOM_COMPARE_KEYS_UINT   MAGICD("DAT\x22")
#define DEFAULT_MAX_UB_DELETE   500
#define DEFAULT_MAX_UB_INSERT   500
#define LIST_UNDEFINED   0xffffffff
#define CS_SETSIZE   256
#define CS_SET(n, p)   ((p)->char_bits[(n) / 8] |= (1 << ((n) & 7)))
#define CS_CLR(n, p)   ((p)->char_bits[(n) / 8] &= ~(1 << ((n) & 7)))
#define CS_ISSET(n, p)   ((p)->char_bits[(n) / 8] & (1 << ((n) & 7)))
#define CS_ZERO(p)   memset ((void *)(p), 0, sizeof (*(p)))
#define BITMAP(a0, a1, a2, a3, a4, a5, a6, a7)   (((a0)<<0) | ((a1)<<1) | ((a2)<<2) | ((a3)<<3) | ((a4)<<4) | ((a5)<<5) | ((a6)<<6) | ((a7)<<7))
#define BITBIT(bitmap, p)   ((bitmap)>>(p)&1)

Typedefs

typedef int(* compare_keys_func_ptr )(Object *key_a, Object *key_b)
typedef char_set char_set

Functions

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)
char * matchhash (int value, int_hash *hash_table)
bool init_data ()
void done_data ()


Define Documentation

#define ATOM_COMPARE_KEYS_HT_DATA   MAGICD("DAT\x20")
 

Definition at line 33 of file htdata.h.

Referenced by done_data(), and init_data().

#define ATOM_COMPARE_KEYS_INT   MAGICD("DAT\x21")
 

Definition at line 34 of file htdata.h.

Referenced by done_data(), and init_data().

#define ATOM_COMPARE_KEYS_UINT   MAGICD("DAT\x22")
 

Definition at line 35 of file htdata.h.

Referenced by done_data(), and init_data().

#define ATOM_HT_CLIST   MAGICD("DAT\x11")
 

Definition at line 31 of file htdata.h.

Referenced by done_data(), init_data(), and ht_clist::object_id().

#define ATOM_HT_DATA_MEM   MAGICD("DAT\x02")
 

Definition at line 28 of file htdata.h.

Referenced by done_data(), init_data(), and ht_data_mem::object_id().

#define ATOM_HT_DATA_UINT   MAGICD("DAT\x00")
 

Definition at line 26 of file htdata.h.

Referenced by done_data(), CommentList::getName(), init_data(), and ht_data_uint::object_id().

#define ATOM_HT_DATA_UINT32   MAGICD("DAT\x01")
 

Definition at line 27 of file htdata.h.

Referenced by done_data(), init_data(), and ht_data_uint32::object_id().

#define ATOM_HT_STREE   MAGICD("DAT\x10")
 

Definition at line 30 of file htdata.h.

Referenced by done_data(), init_data(), and ht_stree::object_id().

#define BITBIT bitmap,
 )     ((bitmap)>>(p)&1)
 

Definition at line 328 of file htdata.h.

Referenced by valid_char().

#define BITMAP a0,
a1,
a2,
a3,
a4,
a5,
a6,
a7   )     (((a0)<<0) | ((a1)<<1) | ((a2)<<2) | ((a3)<<3) | ((a4)<<4) | ((a5)<<5) | ((a6)<<6) | ((a7)<<7))
 

Definition at line 326 of file htdata.h.

#define CS_CLR n,
 )     ((p)->char_bits[(n) / 8] &= ~(1 << ((n) & 7)))
 

Definition at line 318 of file htdata.h.

#define CS_ISSET n,
 )     ((p)->char_bits[(n) / 8] & (1 << ((n) & 7)))
 

Definition at line 319 of file htdata.h.

#define CS_SET n,
 )     ((p)->char_bits[(n) / 8] |= (1 << ((n) & 7)))
 

Definition at line 317 of file htdata.h.

#define CS_SETSIZE   256
 

Definition at line 311 of file htdata.h.

#define CS_ZERO  )     memset ((void *)(p), 0, sizeof (*(p)))
 

Definition at line 320 of file htdata.h.

#define DEFAULT_MAX_UB_DELETE   500
 

Definition at line 162 of file htdata.h.

#define DEFAULT_MAX_UB_INSERT   500
 

Definition at line 163 of file htdata.h.

#define LIST_UNDEFINED   0xffffffff
 

Definition at line 189 of file htdata.h.

Referenced by ht_app::delete_window(), ht_sorted_list::find(), ht_clist::find(), ht_list::find(), ht_sorted_string_list::get_string(), ht_app::get_window_listindex(), and insert_history_entry().


Typedef Documentation

typedef struct char_set char_set
 

typedef int(* compare_keys_func_ptr)(Object *key_a, Object *key_b)
 

Definition at line 37 of file htdata.h.

Referenced by ht_sorted_list::init(), ht_clist::init(), ht_list::init(), ht_dtree::init(), ht_stree::init(), ht_tree::init(), ht_log::init(), ht_clist::load(), ht_stree::load(), ht_dtree::set_compare_keys(), ht_stree::set_compare_keys(), and ht_tree::set_compare_keys().


Function Documentation

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, value, and int_hash::value.

Referenced by ht_uformat_viewer::render_tagstring_desc().


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