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

Comparing branches/new_design/OOPSE-4/src/types/BondType.hpp (file contents):
Revision 1742 by tim, Tue Nov 16 20:36:18 2004 UTC vs.
Revision 1743 by gezelter, Tue Nov 16 22:04:26 2004 UTC

# Line 34 | Line 34 | namespace oopse {
34   #define TYPES_BONDTYPE_HPP
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 +  };    
51  
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(AtomType* at1, AtomType* at2);
45        virtual ~BondType() {}
52  
47        virtual void calcForce(double len, double& force, double& potential) = 0;
48
49    protected:
50        AtomType* at1_;
51        AtomType* at2_;
52        
53 };    
54
55
53   } //end namespace oopse
54   #endif //TYPES_BONDTYPE_HPP    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines