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

Comparing branches/new_design/OOPSE-2.0/src/types/BondType.hpp (file contents):
Revision 1743 by gezelter, Tue Nov 16 22:04:26 2004 UTC vs.
Revision 1746 by tim, Wed Nov 17 06:37:56 2004 UTC

# Line 35 | Line 35 | namespace oopse {
35  
36   namespace oopse {
37    
38 <  /**
39 <   * @class BondType BondType.hpp "types/BondType.hpp"
40 <   * @todo using shared_ptr instead of pointer
41 <   */
42 <  class BondType {
43 <  public:
44 <    BondType();
45 <    virtual ~BondType() {}
46 <    
47 <    virtual void calcForce(double r, double& V, double& dVdr) = 0;
48 <    
49 <  protected:        
50 <  };    
38 > /**
39 > * @class BondType BondType.hpp "types/BondType.hpp"
40 > * BondType class is responsible for calculating the force and energy of the bond
41 > */
42 > class BondType {
43 >    public:
44 >        BondType(dobule myR0) : r0(myR0) {}
45 >        virtual ~BondType() {}
46  
47 +        virtual void calcForce(double r, double& V, double& dVdr) = 0;
48 +        double getEquilibriumBondLength() {return r0;}
49 +        void setEquilibriumBondLength(double myR0) { r0 = r; }
50  
51 +    protected:        
52 +        double r0; /**equilibrium bond length< */
53 + };    
54 +
55 +
56   } //end namespace oopse
57   #endif //TYPES_BONDTYPE_HPP    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines