Return TypeFunction nameArguments
hzEcodehdbObject::Clear(void)

Declared in file: hzDatabase.h
Defined in file : hdbObject.cpp

Function Logic:

0:START 1:!m_pClass 2:Return E_NOINIT 3:!m_pRoot 4:Return E_OK 5:m_pRoot->m_copy>1 6:items m_pRoot 7:Return E_OK 8:_obj_data::Clear m_pRoot m_pRoot 9:Return E_OK

Function body:

hzEcode hdbObject::Clear (void)
{
   _hzfunc("hdbObject::Clear") ;
   if (!m_pClass)
       return E_NOINIT ;
   if (!m_pRoot)
       return E_OK ;
   if (m_pRoot->m_copy > 1)
   {
       m_pRoot->m_copy-- ;
       m_pRoot = 0;
       return E_OK ;
   }
   m_pRoot->Clear() ;
   delete m_pRoot ;
   m_pRoot = 0;
   return E_OK ;
}