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

Comparing branches/new_design/OOPSE-4/src/UseTheForce/ForceFieldFactory.hpp (file contents):
Revision 1823 by tim, Wed Nov 24 21:33:00 2004 UTC vs.
Revision 1824 by tim, Thu Dec 2 03:12:25 2004 UTC

# Line 59 | Line 59 | class ForceFieldFactory {
59           * Returns an instance of ForceField factory
60           * @return an instance of ForceField factory
61           */        
62 <        static ForceFieldFactory* getInstance();
62 >        static ForceFieldFactory* getInstance() {
63  
64 +            if (instance_ == NULL) {
65 +                instance_ = new ForceFieldFactory();
66 +            }
67 +            return instance_;
68 +            
69 +        }
70 +
71          /**
72           * Registers a creator with a type identifier
73           * @return true if registration is succeed, otherwise return false

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines