Last change
on this file since 2338 was
2265,
checked in by ymipsl, 3 years ago
|
tracking memory leak : remove context and all related object from object factory when context is finalized.
YM
|
File size:
1.3 KB
|
Rev | Line | |
---|
[1591] | 1 | #include "object_factory_impl.hpp" |
---|
| 2 | #include "node_type.hpp" |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | #define macro(U) \ |
---|
| 6 | template std::shared_ptr<U> CObjectFactory::GetObject<U>(const StdString& id); \ |
---|
| 7 | template std::shared_ptr<U> CObjectFactory::GetObject<U>(const StdString& context,const StdString& id); \ |
---|
| 8 | template std::shared_ptr<U> CObjectFactory::GetObject<U>(const U* const object); \ |
---|
| 9 | template int CObjectFactory::GetObjectNum<U>(void); \ |
---|
| 10 | template int CObjectFactory::GetObjectIdNum<U>(void); \ |
---|
| 11 | template const std::vector<std::shared_ptr<U> >& CObjectFactory::GetObjectVector<U>(const StdString& context ); \ |
---|
| 12 | template bool CObjectFactory::HasObject<U>(const StdString& id); \ |
---|
| 13 | template bool CObjectFactory::HasObject<U>(const StdString& context,const StdString& id); \ |
---|
| 14 | template std::shared_ptr<U> CObjectFactory::CreateObject<U>(const StdString& id ); \ |
---|
[1869] | 15 | template std::shared_ptr<U> CObjectFactory::CreateAlias<U>(const StdString& id, const StdString& alias ); \ |
---|
[2265] | 16 | template const StdString CObjectFactory::GetUIdBase<U>(void); \ |
---|
[1591] | 17 | template StdString CObjectFactory::GenUId<U>(void); \ |
---|
[2265] | 18 | template bool CObjectFactory::IsGenUId<U>(const StdString& id);\ |
---|
| 19 | template void CObjectFactory::deleteContext<U>(const StdString & context) ;\ |
---|
| 20 | template void CObjectFactory::deleteAllContexts<U>() ;\ |
---|
| 21 | template void CObjectFactory::dumpObjects<U>(void) ; |
---|
[1591] | 22 | |
---|
| 23 | |
---|
[2130] | 24 | |
---|
[2265] | 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.