Changeset 17b3a5c for molecuilder/src/molecule.hpp
- Timestamp:
- Oct 9, 2009, 10:54:52 AM (16 years ago)
- Children:
- 3efb4a
- Parents:
- 70b7aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule.hpp
r70b7aa r17b3a5c 8 8 9 9 using namespace std; 10 11 /*********************************************** includes ***********************************/ 10 12 11 13 // GSL headers … … 25 27 #include <vector> 26 28 27 #include "atom.hpp" 28 #include "bond.hpp" 29 #include "element.hpp" 30 #include "leastsquaremin.hpp" 31 #include "linkedcell.hpp" 32 #include "parser.hpp" 33 #include "periodentafel.hpp" 29 #include "graph.hpp" 34 30 #include "stackclass.hpp" 35 31 #include "tesselation.hpp" 36 #include "vector.hpp" 37 32 33 /****************************************** forward declarations *****************************/ 34 35 class atom; 36 class bond; 37 class element; 38 class ForceMatrix; 39 class LinkedCell; 38 40 class molecule; 39 41 class MoleculeLeafClass; 40 42 class MoleculeListClass; 43 class periodentafel; 44 class Vector; 41 45 42 46 /******************************** Some definitions for easier reading **********************************/ 43 44 #define KeyStack deque<int>45 #define KeySet set<int>46 #define NumberValuePair pair<int, double>47 #define Graph map <KeySet, NumberValuePair, KeyCompare >48 #define GraphPair pair <KeySet, NumberValuePair >49 #define KeySetTestPair pair<KeySet::iterator, bool>50 #define GraphTestPair pair<Graph::iterator, bool>51 47 52 48 #define MoleculeList list <molecule *> … … 56 52 #define DistanceMap multimap < double, atom* > 57 53 #define DistanceTestPair pair < DistanceMap::iterator, bool> 58 59 60 //#define LinkedAtoms list <atom *>61 62 /******************************** Some small functions and/or structures **********************************/63 64 struct KeyCompare65 {66 bool operator() (const KeySet SubgraphA, const KeySet SubgraphB) const;67 };68 69 //bool operator < (KeySet SubgraphA, KeySet SubgraphB); //note: this declaration is important, otherwise normal < is used (producing wrong order)70 inline void InsertFragmentIntoGraph(ofstream *out, struct UniqueFragments *Fragment); // Insert a KeySet into a Graph71 inline void InsertGraphIntoGraph(ofstream *out, Graph &graph1, Graph &graph2, int *counter); // Insert all KeySet's in a Graph into another Graph72 int CompareDoubles (const void * a, const void * b);73 54 74 55 … … 214 195 void SetNameFromFilename(const char *filename); 215 196 void SetBoxDimension(Vector *dim); 216 double * ReturnFullMatrixforSymmetric(double *cell_size);217 197 void ScanForPeriodicCorrection(ofstream *out); 218 198 bool VerletForceIntegration(ofstream *out, char *file, config &configuration);
Note:
See TracChangeset
for help on using the changeset viewer.