Program: bbtk
Module: $RCSfile: bbtkComplexBlackBox.cxx,v $
Language: C++
-Date: $Date: 2008/04/24 10:24:58 $
-Version: $Revision: 1.18 $
+Date: $Date: 2008/04/24 11:49:59 $
+Version: $Revision: 1.19 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// We have to make the shared_ptr on this because it is used
// in bbUnsafeAddBlackBox !
- MakePointer(this,true);
+ MakeBlackBoxPointer(this,true);
BlackBoxMapType::const_iterator i;
for ( i = from.mBlackBoxMap.begin(); i != from.mBlackBoxMap.end(); ++i )
Program: bbtk
Module: $RCSfile: bbtkFactory.h,v $
Language: C++
- Date: $Date: 2008/04/18 12:59:15 $
- Version: $Revision: 1.14 $
+ Date: $Date: 2008/04/24 11:49:59 $
+ Version: $Revision: 1.15 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
/// Sets the executer who created the factory (if any)
void SetExecuter(ExecuterPointer e) { mExecuter = e; }
/// Gets the executer who created the factory (if any)
- ExecuterPointer GetExecuter();// { return mExecuter.lock(); }
+ ExecuterPointer GetExecuter() { return mExecuter.lock(); }
/// Gets the executer who created the factory (if any) - const
// const Executer::Pointer GetExecuter() const { return mExecuter.lock(); }
<< std::endl << std::endl;
Object::PrintObjectListInfo("");
}
+ if (Object::GetObjectsCount()>0)
+ {
+ std::cout << std::endl;
+ std::cout << "************************ WARNING ********************"
+ <<std::endl;
+ std::cout << "**** "<< Object::GetObjectsCount()
+ <<" bbtk objects still alive after main ended"<<std::endl;
+ std::cout << "**** "
+ <<"Rerun with -M option to view the object list "
+ <<std::endl;
+ std::cout << "*****************************************************"
+ <<std::endl;
+
+ }
}
//=======================================================================
//=======================================================================
Program: bbtk
Module: $RCSfile: bbtkObject.h,v $
Language: C++
- Date: $Date: 2008/04/22 08:29:09 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/04/24 11:49:59 $
+ Version: $Revision: 1.3 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
static void PrintObjectListInfo(const std::string& name);
// static void PrintObjectInfo(const std::string& name);
static void PrintObjectInfo(const Pointer& o);
+
+ static long GetObjectsCount() { return mgObjectList.size(); }
+
/// Default objects deleter : removes object from list on deletion
struct Deleter
{