You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
|
|
|
|
#include "FITKAbstractObjectContainer.hpp"
|
|
|
|
|
#include "FITKAbstractObject.hpp"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ~FITKAbstractObjectPrivate()
|
|
|
|
|
* 析构函数,用于清理资源。
|
|
|
|
|
* 此函数不接受参数,也不返回任何值。
|
|
|
|
|
*/
|
|
|
|
|
Core::FITKAbstractObjectPrivate::~FITKAbstractObjectPrivate()
|
|
|
|
|
{
|
|
|
|
|
// 遍历容器中的所有对象,调用它们的ObjectDestoried函数,然后清空容器
|
|
|
|
|
{
|
|
|
|
|
for (FITKAbstractObjectContainerPrivate* c : _containers)
|
|
|
|
|
c->ObjectDestoried();
|
|
|
|
|
_containers.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Core::FITKAbstractObject::~FITKAbstractObject()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool Core::FITKAbstractObject::isEnable()
|
|
|
|
|
{
|
|
|
|
|
return _objEnable;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Core::FITKAbstractObject::enable(bool en /*= true*/)
|
|
|
|
|
{
|
|
|
|
|
_objEnable = en;
|
|
|
|
|
}
|