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

Comparing branches/new_design/OOPSE-3.0/src/primitives/Bend.hpp (file contents):
Revision 1694 by tim, Mon Nov 1 21:40:42 2004 UTC vs.
Revision 1803 by tim, Tue Nov 30 17:54:22 2004 UTC

# Line 33 | Line 33
33  
34   #ifndef PRIMITIVES_BEND_HPP
35   #define PRIMITIVES_BEND_HPP
36 <
36 > #include "primitives/Atom.hpp"
37 > #include "types/BendType.hpp"
38   namespace oopse {
39  
40   class Bend {
41      public:
42 <        Bend(Atom* atom1, Atom* atom2, Atom* atom3, BendType* bt);
42 >        Bend(Atom* atom1, Atom* atom2, Atom* atom3, BendType* bt)
43 >            : atom1_(atom1), atom2_(atom2), atom3_(atom3), bendType_(bt) {}
44  
45 +
46          void calcForce();
47          
48          double getPotential() {
49 <            return potential;
49 >            return potential_;
50          }
51  
52 <    private:
52 >        Atom* getAtomA() {
53 >            return atom1_;
54 >        }
55 >
56 >        Atom* getAtomB() {
57 >            return atom2_;
58 >        }
59 >
60 >        Atom* getAtomC() {
61 >            return atom3_;
62 >        }
63 >
64 >        BendType * getBendType() {
65 >            return bendType_;
66 >        }
67 >
68 >    protected:
69 >
70          BendType* bendType_; /**< bend type */
71 <        Atom* atom1;
72 <        Atom* atom2;
73 <        Atom* atom3;
74 <        double potential;
71 >        Atom* atom1_;
72 >        Atom* atom2_;
73 >        Atom* atom3_;
74 >        double potential_;
75   };    
76  
77  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines