Skip to content
Snippets Groups Projects
CreatorMap.hh 543 B
Newer Older
//
// Software License for AMDiS
//
// Copyright (c) 2010 Dresden University of Technology 
// All rights reserved.
// Authors: Simon Vey, Thomas Witkowski et al.
//
// This file is part of AMDiS
//
// See also license.opensource.txt in the distribution.


#include <map>

namespace AMDiS {

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

    for (it = creatorMap.begin(); it != creatorMap.end(); ++it)
Thomas Witkowski's avatar
Thomas Witkowski committed
      delete it->second;