ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-4/src/integrators/IntegratorFactory.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-4/src/integrators/IntegratorFactory.hpp (file contents):
Revision 1823 by tim, Wed Dec 1 22:45:49 2004 UTC vs.
Revision 1824 by tim, Thu Dec 2 03:12:25 2004 UTC

# 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines