# | Line 61 | Line 61 | class IntegratorFactory { | |
---|---|---|
61 | * Returns an instance of Integrator factory | |
62 | * @return an instance of Integrator factory | |
63 | */ | |
64 | < | static IntegratorFactory* getInstance(); |
64 | > | static IntegratorFactory* getInstance() { |
65 | > | if (instance_ == NULL) { |
66 | > | instance_ = new IntegratorFactory(); |
67 | > | } |
68 | > | return instance_; |
69 | > | } |
70 | ||
71 | /** | |
72 | * Registers a creator with a type identifier |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |