Changes in / [7dc102:cb2146]
- Location:
- src
- Files:
-
- 7 added
- 2 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Makefile.am
r7dc102 rcb2146 32 32 LEGACYHEADER = Legacy/oldmenu.hpp 33 33 34 DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp Descriptors/AtomIdDescriptor.cpp Descriptors/AtomTypeDescriptor.cpp Descriptors/MoleculeDescriptor.cpp 35 DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp Descriptors/AtomIdDescriptor.hpp Descriptors/AtomTypeDescriptor.hpp Descriptors/MoleculeDescriptor.hpp 34 DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \ 35 Descriptors/AtomIdDescriptor.cpp \ 36 Descriptors/AtomTypeDescriptor.cpp \ 37 Descriptors/MoleculeDescriptor.cpp \ 38 Descriptors/MoleculeIdDescriptor.cpp 39 40 DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \ 41 Descriptors/AtomIdDescriptor.hpp \ 42 Descriptors/AtomTypeDescriptor.hpp \ 43 Descriptors/MoleculeDescriptor.hpp \ 44 Descriptors/MoleculeIdDescriptor.hpp 36 45 37 46 SOURCE = ${ANALYSISSOURCE} ${ATOMSOURCE} ${PARSERSOURCE} ${PATTERNSOURCE} ${UISOURCE} ${DESCRIPTORSOURCE} ${LEGACYSOURCE} bond.cpp bondgraph.cpp boundary.cpp config.cpp element.cpp ellipsoid.cpp errorlogger.cpp graph.cpp helpers.cpp info.cpp leastsquaremin.cpp linkedcell.cpp lists.cpp log.cpp logger.cpp memoryusageobserver.cpp moleculelist.cpp molecule.cpp molecule_dynamics.cpp molecule_fragmentation.cpp molecule_geometry.cpp molecule_graph.cpp molecule_pointcloud.cpp parser.cpp periodentafel.cpp tesselation.cpp tesselationhelpers.cpp vector.cpp verbose.cpp World.cpp WorldIterators.cpp -
src/Parser/TremoloParser.hpp
r7dc102 rcb2146 18 18 19 19 private: 20 map<st ring,string> moreData;20 map<std::string, std::string> moreData; 21 21 }; 22 22 -
src/World.cpp
r7dc102 rcb2146 159 159 /******************************* IDManagement *****************************/ 160 160 161 // Atoms 162 161 163 atomId_t World::getNextAtomId(){ 162 164 // see if we can reuse some Id … … 199 201 } 200 202 } 203 204 // Molecules 205 201 206 /******************************* Iterators ********************************/ 202 207 -
src/World.hpp
r7dc102 rcb2146 151 151 // Atoms 152 152 153 class AtomIterator { 153 class AtomIterator : 154 public std::iterator<std::iterator_traits<AtomSet::iterator>::difference_type, 155 std::iterator_traits<AtomSet::iterator>::value_type, 156 std::iterator_traits<AtomSet::iterator>::pointer, 157 std::iterator_traits<AtomSet::iterator>::reference> 158 { 154 159 public: 160 161 typedef AtomSet::iterator _Iter; 162 typedef _Iter::value_type value_type; 163 typedef _Iter::difference_type difference_type; 164 typedef _Iter::pointer pointer; 165 typedef _Iter::reference reference; 166 typedef _Iter::iterator_category iterator_category; 167 168 155 169 AtomIterator(); 156 170 AtomIterator(AtomDescriptor, World*); … … 191 205 // Molecules 192 206 193 class MoleculeIterator { 207 class MoleculeIterator : 208 public std::iterator<std::iterator_traits<MoleculeSet::iterator>::difference_type, 209 std::iterator_traits<MoleculeSet::iterator>::value_type, 210 std::iterator_traits<MoleculeSet::iterator>::pointer, 211 std::iterator_traits<MoleculeSet::iterator>::reference> 212 { 194 213 public: 214 215 typedef MoleculeSet::iterator _Iter; 216 typedef _Iter::value_type value_type; 217 typedef _Iter::difference_type difference_type; 218 typedef _Iter::pointer pointer; 219 typedef _Iter::reference reference; 220 typedef _Iter::iterator_category iterator_category; 221 195 222 MoleculeIterator(); 196 223 MoleculeIterator(MoleculeDescriptor, World*); -
src/atom.cpp
r7dc102 rcb2146 306 306 } 307 307 308 int atom::getId() {308 atomId_t atom::getId() { 309 309 return id; 310 310 } -
src/atom.hpp
r7dc102 rcb2146 79 79 void setWorld(World*); 80 80 81 virtual int getId();81 virtual atomId_t getId(); 82 82 virtual bool changeId(atomId_t newId); 83 83 -
src/unittests/Makefile.am
r7dc102 rcb2146 12 12 AnalysisCorrelationToSurfaceUnitTest \ 13 13 AnalysisPairCorrelationUnitTest \ 14 atomsCalculationTest \ 15 AtomDescriptorTest \ 14 16 BondGraphUnitTest \ 17 CacheableTest \ 15 18 GSLMatrixSymmetricUnitTest \ 16 19 GSLMatrixUnitTest \ … … 20 23 ListOfBondsUnitTest \ 21 24 LogUnitTest \ 25 manipulateAtomsTest \ 22 26 MemoryUsageObserverUnitTest \ 23 27 MemoryAllocatorUnitTest \ 28 MoleculeDescriptorTest \ 29 ObserverTest \ 30 ParserUnitTest \ 24 31 StackClassUnitTest \ 25 32 TesselationUnitTest \ … … 27 34 Tesselation_InOutsideUnitTest \ 28 35 VectorUnitTest \ 29 ObserverTest \ 30 CacheableTest \ 31 DescriptorUnittest \ 32 ParserUnitTest \ 33 manipulateAtomsTest \ 34 atomsCalculationTest \ 35 ${MENUTESTS} 36 36 ${MENUTESTS} 37 38 37 39 38 40 check_PROGRAMS = $(TESTS) … … 44 46 TESTSOURCES = \ 45 47 ActOnAllUnitTest.cpp \ 48 ActionSequenceTest.cpp \ 46 49 analysisbondsunittest.cpp \ 47 50 AnalysisCorrelationToPointUnitTest.cpp \ 48 51 AnalysisCorrelationToSurfaceUnitTest.cpp \ 49 52 AnalysisPairCorrelationUnitTest.cpp \ 53 AtomDescriptorTest.cpp \ 54 atomsCalculationTest.cpp \ 50 55 bondgraphunittest.cpp \ 56 CacheableTest.cpp \ 57 DescriptorUnittest.cpp \ 51 58 gslmatrixsymmetricunittest.cpp \ 52 59 gslmatrixunittest.cpp \ … … 56 63 listofbondsunittest.cpp \ 57 64 logunittest.cpp \ 65 manipulateAtomsTest.cpp \ 58 66 memoryallocatorunittest.cpp \ 59 67 memoryusageobserverunittest.cpp \ 68 MoleculeDescriptorTest.cpp \ 69 ObserverTest.cpp \ 70 ParserUnitTest.cpp \ 60 71 stackclassunittest.cpp \ 61 72 tesselationunittest.cpp \ 62 73 tesselation_boundarytriangleunittest.cpp \ 63 74 tesselation_insideoutsideunittest.cpp \ 64 vectorunittest.cpp \ 65 ObserverTest.cpp \ 66 CacheableTest.cpp \ 67 DescriptorUnittest.cpp \ 68 ParserUnitTest.cpp \ 69 manipulateAtomsTest.cpp \ 70 atomsCalculationTest.cpp \ 71 ActionSequenceTest.cpp 75 vectorunittest.cpp 72 76 73 77 TESTHEADERS = \ … … 119 123 MemoryUsageObserverUnitTest_LDADD = ${ALLLIBS} 120 124 125 MoleculeDescriptorTest_SOURCES = UnitTestMain.cpp MoleculeDescriptorTest.cpp MoleculeDescriptorTest.hpp 126 MoleculeDescriptorTest_LDADD = ${ALLLIBS} 127 121 128 StackClassUnitTest_SOURCES = UnitTestMain.cpp stackclassunittest.cpp stackclassunittest.hpp 122 129 StackClassUnitTest_LDADD = ${ALLLIBS} … … 143 150 CacheableTest_LDADD = ${ALLLIBS} 144 151 145 DescriptorUnittest_SOURCES = UnitTestMain.cpp DescriptorUnittest.cpp DescriptorUnittest.hpp146 DescriptorUnittest_LDADD = ${ALLLIBS}152 AtomDescriptorTest_SOURCES = UnitTestMain.cpp AtomDescriptorTest.cpp AtomDescriptorTest.hpp 153 AtomDescriptorTest_LDADD = ${ALLLIBS} 147 154 148 155 ParserUnitTest_SOURCES = UnitTestMain.cpp ParserUnitTest.cpp ParserUnitTest.hpp -
src/unittests/atomsCalculationTest.cpp
r7dc102 rcb2146 30 30 class AtomStub : public atom { 31 31 public: 32 AtomStub( int _id) :32 AtomStub(atomId_t _id) : 33 33 atom(), 34 34 id(_id), … … 36 36 {} 37 37 38 virtual int getId(){38 virtual atomId_t getId(){ 39 39 return id; 40 40 } … … 46 46 bool manipulated; 47 47 private: 48 int id;48 atomId_t id; 49 49 }; 50 50 -
src/unittests/manipulateAtomsTest.cpp
r7dc102 rcb2146 34 34 {} 35 35 36 virtual int getId(){36 virtual atomId_t getId(){ 37 37 return id; 38 38 } … … 44 44 bool manipulated; 45 45 private: 46 int id;46 atomId_t id; 47 47 }; 48 48
Note:
See TracChangeset
for help on using the changeset viewer.