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

Comparing trunk/OOPSE-2.0/src/types/BondType.hpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 2204 by gezelter, Fri Apr 15 22:04:00 2005 UTC

# Line 1 | Line 1
1 < /*
1 > /*
2   * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
3   *
4   * The University of Notre Dame grants you ("Licensee") a
# Line 51 | Line 51 | namespace oopse {
51  
52   namespace oopse {
53    
54 < /**
55 < * @class BondType BondType.hpp "types/BondType.hpp"
56 < * BondType class is responsible for calculating the force and energy of the bond
57 < */
58 < class BondType {
59 <    public:
60 <        BondType(double myR0) : r0(myR0) {}
61 <        virtual ~BondType() {}
54 >  /**
55 >   * @class BondType BondType.hpp "types/BondType.hpp"
56 >   * BondType class is responsible for calculating the force and energy of the bond
57 >   */
58 >  class BondType {
59 >  public:
60 >    BondType(double myR0) : r0(myR0) {}
61 >    virtual ~BondType() {}
62  
63 <        virtual void calcForce(double r, double& V, double& dVdr) = 0;
64 <        double getEquilibriumBondLength() {return r0;}
65 <        void setEquilibriumBondLength(double myR0) { r0 = myR0; }
63 >    virtual void calcForce(double r, double& V, double& dVdr) = 0;
64 >    double getEquilibriumBondLength() {return r0;}
65 >    void setEquilibriumBondLength(double myR0) { r0 = myR0; }
66  
67 <    protected:        
68 <        double r0; /**equilibrium bond length< */
69 < };    
67 >  protected:        
68 >    double r0; /**equilibrium bond length< */
69 >  };    
70  
71  
72   } //end namespace oopse

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines