ForceAnnealing_goodresults
        ForceAnnealing_tocheck
      
      
      
| Rev | Line |   | 
|---|
| [e41c48] | 1 | /*
 | 
|---|
 | 2 |  * AtomicInfo.hpp
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Aug 10, 2010
 | 
|---|
 | 5 |  *      Author: heber
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | #ifndef ATOMICINFO_HPP_
 | 
|---|
 | 9 | #define ATOMICINFO_HPP_
 | 
|---|
 | 10 | 
 | 
|---|
| [56f73b] | 11 | // include config.h
 | 
|---|
 | 12 | #ifdef HAVE_CONFIG_H
 | 
|---|
 | 13 | #include <config.h>
 | 
|---|
 | 14 | #endif
 | 
|---|
 | 15 | 
 | 
|---|
| [5cdd83] | 16 | #include "LinearAlgebra/Vector.hpp"
 | 
|---|
 | 17 | #include "types.hpp"
 | 
|---|
| [56f73b] | 18 | 
 | 
|---|
| [c26617] | 19 | #include <vector>
 | 
|---|
 | 20 | 
 | 
|---|
 | 21 | #include "Bond/BondInfo.hpp"
 | 
|---|
 | 22 | 
 | 
|---|
| [e41c48] | 23 | class atom;
 | 
|---|
 | 24 | class element;
 | 
|---|
 | 25 | class molecule;
 | 
|---|
 | 26 | 
 | 
|---|
 | 27 | /** This is for storing and transfering the information contained within an atom.
 | 
|---|
 | 28 |  * This is needed for Undo/Redo operations of AtomActions.
 | 
|---|
 | 29 |  */
 | 
|---|
 | 30 | class AtomicInfo {
 | 
|---|
 | 31 | public:
 | 
|---|
 | 32 |   AtomicInfo();
 | 
|---|
 | 33 |   AtomicInfo(const atom &_atom);
 | 
|---|
| [08111a] | 34 |   AtomicInfo(const AtomicInfo &_atominfo);
 | 
|---|
| [e41c48] | 35 |   ~AtomicInfo();
 | 
|---|
 | 36 | 
 | 
|---|
 | 37 |   bool setAtom(atom &_atom) const;
 | 
|---|
 | 38 |   atomId_t getId() const;
 | 
|---|
 | 39 | 
 | 
|---|
 | 40 |   AtomicInfo& operator=(const AtomicInfo&);
 | 
|---|
 | 41 | 
 | 
|---|
 | 42 | private:
 | 
|---|
 | 43 |   Vector Position;
 | 
|---|
 | 44 |   const element * Type;
 | 
|---|
| [2034f3] | 45 |   double charge;
 | 
|---|
| [e41c48] | 46 |   Vector Velocity;
 | 
|---|
| [7e51e1] | 47 |   Vector Force;
 | 
|---|
| [3867a7] | 48 |   atomId_t FatherId;
 | 
|---|
 | 49 |   moleculeId_t MolId;
 | 
|---|
| [e41c48] | 50 |   atomId_t Id;
 | 
|---|
| [560bbe] | 51 |   int Nr;
 | 
|---|
| [c26617] | 52 |   std::vector<BondInfo> bonds;
 | 
|---|
| [e41c48] | 53 | };
 | 
|---|
 | 54 | 
 | 
|---|
 | 55 | 
 | 
|---|
 | 56 | #endif /* ATOMICINFO_HPP_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.