ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/test/brains/Molecule.hpp
(Generate patch)

Comparing:
trunk/test/brains/Molecule.hpp (file contents), Revision 192 by tim, Fri Oct 29 20:54:04 2004 UTC vs.
branches/development/test/brains/Molecule.hpp (file contents), Revision 1465 by chuckv, Fri Jul 9 23:08:25 2010 UTC

# Line 1 | Line 1
1   /*
2 < * Copyright (C) 2000-2004  Object Oriented Parallel Simulation Engine (OOPSE) project
2 > * Copyright (C) 2000-2009  The Open Molecular Dynamics Engine (OpenMD) project
3   *
4 < * Contact: oopse@oopse.org
4 > * Contact: gezelter@openscience.org
5   *
6   * This program is free software; you can redistribute it and/or
7   * modify it under the terms of the GNU Lesser General Public License
# Line 33 | Line 33
33   #ifndef PRIMITIVES_MOLECULE_HPP
34   #define PRIMITIVES_MOLECULE_HPP
35   #include <vector>
36 <
36 > #include <iostream>
37   #include "math/Vector3.hpp"
38  
39 < namespace oopse{
39 > namespace OpenMD{
40  
41   /**
42   * @class Molecule Molecule.hpp "primitives/Molecule.hpp"
# Line 72 | Line 72 | class Molecule {
72              return localIndex_;
73          }
74  
75 +        /** add an atom into this molecule */
76 +        void addAtom(Atom* atom);
77 +
78 +        /** add a bond into this molecule */
79 +        void addBond(Bond* bond);
80 +
81 +        /** add a bend into this molecule */
82 +        void addBend(Bend* bend);
83 +
84 +        /** add a torsion into this molecule*/
85 +        void addTorsion(Torsion* torsion);
86 +
87 +        /** add a rigidbody into this molecule */
88 +        void addRigidBody(RigidBody *rb);
89 +
90 +        /** add a cutoff group into this molecule */
91 +        void addCutoffGroup(CutoffGroup* cp)        
92 +
93 +        /** */
94 +        void complete();
95 +
96          /** Returns the total number of atoms in this molecule */
97          unsigned int getNAtoms() {
98              return atoms_.size();
# Line 196 | Line 217 | class Molecule {
217          /** Returns the total mass of this molecule */
218          double getTotalMass();
219  
220 <        friend ostream& operator <<(ostream& o, const Molecule& mol);
220 >        friend std::ostream& operator <<(std::ostream& o, const Molecule& mol);
221          
222      private:
223          int localIndex_;
# Line 211 | Line 232 | class Molecule {
232          std::vector<CutoffGroup*> cutoffGroups_;
233   };
234  
235 < } //namespace oopse
235 > } //namespace OpenMD
236   #endif //

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines