CreatorMap.hh 286 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
#include <map>

namespace AMDiS {

  template<typename BaseClass>
  void CreatorMap<BaseClass>::clear() 
  {
    typename std::map< std::string, CreatorInterface<BaseClass>* >::iterator it;

Thomas Witkowski's avatar
Thomas Witkowski committed
10
    for (it = creatorMap.begin(); it != creatorMap.end(); ++it)
11
12
13
      DELETE it->second;
  }
}