//-----------------------------------------------------------------------------+ // Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd. // = FileName : TGPList.h // = Version : ver2.0 // = Author : xlc // = CreateDate : 2002-09-09 // = Description: 类的声明 单向指针递归链 // = Maintainers: // //-----------------------------------------------------------------------------+ #ifndef _TGPLIST_H_ #define _TGPLIST_H_ #ifndef _TPGEGLIST_H_ #include "TPGeGList.h" #endif template class TGPList : public TPGeGList { TGPList(); virtual ~TGPList(); void Release(); }; template TGPList::TGPList() { this->data=NULL; } template TGPList::~TGPList() { if (this->data != NULL) { delete this->data; } } template void TGPList::Release() { if (this->data != NULL) { delete this->data; } this->data = NULL; } #endif