# | Line 7 | Line 7 | bool IntegratorFactory::registerIntegrator(IntegratorC | |
---|---|---|
7 | //initialize instance of IntegratorFactory | |
8 | IntegratorFactory* IntegratorFactory::instance_ = NULL; | |
9 | ||
10 | + | IntegratorFactory::~IntegratorFactory() { |
11 | + | CreatorMapType::iterator i; |
12 | + | for (i = creatorMap_.begin(); i != creatorMap_.end(); ++i) { |
13 | + | delete i->second; |
14 | + | } |
15 | + | creatorMap_.clear(); |
16 | + | } |
17 | + | |
18 | bool IntegratorFactory::registerIntegrator(IntegratorCreator* creator) { | |
19 | return creatorMap_.insert( | |
20 | CreatorMapType::value_type(creator->getIdent(), creator)).second; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |