RMOL Logo Get Revenue Management Optimisation Library at SourceForge.net. Fast, secure and Free Open Source software downloads

FacBomAbstract.cpp

Go to the documentation of this file.
00001 // //////////////////////////////////////////////////////////////////////
00002 // Import section
00003 // //////////////////////////////////////////////////////////////////////
00004 // C
00005 #include <assert.h>
00006 // RMOL
00007 #include <rmol/bom/BomAbstract.hpp>
00008 #include <rmol/factory/FacBomAbstract.hpp>
00009 
00010 namespace RMOL {
00011   
00012   // //////////////////////////////////////////////////////////////////////
00013   FacBomAbstract::~FacBomAbstract() {
00014     clean ();
00015   }
00016 
00017   // //////////////////////////////////////////////////////////////////////
00018   void FacBomAbstract::clean() {
00019     for (BomPool_T::iterator itBom = _pool.begin();
00020          itBom != _pool.end(); itBom++) {
00021       BomAbstract* currentBom_ptr = *itBom;
00022       assert (currentBom_ptr != NULL);
00023 
00024       delete (currentBom_ptr); currentBom_ptr = NULL;
00025     }
00026 
00027     // Empty the pool of Factories
00028     _pool.clear();
00029   }
00030 
00031 }
SourceForge Logo

Generated on Sun Jun 14 23:33:59 2009 for RMOL by Doxygen 1.5.8