#include <ListTools.h>
類別TMyList的繼承圖:
公開方法(Public Methods) | |
TMyList () | |
~TMyList () | |
int | Add (void *) |
增加一個項目,只有將項目的指標記錄下來 | |
void | Clear (void) |
清除所有項目 | |
void | Delete (int) |
刪除某一個項目 | |
void | Insert (int, void *) |
將一個項目插入某一個位置,只有將指標記錄下來 | |
void * | Items (int) |
傳回某一個項目 | |
公開屬性 | |
int | count |
項目個數 | |
保護屬性 | |
bool | freeItems |
int | ptrIndex |
TMyListItem * | Ptr |
目前的項目 | |
TMyListItem * | Head |
頭. | |
TMyListItem * | Tail |
尾 |
定義在 ListTools.h 檔案之第 14 行.
TMyList::~TMyList | ( | ) |
int TMyList::Add | ( | void * | item | ) |
增加一個項目,只有將項目的指標記錄下來
item | 為欲增加的項目 |
定義在 ListTools.cpp 檔案之第 36 行.
參考 count, Head, _TMyListItem::item, _TMyListItem::Next, Ptr, ptrIndex, 及 Tail.
被參考於 TMyStringList::Add(), TSongDb::Read(), TMyIniFile::TMyIniFile(), TByteArrayOutputStream::Write(), 及 TMyIniFile::WriteString().
void TMyList::Clear | ( | void | ) |
清除所有項目
定義在 ListTools.cpp 檔案之第 58 行.
參考 count, freeItems, Head, _TMyListItem::item, _TMyListItem::Next, Ptr, ptrIndex, 及 Tail.
void TMyList::Delete | ( | int | index | ) |
刪除某一個項目
index | 為被刪除項目的索引 |
定義在 ListTools.cpp 檔案之第 84 行.
參考 count, freeItems, Head, _TMyListItem::item, _TMyListItem::Next, Ptr, ptrIndex, 及 Tail.
被參考於 TMyStringList::SetValue(), 及 TMyIniFile::WriteString().
void TMyList::Insert | ( | int | index, | |
void * | item | |||
) |
將一個項目插入某一個位置,只有將指標記錄下來
index | 為插入的位置 | |
item | 為欲插入的項目 |
定義在 ListTools.cpp 檔案之第 128 行.
參考 count, Head, _TMyListItem::item, _TMyListItem::Next, Ptr, ptrIndex, 及 Tail.
被參考於 TMyStringList::Insert().
void * TMyList::Items | ( | int | index | ) |
傳回某一個項目
index | 為欲傳回項目的索引 |
定義在 ListTools.cpp 檔案之第 170 行.
參考 count, Head, _TMyListItem::item, _TMyListItem::Next, Ptr, 及 ptrIndex.
被參考於 TSongDb::Read(), TMyIniFile::ReadString(), TByteArrayOutputStream::Reset(), TMyStringList::Strings(), TByteArrayOutputStream::ToByteArray(), TMyIniFile::WriteString(), TByteArrayOutputStream::WriteTo(), 及 TMyIniFile::~TMyIniFile().
int TMyList::count |
項目個數
定義在 ListTools.h 檔案之第 23 行.
被參考於 Add(), Clear(), Delete(), Insert(), Items(), TSongDb::Read(), TMyIniFile::ReadString(), TByteArrayOutputStream::Reset(), TMyStringList::SetValue(), TMyList(), TMyStringList::Values(), TSongItem::Write(), TMyIniFile::WriteString(), TByteArrayOutputStream::WriteTo(), 及 TMyIniFile::~TMyIniFile().
bool TMyList::freeItems [protected] |
TMyListItem* TMyList::Head [protected] |
TMyListItem* TMyList::Ptr [protected] |
int TMyList::ptrIndex [protected] |
TMyListItem* TMyList::Tail [protected] |