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

ht_clist Class Reference

#include <htdata.h>

Inheritance diagram for ht_clist:

ht_list Object CommentList ht_log ht_queue ht_sorted_list ht_stack ht_string_list ht_text_editor_undo ht_project ht_sorted_string_list List of all members.

Public Member Functions

void init (compare_keys_func_ptr compare_keys=0)
virtual void done ()
virtual void destroy ()
virtual void append (Object *data)
virtual uint count ()
virtual ht_listcut (uint i, uint count)
virtual bool del (uint i)
virtual Objectduplicate ()
virtual void empty ()
virtual uint find (Object *data)
virtual Objectget (uint i)
virtual void insert (Object *data)
virtual void insert_after (Object *data, uint i)
virtual void insert_before (Object *data, uint i)
virtual int load (ht_object_stream *s)
virtual void move (uint source, uint dest)
virtual void move_multiple (uint source, uint dest, uint count)
virtual OBJECT_ID object_id () const
virtual void prepend (Object *data)
virtual Objectremove (uint i)
virtual bool set (uint i, Object *data)
virtual bool sort ()
virtual void store (ht_object_stream *s)

Protected Member Functions

void extend_list ()
void do_free (uint i)
void do_remove (uint i)

Protected Attributes

Object ** items
uint c_size
uint c_entry_count
uint enum_pos

Member Function Documentation

void ht_clist::append Object data  )  [virtual]
 

Reimplemented from ht_list.

Reimplemented in ht_sorted_list.

Definition at line 963 of file htdata.cc.

References c_entry_count, and insert_before().

Referenced by CommentList::appendPostComment(), CommentList::appendPreComment(), ht_ltextfile::cache_invd(), ht_queue::enqueue(), insert(), ht_text_editor_undo::insert_undo(), ht_stack::push(), ht_ltextfile::reread(), set(), and ht_ltextfile::set_layered_assume().

uint ht_clist::count  )  [virtual]
 

Reimplemented from ht_list.

Definition at line 968 of file htdata.cc.

References c_entry_count, and uint.

Referenced by ht_app::accept_close_all_windows(), XBEAnalyser::beginAnalysis(), PEAnalyser::beginAnalysis(), ht_ltextfile::cache_invd(), ht_project_listbox::calcCount(), do_idle(), ht_logviewer::draw(), ht_app::find_free_window_number(), AnalyserOutput::generateAddr(), ht_app::get_window_by_filename(), ht_app::get_window_by_number(), ht_app::get_window_by_type(), ht_app::get_window_listindex(), ht_project_listbox::getFirst(), ht_project_listbox::getLast(), ht_group_sub::getline(), AnalyserOutput::getLineCount(), ht_project_listbox::getNext(), ht_logviewer::handlemsg(), htpefimports_init(), ht_cluster::init(), ht_log::insertline(), ht_group_sub::last_line_id(), ht_mask_sub::last_line_id(), ht_ltextfile::linecount(), ht_group_sub::next_line_id(), ht_mask_sub::next_line_id(), Analyser::popAddress(), ht_app::popup_window_list(), ht_group_sub::prev_line_id(), ht_group_sub::ref(), ht_ltextfile::set_layered_assume(), ht_text_editor::show_protocol(), ht_aviewer::showComments(), and unregister_idle_object().

ht_list * ht_clist::cut uint  i,
uint  count
[virtual]
 

Reimplemented from ht_list.

Definition at line 973 of file htdata.cc.

References init(), insert(), items, ht_list::remove_multiple(), and uint.

bool ht_clist::del uint  i  )  [virtual]
 

Reimplemented from ht_list.

Definition at line 984 of file htdata.cc.

References c_entry_count, do_free(), do_remove(), and uint.

Referenced by ht_app::delete_window(), ht_log::deletefirstline(), ht_project_listbox::handlemsg(), and ht_text_editor_undo::insert_undo().

void ht_clist::destroy  )  [virtual]
 

Reimplemented from ht_list.

Definition at line 957 of file htdata.cc.

References done(), and empty().

Referenced by destroy_hist_atom(), ht_ltextfile::done(), ht_text_editor::done(), ht_object_stream_memmap::done(), ht_pe_il_viewer::done(), ht_pef::done(), ht_pe::done(), ht_mask_sub::done(), ht_format_group::done(), ht_cluster::done(), ht_app::done(), ht_logviewer::done(), Analyser::done(), done_app(), Analyser::freeComments(), ht_app::popup_view_list(), and OutAddr::~OutAddr().

void ht_clist::do_free uint  i  )  [protected]
 

Definition at line 994 of file htdata.cc.

References Object::done(), items, and uint.

Referenced by del(), empty(), and set().

void ht_clist::do_remove uint  i  )  [protected]
 

Definition at line 1002 of file htdata.cc.

References c_entry_count, items, and uint.

Referenced by del(), ht_queue::dequeue(), ht_stack::pop(), and remove().

void ht_clist::done  )  [virtual]
 

Reimplemented from ht_list.

Reimplemented in ht_project, and ht_sorted_list.

Definition at line 951 of file htdata.cc.

References ht_list::done(), and items.

Referenced by destroy(), ht_group_sub::done(), ht_dialog::done(), ht_sorted_list::done(), and done_idle().

Object * ht_clist::duplicate  )  [virtual]
 

Standard Object duplicator.

Returns:
copy of object

Reimplemented from Object.

Definition at line 1008 of file htdata.cc.

References c_entry_count, init(), insert(), items, and uint.

void ht_clist::empty  )  [virtual]
 

Reimplemented from ht_list.

Definition at line 1018 of file htdata.cc.

References c_entry_count, do_free(), and uint.

Referenced by ht_ltextfile::cache_invd(), OutAddr::clear(), destroy(), ht_ltextfile::reread(), and ht_ltextfile::set_layered_assume().

void ht_clist::extend_list  )  [protected]
 

Definition at line 1026 of file htdata.cc.

References c_entry_count, c_size, HT_CLIST_ENTRY_COUNT_EXT_DEN, HT_CLIST_ENTRY_COUNT_EXT_NUM, items, and malloc().

Referenced by insert_before().

uint ht_clist::find Object data  )  [virtual]
 

Reimplemented from ht_list.

Reimplemented in ht_sorted_list.

Definition at line 1036 of file htdata.cc.

References c_entry_count, ht_list::compare_keys, items, LIST_UNDEFINED, and uint.

Object * ht_clist::get uint  i  )  [virtual]
 

Reimplemented from ht_list.

Definition at line 1046 of file htdata.cc.

References c_entry_count, items, NULL, and uint.

Referenced by ht_app::accept_close_all_windows(), XBEAnalyser::beginAnalysis(), PEAnalyser::beginAnalysis(), ht_ltextfile::cache_invd(), ht_queue::dequeue(), do_idle(), ht_format_group::done_ifs(), ht_logviewer::draw(), ht_ltextfile::fetch_line(), ht_app::find_free_window_number(), ht_group_sub::first_line_id(), ht_sorted_string_list::get_string(), ht_string_list::get_string(), ht_app::get_window_by_filename(), ht_app::get_window_by_number(), ht_app::get_window_by_type(), ht_app::get_window_listindex(), ht_app::get_window_number(), OutAddr::getLine(), ht_group_sub::getline(), CommentList::getName(), ht_project_listbox::getStr(), ht_app::handlemsg(), ht_project_listbox::handlemsg(), htpefimports_init(), ht_text_editor_undo::insert_undo(), ht_group_sub::last_line_id(), move(), ht_group_sub::next_line_id(), ht_stack::pop(), ht_app::popup_view_list(), ht_app::popup_window_list(), ht_group_sub::prev_line_id(), ht_text_editor_undo::redo(), ht_group_sub::ref(), ht_xbe_import_viewer::select_entry(), ht_pe_import_viewer::select_entry(), ht_pe_export_viewer::select_entry(), ht_pe_dimport_viewer::select_entry(), ht_project_listbox::selectEntry(), ht_text_editor::show_protocol(), ht_text_editor_undo::undo(), and unregister_idle_object().

void ht_clist::init compare_keys_func_ptr  compare_keys = 0  ) 
 

Reimplemented from ht_list.

Reimplemented in ht_log, and ht_sorted_list.

Definition at line 943 of file htdata.cc.

References c_entry_count, c_size, compare_keys_func_ptr, HT_CLIST_ENTRY_COUNT_START, Object::init(), items, and malloc().

Referenced by build_vfs_list(), create_hist_atom(), cut(), duplicate(), ht_ltextfile::init(), ht_object_stream_memmap::init(), ht_ne::init(), ht_group_sub::init(), ht_format_group::init(), ht_dialog::init(), Analyser::init(), init_idle(), OutAddr::OutAddr(), and srt_x86_single().

void ht_clist::insert Object data  )  [virtual]
 

Reimplemented from ht_list.

Reimplemented in ht_sorted_list.

Definition at line 1052 of file htdata.cc.

References append().

Referenced by ht_mask_sub::add_mask(), ht_mask_sub::add_staticmask(), OutAddr::appendLine(), build_vfs_list(), cut(), duplicate(), ht_object_stream_memmap::duppa(), htpefimports_init(), ht_format_group::init_if(), ht_string_list::insert_string(), ht_log::insertline(), ht_group_sub::insertsub(), and register_idle_object().

void ht_clist::insert_after Object data,
uint  i
[virtual]
 

Reimplemented from ht_list.

Reimplemented in ht_sorted_list.

Definition at line 1057 of file htdata.cc.

References insert_before(), and uint.

void ht_clist::insert_before Object data,
uint  i
[virtual]
 

Reimplemented from ht_list.

Reimplemented in ht_sorted_list.

Definition at line 1062 of file htdata.cc.

References c_entry_count, c_size, extend_list(), items, and uint.

Referenced by append(), ht_sorted_list::insert(), insert_after(), ht_ltextfile::insert_lines(), and prepend().

int ht_clist::load ht_object_stream s  )  [virtual]
 

loads object from object stream.

Returns:
ht_stream errorcode

Reimplemented from Object.

Reimplemented in ht_project.

Definition at line 1075 of file htdata.cc.

References c_entry_count, c_size, compare_keys_func_ptr, find_atom(), ht_layer_stream::get_error(), ht_object_stream::getIntDec(), ht_object_stream::getIntHex(), ht_object_stream::getObject(), HT_CLIST_ENTRY_COUNT_START, items, malloc(), NULL, and prepend().

Referenced by ht_project::load().

void ht_clist::move uint  source,
uint  dest
[virtual]
 

Reimplemented from ht_list.

Reimplemented in ht_sorted_list.

Definition at line 1094 of file htdata.cc.

References c_entry_count, get(), items, and uint.

Referenced by move_multiple().

void ht_clist::move_multiple uint  source,
uint  dest,
uint  count
[virtual]
 

Reimplemented from ht_list.

Reimplemented in ht_sorted_list.

Definition at line 1104 of file htdata.cc.

References c_entry_count, move(), and uint.

OBJECT_ID ht_clist::object_id  )  const [virtual]
 

Returns:
unique object id.

Reimplemented from Object.

Reimplemented in ht_project.

Definition at line 1113 of file htdata.cc.

References ATOM_HT_CLIST.

void ht_clist::prepend Object data  )  [virtual]
 

Reimplemented from ht_list.

Reimplemented in ht_sorted_list.

Definition at line 1118 of file htdata.cc.

References insert_before().

Referenced by load().

Object * ht_clist::remove uint  i  )  [virtual]
 

Reimplemented from ht_list.

Definition at line 1123 of file htdata.cc.

References c_entry_count, do_remove(), items, NULL, and uint.

Referenced by unregister_idle_object().

bool ht_clist::set uint  i,
Object data
[virtual]
 

Reimplemented from ht_list.

Reimplemented in ht_sorted_list.

Definition at line 1133 of file htdata.cc.

References append(), c_entry_count, do_free(), items, NULL, and uint.

Referenced by ht_ne::init().

bool ht_clist::sort  )  [virtual]
 

Reimplemented from ht_list.

Definition at line 1141 of file htdata.cc.

References c_entry_count, items, qsort_compare(), and qsort_compare_compare_keys.

void ht_clist::store ht_object_stream s  )  [virtual]
 

stores object.

Reimplemented from Object.

Reimplemented in ht_project.

Definition at line 1150 of file htdata.cc.

References c_entry_count, find_atom_rev(), items, NULL, ht_object_stream::putIntDec(), ht_object_stream::putIntHex(), and ht_object_stream::putObject().

Referenced by ht_project::store().


Member Data Documentation

uint ht_clist::c_entry_count [protected]
 

Definition at line 227 of file htdata.h.

Referenced by append(), count(), del(), do_remove(), duplicate(), empty(), extend_list(), find(), get(), init(), insert_before(), load(), move(), move_multiple(), remove(), set(), sort(), and store().

uint ht_clist::c_size [protected]
 

Definition at line 227 of file htdata.h.

Referenced by extend_list(), init(), insert_before(), and load().

uint ht_clist::enum_pos [protected]
 

Definition at line 228 of file htdata.h.

Object** ht_clist::items [protected]
 

Definition at line 226 of file htdata.h.

Referenced by cut(), do_free(), do_remove(), done(), duplicate(), extend_list(), find(), get(), init(), insert_before(), load(), move(), remove(), set(), sort(), and store().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:15:57 2004 by doxygen 1.3.5