Changeset dfc1c7 for molecuilder
- Timestamp:
- Sep 5, 2008, 5:02:18 PM (17 years ago)
- Children:
- 5887ed
- Parents:
- 0f508c
- Location:
- molecuilder/src
- Files:
-
- 3 edited
-
boundary.cpp (modified) (1 diff)
-
boundary.hpp (modified) (1 diff)
-
molecules.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/boundary.cpp
r0f508c rdfc1c7 252 252 //ProjectedVector.Output(out); 253 253 //*out << endl; 254 BoundaryTestPair = BoundaryPoints[axis].insert( BoundariesPair (angle, Distance NrPair (radius, Walker) ) );254 BoundaryTestPair = BoundaryPoints[axis].insert( BoundariesPair (angle, DistancePair (radius, Walker) ) ); 255 255 if (BoundaryTestPair.second) { // successfully inserted 256 256 } else { // same point exists, check first r, then distance of original vectors to center of gravity -
molecuilder/src/boundary.hpp
r0f508c rdfc1c7 19 19 20 20 #include "molecules.hpp" 21 22 #define DistanceNrPair pair < double, atom* >23 #define DistanceMap multimap < double, atom* >24 #define DistanceTestPair pair < DistanceMap::iterator, bool>25 26 #define Boundaries map <double, DistanceNrPair >27 #define BoundariesPair pair<double, DistanceNrPair >28 #define BoundariesTestPair pair< Boundaries::iterator, bool>29 30 #define PointMap map < int, class BoundaryPointSet * >31 #define PointPair pair < int, class BoundaryPointSet * >32 #define PointTestPair pair < PointMap::iterator, bool >33 34 #define LineMap map < int, class BoundaryLineSet * >35 #define LinePair pair < int, class BoundaryLineSet * >36 #define LineTestPair pair < LinePair::iterator, bool >37 38 #define TriangleMap map < int, class BoundaryTriangleSet * >39 #define TrianglePair pair < int, class BoundaryTriangleSet * >40 #define TriangleTestPair pair < TrianglePair::iterator, bool >41 42 #define DistanceMultiMap multimap <double, pair < PointMap::iterator, PointMap::iterator> >43 #define DistanceMultiMapPair pair <double, pair < PointMap::iterator, PointMap::iterator> >44 21 45 22 template <typename T> void SetEndpointsOrdered(T endpoints[2], T endpoint1, T endpoint2) -
molecuilder/src/molecules.hpp
r0f508c rdfc1c7 45 45 #define KeySetTestPair pair<KeySet::iterator, bool> 46 46 #define GraphTestPair pair<Graph::iterator, bool> 47 48 #define DistancePair pair < double, atom* > 49 #define DistanceMap multimap < double, atom* > 50 #define DistanceTestPair pair < DistanceMap::iterator, bool> 51 52 #define Boundaries map <double, DistancePair > 53 #define BoundariesPair pair<double, DistancePair > 54 #define BoundariesTestPair pair< Boundaries::iterator, bool> 55 56 #define PointMap map < int, class BoundaryPointSet * > 57 #define PointPair pair < int, class BoundaryPointSet * > 58 #define PointTestPair pair < PointMap::iterator, bool > 59 60 #define LineMap map < int, class BoundaryLineSet * > 61 #define LinePair pair < int, class BoundaryLineSet * > 62 #define LineTestPair pair < LinePair::iterator, bool > 63 64 #define TriangleMap map < int, class BoundaryTriangleSet * > 65 #define TrianglePair pair < int, class BoundaryTriangleSet * > 66 #define TriangleTestPair pair < TrianglePair::iterator, bool > 67 68 #define DistanceMultiMap multimap <double, pair < PointMap::iterator, PointMap::iterator> > 69 #define DistanceMultiMapPair pair <double, pair < PointMap::iterator, PointMap::iterator> > 70 71 /******************************** Some small functions and/or structures **********************************/ 47 72 48 73 struct KeyCompare
Note:
See TracChangeset
for help on using the changeset viewer.
