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