/** * @brief Destroys inventory. * @param[in] inv Pointer to the inventory which should be erased. * @note Loops through all containers in inventory. @c nullptr for temp containers are skipped, * for real containers @c emptyContainer is called. * @sa emptyContainer */ void InventoryInterface::destroyInventory (Inventory* const inv) { if (!inv) return; const Container* cont = nullptr; while ((cont = inv->getNextCont(cont))) { emptyContainer(inv, cont->id); } inv->init(); }
CIKGraphObjCont::~CIKGraphObjCont() { emptyContainer(); }
CIKGraphObjCont::CIKGraphObjCont() { nodeIDCounter=0; numberOfElementIDs=0; emptyContainer(); }