Changes in / [7dc102:cb2146]


Ignore:
Location:
src
Files:
7 added
2 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • src/Makefile.am

    r7dc102 rcb2146  
    3232LEGACYHEADER = Legacy/oldmenu.hpp
    3333
    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
     34DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \
     35                                   Descriptors/AtomIdDescriptor.cpp \
     36                                   Descriptors/AtomTypeDescriptor.cpp \
     37                                   Descriptors/MoleculeDescriptor.cpp \
     38                                   Descriptors/MoleculeIdDescriptor.cpp
     39                                   
     40DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp \
     41                                   Descriptors/AtomIdDescriptor.hpp \
     42                                   Descriptors/AtomTypeDescriptor.hpp \
     43                                   Descriptors/MoleculeDescriptor.hpp \
     44                                   Descriptors/MoleculeIdDescriptor.hpp
    3645
    3746SOURCE = ${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  
    1818
    1919private:
    20   map<string, string> moreData;
     20  map<std::string, std::string> moreData;
    2121};
    2222
  • src/World.cpp

    r7dc102 rcb2146  
    159159/******************************* IDManagement *****************************/
    160160
     161// Atoms
     162
    161163atomId_t World::getNextAtomId(){
    162164  // see if we can reuse some Id
     
    199201  }
    200202}
     203
     204// Molecules
     205
    201206/******************************* Iterators ********************************/
    202207
  • src/World.hpp

    r7dc102 rcb2146  
    151151  // Atoms
    152152
    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  {
    154159  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
    155169    AtomIterator();
    156170    AtomIterator(AtomDescriptor, World*);
     
    191205  // Molecules
    192206
    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  {
    194213  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
    195222    MoleculeIterator();
    196223    MoleculeIterator(MoleculeDescriptor, World*);
  • src/atom.cpp

    r7dc102 rcb2146  
    306306}
    307307
    308 int atom::getId() {
     308atomId_t atom::getId() {
    309309  return id;
    310310}
  • src/atom.hpp

    r7dc102 rcb2146  
    7979  void setWorld(World*);
    8080
    81   virtual int getId();
     81  virtual atomId_t getId();
    8282  virtual bool changeId(atomId_t newId);
    8383
  • src/unittests/Makefile.am

    r7dc102 rcb2146  
    1212  AnalysisCorrelationToSurfaceUnitTest \
    1313  AnalysisPairCorrelationUnitTest \
     14  atomsCalculationTest \
     15  AtomDescriptorTest \
    1416  BondGraphUnitTest \
     17  CacheableTest \
    1518  GSLMatrixSymmetricUnitTest \
    1619  GSLMatrixUnitTest \
     
    2023  ListOfBondsUnitTest \
    2124  LogUnitTest \
     25  manipulateAtomsTest \
    2226  MemoryUsageObserverUnitTest \
    2327  MemoryAllocatorUnitTest \
     28  MoleculeDescriptorTest \
     29  ObserverTest \
     30  ParserUnitTest \
    2431  StackClassUnitTest \
    2532  TesselationUnitTest \
     
    2734  Tesselation_InOutsideUnitTest \
    2835  VectorUnitTest \
    29   ObserverTest \
    30   CacheableTest \
    31   DescriptorUnittest \
    32   ParserUnitTest \
    33   manipulateAtomsTest \
    34   atomsCalculationTest \
    35   ${MENUTESTS} 
    36    
     36  ${MENUTESTS}
     37 
     38
    3739 
    3840check_PROGRAMS = $(TESTS)
     
    4446TESTSOURCES = \
    4547  ActOnAllUnitTest.cpp \
     48  ActionSequenceTest.cpp \
    4649  analysisbondsunittest.cpp \
    4750  AnalysisCorrelationToPointUnitTest.cpp \
    4851  AnalysisCorrelationToSurfaceUnitTest.cpp  \
    4952  AnalysisPairCorrelationUnitTest.cpp \
     53  AtomDescriptorTest.cpp \
     54  atomsCalculationTest.cpp \
    5055  bondgraphunittest.cpp \
     56  CacheableTest.cpp \
     57  DescriptorUnittest.cpp \
    5158  gslmatrixsymmetricunittest.cpp \
    5259  gslmatrixunittest.cpp \
     
    5663  listofbondsunittest.cpp \
    5764  logunittest.cpp \
     65  manipulateAtomsTest.cpp \
    5866  memoryallocatorunittest.cpp  \
    5967  memoryusageobserverunittest.cpp \
     68  MoleculeDescriptorTest.cpp \
     69  ObserverTest.cpp \
     70  ParserUnitTest.cpp \
    6071  stackclassunittest.cpp \
    6172  tesselationunittest.cpp \
    6273  tesselation_boundarytriangleunittest.cpp \
    6374  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
    7276
    7377TESTHEADERS = \
     
    119123MemoryUsageObserverUnitTest_LDADD = ${ALLLIBS}
    120124
     125MoleculeDescriptorTest_SOURCES = UnitTestMain.cpp MoleculeDescriptorTest.cpp MoleculeDescriptorTest.hpp
     126MoleculeDescriptorTest_LDADD = ${ALLLIBS}
     127
    121128StackClassUnitTest_SOURCES = UnitTestMain.cpp stackclassunittest.cpp stackclassunittest.hpp
    122129StackClassUnitTest_LDADD = ${ALLLIBS}
     
    143150CacheableTest_LDADD = ${ALLLIBS}
    144151
    145 DescriptorUnittest_SOURCES = UnitTestMain.cpp DescriptorUnittest.cpp DescriptorUnittest.hpp
    146 DescriptorUnittest_LDADD = ${ALLLIBS}
     152AtomDescriptorTest_SOURCES = UnitTestMain.cpp AtomDescriptorTest.cpp AtomDescriptorTest.hpp
     153AtomDescriptorTest_LDADD = ${ALLLIBS}
    147154
    148155ParserUnitTest_SOURCES = UnitTestMain.cpp ParserUnitTest.cpp ParserUnitTest.hpp
  • src/unittests/atomsCalculationTest.cpp

    r7dc102 rcb2146  
    3030class AtomStub : public atom {
    3131public:
    32   AtomStub(int _id) :
     32  AtomStub(atomId_t _id) :
    3333  atom(),
    3434  id(_id),
     
    3636  {}
    3737
    38   virtual int getId(){
     38  virtual atomId_t getId(){
    3939    return id;
    4040  }
     
    4646  bool manipulated;
    4747private:
    48   int id;
     48  atomId_t id;
    4949};
    5050
  • src/unittests/manipulateAtomsTest.cpp

    r7dc102 rcb2146  
    3434  {}
    3535
    36   virtual int getId(){
     36  virtual atomId_t getId(){
    3737    return id;
    3838  }
     
    4444  bool manipulated;
    4545private:
    46   int id;
     46  atomId_t id;
    4747};
    4848
Note: See TracChangeset for help on using the changeset viewer.