Changeset 4dca8e
- Timestamp:
- Aug 3, 2009, 3:09:12 PM (16 years ago)
- Children:
- eb167d
- Parents:
- e78824
- Location:
- molecuilder/src
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Makefile.am
re78824 r4dca8e 1 1 SOURCE = atom.cpp bond.cpp boundary.cpp builder.cpp config.cpp element.cpp ellipsoid.cpp helpers.cpp linkedcell.cpp moleculelist.cpp molecules.cpp parser.cpp periodentafel.cpp tesselation.cpp tesselationhelpers.cpp vector.cpp verbose.cpp 2 HEADER = atom.hpp bond.hpp boundary.hpp config.hpp defs.hpp el lipsoid.hpp helpers.hpp linkedcell.hpp molecules.hpp parser.hpp periodentafel.hpp stackclass.hpp tesselation.hpp tesselationhelpers.hpp vector.hpp2 HEADER = atom.hpp bond.hpp boundary.hpp config.hpp defs.hpp element.hpp ellipsoid.hpp helpers.hpp linkedcell.hpp molecules.hpp parser.hpp periodentafel.hpp stackclass.hpp tesselation.hpp tesselationhelpers.hpp vector.hpp verbose.hpp 3 3 4 4 bin_PROGRAMS = molecuilder joiner analyzer -
molecuilder/src/atom.hpp
re78824 r4dca8e 11 11 using namespace std; 12 12 13 #include "periodentafel.hpp" 13 // include config.h 14 #ifdef HAVE_CONFIG_H 15 #include <config.h> 16 #endif 17 18 19 #include <iostream> 20 21 #include "element.hpp" 14 22 #include "tesselation.hpp" 15 23 #include "vector.hpp" -
molecuilder/src/bond.hpp
re78824 r4dca8e 10 10 11 11 using namespace std; 12 13 // include config.h 14 #ifdef HAVE_CONFIG_H 15 #include <config.h> 16 #endif 17 12 18 13 19 #include "atom.hpp" -
molecuilder/src/config.hpp
re78824 r4dca8e 10 10 11 11 using namespace std; 12 13 // include config.h 14 #ifdef HAVE_CONFIG_H 15 #include <config.h> 16 #endif 17 12 18 13 19 #include "molecules.hpp" -
molecuilder/src/element.cpp
re78824 r4dca8e 5 5 */ 6 6 7 #include "periodentafel.hpp" 7 #include <iomanip> 8 #include <fstream> 9 10 #include "element.hpp" 8 11 9 12 /************************************* Functions for class element **********************************/ -
molecuilder/src/helpers.hpp
re78824 r4dca8e 8 8 9 9 using namespace std; 10 11 // include config.h 12 #ifdef HAVE_CONFIG_H 13 #include <config.h> 14 #endif 10 15 11 16 #include <iostream> … … 21 26 22 27 #include "defs.hpp" 23 24 // include config.h 25 #ifdef HAVE_CONFIG_H 26 #include <config.h> 27 #endif 28 #include "verbose.hpp" 28 29 29 30 /********************************************** helpful functions *********************************/ … … 275 276 }; 276 277 277 /************************************* Class Verbose & Binary *******************************/278 279 /** Verbose is an IO manipulator, that writes tabs according to \a Verbosity level.280 */281 class Verbose282 {283 public:284 Verbose(int value) : Verbosity(value) { }285 286 ostream& print (ostream &ost) const;287 private:288 int Verbosity;289 };290 291 ostream& operator<<(ostream& ost,const Verbose& m);292 293 /** Binary is an IO manipulator, that writes 0 and 1 according to number \a Binary.294 */295 class Binary296 {297 public:298 Binary(int value) : BinaryNumber(value) { }299 300 ostream& print (ostream &ost) const;301 private:302 int BinaryNumber;303 };304 305 ostream& operator<<(ostream& ost,const Binary& m);306 307 308 278 309 279 #endif /*HELPERS_HPP_*/ -
molecuilder/src/molecules.hpp
re78824 r4dca8e 27 27 #include "atom.hpp" 28 28 #include "bond.hpp" 29 #include "element.hpp" 29 30 #include "helpers.hpp" 30 31 #include "linkedcell.hpp" … … 38 39 class MoleculeLeafClass; 39 40 class MoleculeListClass; 40 class Verbose;41 41 42 42 /******************************** Some definitions for easier reading **********************************/ -
molecuilder/src/periodentafel.cpp
re78824 r4dca8e 7 7 using namespace std; 8 8 9 #include <iomanip> 10 #include <fstream> 11 12 #include "helpers.hpp" 9 13 #include "periodentafel.hpp" 14 #include "verbose.hpp" 10 15 11 16 /************************************* Functions for class periodentafel ***************************/ -
molecuilder/src/periodentafel.hpp
re78824 r4dca8e 3 3 4 4 using namespace std; 5 6 #include "defs.hpp"7 #include "helpers.hpp"8 5 9 6 // include config.h … … 12 9 #endif 13 10 11 #include <iostream> 12 13 #include "defs.hpp" 14 #include "element.hpp" 15 14 16 // ====================================== class definitions ========================= 15 17 16 class element;17 class periodentafel;18 19 /** Chemical element.20 * Class incorporates data for a certain chemical element to be referenced from atom class.21 */22 class element {23 public:24 double mass; //!< mass in g/mol25 double CovalentRadius; //!< covalent radius26 double VanDerWaalsRadius; //!< can-der-Waals radius27 int Z; //!< atomic number28 char name[64]; //!< atom name, i.e. "Hydrogren"29 char symbol[3]; //!< short form of the atom, i.e. "H"30 char period[8]; //!< period: n quantum number31 char group[8]; //!< group: l quantum number32 char block[8]; //!< block: l quantum number33 element *previous; //!< previous item in list34 element *next; //!< next element in list35 int *sort; //!< sorc criteria36 int No; //!< number of element set on periodentafel::Output()37 double Valence; //!< number of valence electrons for this element38 int NoValenceOrbitals; //!< number of valence orbitals, used for determining bond degree in molecule::CreateConnectmatrix()39 double HBondDistance[NDIM]; //!< distance in Angstrom of this element to hydrogen (for single, double and triple bonds)40 double HBondAngle[NDIM]; //!< typical angle for one, two, three bonded hydrogen (in degrees)41 42 element();43 ~element();44 45 //> print element entries to screen46 bool Output(ofstream *out) const;47 bool Checkout(ofstream *out, const int No, const int NoOfAtoms) const;48 49 private:50 };51 18 52 19 /** Periodentafel is a list of all elements sorted by their atomic number. -
molecuilder/src/stackclass.hpp
re78824 r4dca8e 1 1 #ifndef STACKCLASS_HPP_ 2 2 #define STACKCLASS_HPP_ 3 4 #include "verbose.hpp" 3 5 4 6 template <typename T> class StackClass;
Note:
See TracChangeset
for help on using the changeset viewer.