#include <ODYNARRB.H>
Inheritance diagram for DynArrayB:
Definition at line 30 of file ODYNARRB.H.
Definition at line 30 of file ODYNARRB.CPP.
References empty_room_array, empty_room_count, empty_room_num, NULL, and reuse_interval_days.
Definition at line 42 of file ODYNARRB.CPP.
References empty_room_array, and mem_del.
Reimplemented from DynArray.
Definition at line 64 of file ODYNARRB.CPP.
References DynArray::block_num, DynArray::body_buf, DynArray::cur_pos, EmptyRoom::deleted_game_date, DynArray::ele_num, DynArray::ele_size, empty_room_array, empty_room_count, DynArray::last_ele, NULL, EmptyRoom::recno, DynArray::resize(), and reuse_interval_days.
Referenced by StudentArray::add(), SpriteArray::add(), FacultyArray::add(), DepartmentArray::add(), and CourseArray::add().
Definition at line 120 of file ODYNARRB.CPP.
References DynArray::body_buf, DynArray::cur_pos, DynArray::ele_size, EMPTY_ROOM_ALLOC_STEP, empty_room_array, empty_room_count, empty_room_num, DynArray::last_ele, and mem_resize.
Referenced by StudentArray::del(), SpriteArray::del(), DepartmentArray::del(), CourseArray::del(), FirmArray::del_firm(), DepartmentArray::read_file(), and read_ptr_array().
Given the recno unpacked, it returns the recno packed.
packed_recno() is the recno when the array is packed (deleted record are actually removed)
<int> recNo = given the recno unpacked
return : <int> the recno when packed
Definition at line 287 of file ODYNARRB.CPP.
[inline]
Definition at line 44 of file ODYNARRB.H.
References empty_room_count, and DynArray::size().
Referenced by StudentArray::read_file(), and DepartmentArray::read_file().
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
Definition at line 247 of file ODYNARRB.CPP.
Referenced by DepartmentArray::read_file(), and read_ptr_array().
Reimplemented in CourseArray, DepartmentArray, FacultyArray, FirmArray, and StudentArray.
Definition at line 183 of file ODYNARRB.CPP.
Referenced by CourseArray::read_file(), FacultyArray::read_file(), and StudentArray::read_file().
Definition at line 359 of file ODYNARRB.CPP.
References DynArray::add_blank(), CreateEleFP, File::file_get_short(), File::file_read(), DynArray::get_ptr(), DynArray::go(), linkout(), NULL, read_empty_room(), and DynArray::size().
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 221 of file ODYNARRB.CPP.
Referenced by write_ptr_array().
Definition at line 154 of file ODYNARRB.CPP.
Definition at line 319 of file ODYNARRB.CPP.
References File::file_put_short(), File::file_write(), DynArray::get_ptr(), DynArray::size(), and write_empty_room().
Zap the whole dynamic array, clear all elements
Definition at line 304 of file ODYNARRB.CPP.
Definition at line 32 of file ODYNARRB.H.
Referenced by DynArrayB(), linkin(), linkout(), and ~DynArrayB().
Definition at line 34 of file ODYNARRB.H.
Referenced by DynArrayB(), linkin(), linkout(), and packed_size().
Definition at line 33 of file ODYNARRB.H.
Referenced by DynArrayB(), and linkout().
Definition at line 35 of file ODYNARRB.H.
Referenced by DynArrayB(), and linkin().