source: src/Atom/AtomicInfo.hpp@ 70f2a1

Action_Thermostats Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 ChemicalSpaceEvaluator Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph Fix_Verbose_Codepatterns ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion Gui_displays_atomic_force_velocity JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool PythonUI_with_named_parameters Recreated_GuiChecks StoppableMakroAction TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps
Last change on this file since 70f2a1 was 08111a, checked in by Frederik Heber <heber@…>, 9 years ago

FIX: Added copy cstor for AtomicInfo.

  • Property mode set to 100644
File size: 975 bytes
Line 
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
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16#include "LinearAlgebra/Vector.hpp"
17#include "types.hpp"
18
19#include <vector>
20
21#include "Bond/BondInfo.hpp"
22
23class atom;
24class element;
25class 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 */
30class AtomicInfo {
31public:
32 AtomicInfo();
33 AtomicInfo(const atom &_atom);
34 AtomicInfo(const AtomicInfo &_atominfo);
35 ~AtomicInfo();
36
37 bool setAtom(atom &_atom) const;
38 atomId_t getId() const;
39
40 AtomicInfo& operator=(const AtomicInfo&);
41
42private:
43 Vector Position;
44 const element * Type;
45 double charge;
46 Vector Velocity;
47 Vector Force;
48 atomId_t FatherId;
49 moleculeId_t MolId;
50 atomId_t Id;
51 int Nr;
52 std::vector<BondInfo> bonds;
53};
54
55
56#endif /* ATOMICINFO_HPP_ */
Note: See TracBrowser for help on using the repository browser.