#include <ODYNARR.H>
Inheritance diagram for DynArray:
Definition at line 34 of file ODYNARR.H.
Definition at line 17 of file ODYNARR.CPP.
References block_num, body_buf, cur_pos, ele_num, ele_size, last_ele, mem_add, and sort_offset.
Definition at line 34 of file ODYNARR.CPP.
References deinit().
Definition at line 249 of file ODYNARR.CPP.
References block_num, body_buf, cur_pos, ele_num, ele_size, last_ele, and resize().
Referenced by DepartmentArray::read_file(), and DynArrayB::read_ptr_array().
[inline]
Definition at line 204 of file ODYNARR.H.
References cur_pos.
Perform a bubble sort on the array.
int(*fcmp)(const void*, const void*) cmpFun = the pointer to the comparsion function
Definition at line 432 of file ODYNARR.CPP.
Definition at line 377 of file ODYNARR.CPP.
References block_num, body_buf, cur_pos, ele_size, free_ptr(), last_ele, and resize().
Definition at line 334 of file ODYNARR.CPP.
References get(), and NULL.
Referenced by scan().
Reimplemented in DepartmentArray, FirmArray, GameFileArray, NewsArray, StuDynArray, SpriteArray, and TaskArray.
Definition at line 42 of file ODYNARR.CPP.
References body_buf, mem_del, and NULL.
Referenced by ~DynArray().
Definition at line 191 of file ODYNARR.H.
References cur_pos, and last_ele.
Referenced by pop().
Definition at line 395 of file ODYNARR.CPP.
References mem_del.
Referenced by clean_up().
Definition at line 195 of file ODYNARR.H.
Definition at line 123 of file ODYNARR.H.
References body_buf, ele_size, last_ele, and NULL.
Definition at line 116 of file ODYNARR.H.
References body_buf, cur_pos, ele_size, and NULL.
Referenced by StudentArray::add(), FacultyArray::add(), CourseArray::add(), compare(), StudentArray::del(), StudentArray::is_deleted(), FacultyArray::is_deleted(), linkin_sort_scan_from_bottom(), TaskArray::operator[](), StudentArray::operator[](), NewsArray::operator[](), MAOPArray::operator[](), GameFileArray::operator[](), FacultyArray::operator[](), Directory::operator[](), CourseArray::operator[](), read(), scan_whole(), and FacultyRes::summary_report_1().
Definition at line 147 of file ODYNARR.H.
Definition at line 140 of file ODYNARR.H.
Referenced by DepartmentArray::add(), StudentArray::del(), SpriteArray::del(), FirmArray::is_deleted(), DepartmentArray::is_deleted(), FirmArray::operator()(), FirmArray::operator[](), DepartmentArray::operator[](), SpriteArray::process(), DepartmentArray::read_file(), DynArrayB::read_ptr_array(), and DynArrayB::write_ptr_array().
Definition at line 227 of file ODYNARR.H.
Initialize sorting parameters before using linkin_sort & resort
<int> sortOffset : offset of the sorting variable <char> sortType : SORT_CHAR_PTR = <char*> SORT_CHAR_STR = <char[]> SORT_INT = <int> SORT_SHORT = <short> SORT_CHAR = <char>
Definition at line 516 of file ODYNARR.CPP.
Definition at line 141 of file ODYNARR.CPP.
References block_num, body_buf, cur_pos, ele_num, ele_size, last_ele, linkin(), NULL, resize(), and size().
Definition at line 171 of file ODYNARR.CPP.
References block_num, body_buf, ele_num, ele_size, err_when, last_ele, linkin(), NULL, resize(), and size().
Referenced by linkin_sort_scan_from_bottom().
Definition at line 248 of file ODYNARR.H.
Definition at line 244 of file ODYNARR.H.
Definition at line 217 of file ODYNARR.H.
Reimplemented in DynArrayB.
Definition at line 103 of file ODYNARR.CPP.
References block_num, body_buf, cur_pos, ele_num, ele_size, last_ele, NULL, and resize().
Referenced by insert(), insert_at(), linkin_unique(), and push().
Definition at line 540 of file ODYNARR.CPP.
References err_when, get(), insert_at(), last_ele, SORT_CHAR, SORT_CHAR_PTR, SORT_CHAR_STR, SORT_INT, sort_offset, and SORT_SHORT.
Definition at line 122 of file ODYNARR.CPP.
References body_buf, ele_size, last_ele, and linkin().
Definition at line 201 of file ODYNARR.CPP.
Referenced by StuDynArray::deinit(), and pop().
Definition at line 177 of file ODYNARR.H.
References end(), linkout(), and read().
Definition at line 171 of file ODYNARR.H.
References linkin().
Perform a quick sort on the array.
Definition at line 420 of file ODYNARR.CPP.
Definition at line 160 of file ODYNARR.H.
References ele_size, and get().
Read a saved dynamic array from file, it must be saved with write_file()
<File*> readFile = the pointer to the writing file
Return : 1 - read successfully 0 - writing error
Reimplemented in CourseArray, DepartmentArray, DynArrayB, FacultyArray, FirmArray, NewsArray, StudentArray, and TaskArray.
Definition at line 485 of file ODYNARR.CPP.
Referenced by TaskArray::read_file(), and NewsArray::read_file().
Definition at line 232 of file ODYNARR.H.
Referenced by StudentArray::add(), SpriteArray::add(), FacultyArray::add(), DepartmentArray::add(), and CourseArray::add().
Definition at line 55 of file ODYNARR.CPP.
References body_buf, ele_num, ele_size, and mem_resize.
Referenced by add_blank(), clean_up(), insert(), insert_at(), DynArrayB::linkin(), linkin(), and linkout().
Definition at line 304 of file ODYNARR.CPP.
References compare(), cur_pos, and last_ele.
Definition at line 273 of file ODYNARR.CPP.
References cur_pos, ele_size, get(), and last_ele.
Definition at line 236 of file ODYNARR.H.
References last_ele.
Referenced by DepartmentArray::calc_course_history(), DepartmentArray::calc_course_pref(), StudentArray::calc_degree_awarded(), DepartmentArray::calc_faculty_student_history(), EnrollRes::calc_student_count(), StuDynArray::deinit(), DepartmentRes::deinit(), DepartmentArray::del(), DepartmentArray::init_research(), insert(), insert_at(), Finance::new_fiscal_year(), TaskArray::next_day(), FacultyArray::next_day(), FacultyArray::next_trimester(), DynArrayB::packed_size(), plagiarism_scandal(), SpriteArray::process(), DepartmentArray::read_file(), DynArrayB::read_ptr_array(), risky_research(), scandal_in_athletics(), FacultyRes::summary_report_1(), FacultyRes::summary_report_2(), PlayerSchool::summary_student_report_1(), StudentArray::update_history(), CourseArray::update_history(), EnrollRes::update_student_intake(), and DynArrayB::write_ptr_array().
Definition at line 187 of file ODYNARR.H.
Definition at line 228 of file ODYNARR.CPP.
Write current dynamic array into file, read_file() can be used to retrieve it.
<File*> writeFile = the pointer to the writing file
Return : 1 - write successfully 0 - writing error
Definition at line 462 of file ODYNARR.CPP.
Referenced by TaskArray::write_file(), and NewsArray::write_file().
Definition at line 82 of file ODYNARR.CPP.
References block_num, body_buf, cur_pos, ele_num, ele_size, last_ele, and mem_resize.
Referenced by StuDynArray::deinit().
Definition at line 38 of file ODYNARR.H.
Referenced by add_blank(), clean_up(), DynArray(), insert(), insert_at(), DynArrayB::linkin(), linkin(), linkout(), and zap().
Definition at line 46 of file ODYNARR.H.
Referenced by add_blank(), clean_up(), deinit(), DynArray(), get(), get_ptr(), insert(), insert_at(), DynArrayB::linkin(), linkin(), linkin_unique(), DynArrayB::linkout(), linkout(), resize(), update(), and zap().
Definition at line 39 of file ODYNARR.H.
Referenced by add_blank(), bkwd(), clean_up(), DynArray(), end(), fwd(), get(), get_ptr(), go(), insert(), is_end(), is_start(), jump(), DynArrayB::linkin(), linkin(), DynArrayB::linkout(), linkout(), recno(), scan(), scan_whole(), start(), update(), and zap().
Definition at line 37 of file ODYNARR.H.
Referenced by add_blank(), DynArray(), insert(), insert_at(), DynArrayB::linkin(), linkin(), linkout(), resize(), and zap().
Definition at line 41 of file ODYNARR.H.
Referenced by add_blank(), clean_up(), DynArray(), get(), get_ptr(), insert(), insert_at(), DynArrayB::linkin(), linkin(), linkin_unique(), DynArrayB::linkout(), linkout(), read(), resize(), scan_whole(), update(), and zap().
Definition at line 40 of file ODYNARR.H.
Referenced by add_blank(), clean_up(), DynArray(), end(), fwd(), get(), get_ptr(), go(), insert(), insert_at(), is_end(), jump(), DynArrayB::linkin(), linkin(), linkin_sort_scan_from_bottom(), linkin_unique(), DynArrayB::linkout(), linkout(), scan(), scan_whole(), size(), start(), and zap().
Definition at line 43 of file ODYNARR.H.
Referenced by DynArray(), and linkin_sort_scan_from_bottom().
Definition at line 44 of file ODYNARR.H.