Ignore:
Timestamp:
Mar 12, 2010, 1:16:01 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
d639c7
Parents:
1e0785
Message:

Made the periodentafel use STL-containers instead of custom llists

Location:
molecuilder/src/Descriptors
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Descriptors/AtomTypeDescriptor.cpp

    r1e0785 r5dba7a  
    1313#include "periodentafel.hpp"
    1414
    15 AtomTypeDescriptor_impl::AtomTypeDescriptor_impl(element* _type) :
     15AtomTypeDescriptor_impl::AtomTypeDescriptor_impl(const element* _type) :
    1616  type(_type)
    1717{}
     
    2424}
    2525
    26 AtomDescriptor AtomByType(element *elem){
     26AtomDescriptor AtomByType(const element *elem){
    2727  return AtomDescriptor(AtomDescriptor::impl_ptr(new AtomTypeDescriptor_impl(elem)));
    2828}
    2929
    3030AtomDescriptor AtomByType(int Z){
    31   element * elem = World::getInstance().getPeriode()->FindElement(Z);
     31  const element * elem = World::getInstance().getPeriode()->FindElement(Z);
    3232  return AtomByType(elem);
    3333}
  • molecuilder/src/Descriptors/AtomTypeDescriptor.hpp

    r1e0785 r5dba7a  
    1313class element;
    1414
    15 AtomDescriptor AtomByType(element *);
     15AtomDescriptor AtomByType(const element *);
    1616AtomDescriptor AtomByType(int);
    1717
  • molecuilder/src/Descriptors/AtomTypeDescriptor_impl.hpp

    r1e0785 r5dba7a  
    1414{
    1515public:
    16   AtomTypeDescriptor_impl(element* _type);
     16  AtomTypeDescriptor_impl(const element* _type);
    1717  virtual ~AtomTypeDescriptor_impl();
    1818
    1919  bool predicate(std::pair<atomId_t,atom*> atom);
    2020private:
    21   element *type;
     21  const element * const type;
    2222};
    2323
Note: See TracChangeset for help on using the changeset viewer.