Changeset 86b917 for molecuilder/src


Ignore:
Timestamp:
Feb 5, 2010, 4:26:18 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
973c03
Parents:
d2d8f5
git-author:
Tillmann Crueger <crueger@…> (02/05/10 16:25:40)
git-committer:
Tillmann Crueger <crueger@…> (02/05/10 16:26:18)
Message:

Added descriptors that allow multiple kinds of access to atoms

Location:
molecuilder/src
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Makefile.am

    rd2d8f5 r86b917  
    2929LEGACYHEADER = Legacy/oldmenu.hpp
    3030
    31 SOURCE = ${ANALYSISSOURCE} ${ATOMSOURCE} ${PATTERNSOURCE} ${UISOURCE} ${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 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
    32 HEADER = ${ANALYSISHEADER} ${ATOMHEADER} ${PATTERNHEADER} ${UIHEADER} ${LEGACYHEADER} bond.hpp bondgraph.hpp boundary.hpp config.hpp defs.hpp element.hpp ellipsoid.hpp errorlogger.hpp graph.hpp helpers.hpp info.hpp leastsquaremin.hpp linkedcell.hpp lists.hpp log.hpp logger.hpp memoryallocator.hpp memoryusageobserver.hpp molecule.hpp molecule_template.hpp parser.hpp periodentafel.hpp stackclass.hpp tesselation.hpp tesselationhelpers.hpp vector.hpp verbose.hpp World.hpp
     31DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp Descriptors/AtomIdDescriptor.cpp
     32DESCRIPTORHEADER = Descriptors/AtomDescriptor.hpp Descriptors/AtomIdDescriptor.hpp
     33
     34SOURCE = ${ANALYSISSOURCE} ${ATOMSOURCE} ${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 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
     35HEADER = ${ANALYSISHEADER} ${ATOMHEADER} ${PATTERNHEADER} ${UIHEADER} ${DESCRIPTORHEADER} ${LEGACYHEADER} bond.hpp bondgraph.hpp boundary.hpp config.hpp defs.hpp element.hpp ellipsoid.hpp errorlogger.hpp graph.hpp helpers.hpp info.hpp leastsquaremin.hpp linkedcell.hpp lists.hpp log.hpp logger.hpp memoryallocator.hpp memoryusageobserver.hpp molecule.hpp molecule_template.hpp parser.hpp periodentafel.hpp stackclass.hpp tesselation.hpp tesselationhelpers.hpp vector.hpp verbose.hpp World.hpp
    3336
    3437BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB)
  • molecuilder/src/World.cpp

    rd2d8f5 r86b917  
    99
    1010#include "atom.hpp"
     11#include "Descriptors/AtomDescriptor.hpp"
    1112
    1213using namespace std;
     
    1516periodentafel* World::getPeriode(){
    1617  return periode;
     18}
     19
     20atom* World::getAtom(AtomDescriptor &descriptor){
     21  return descriptor.find();
     22}
     23
     24vector<atom*> World::getAllAtoms(AtomDescriptor &descriptor){
     25  return descriptor.findAll();
    1726}
    1827
  • molecuilder/src/World.hpp

    rd2d8f5 r86b917  
    1111#include <boost/thread.hpp>
    1212#include <map>
     13#include <vector>
    1314
    1415#include "Patterns/Observer.hpp"
     
    1920class MoleculeListClass;
    2021class atom;
     22class AtomDescriptor;
    2123
    2224class World : public Observable
    2325{
     26friend class AtomDescriptor;
    2427public:
    2528
    2629  /***** getter and setter *****/
    2730  periodentafel* getPeriode();
     31  atom* getAtom(AtomDescriptor& descriptor);
     32  std::vector<atom*> getAllAtoms(AtomDescriptor& descriptor);
    2833private:
    2934  periodentafel *periode;
Note: See TracChangeset for help on using the changeset viewer.