2026-10-04 00:04:20 +08:00
|
|
|
//-----------------------------------------------------------------------------+
|
2026-09-28 15:28:50 +08:00
|
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
|
|
|
// = FileName : TWAutoDel.cpp
|
|
|
|
|
// = Version : ver2.0
|
|
|
|
|
// = Author : xlc
|
|
|
|
|
// = CreateDate : 2002-09-09
|
2026-10-04 00:04:20 +08:00
|
|
|
// = Description: 类的定义
|
2026-09-28 15:28:50 +08:00
|
|
|
// = Maintainers:
|
|
|
|
|
//
|
|
|
|
|
//-----------------------------------------------------------------------------+
|
|
|
|
|
#include "StdAfx.h"
|
|
|
|
|
#include "TWAutoDel.h"
|
|
|
|
|
#include "TWAutoDelBuf.h"
|
|
|
|
|
|
|
|
|
|
TWAutoDel::TWAutoDel()
|
|
|
|
|
{
|
|
|
|
|
TWAutoDelBuf::g_pCurBuf->AddTail(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TWAutoDel::~TWAutoDel()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool TWAutoDel::operator > (const TWAutoDel &e)const
|
|
|
|
|
{
|
|
|
|
|
return this > &e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool TWAutoDel::operator < (const TWAutoDel &e)const
|
|
|
|
|
{
|
|
|
|
|
return this < &e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool TWAutoDel::operator == (const TWAutoDel &e)const
|
|
|
|
|
{
|
|
|
|
|
return this == &e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool TWAutoDel::operator != (const TWAutoDel &e)const
|
|
|
|
|
{
|
|
|
|
|
return this != &e;
|
|
|
|
|
}
|