Changeset 5dba7a for molecuilder/src/Descriptors
- Timestamp:
- Mar 12, 2010, 1:16:01 PM (15 years ago)
- Children:
- d639c7
- Parents:
- 1e0785
- Location:
- molecuilder/src/Descriptors
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Descriptors/AtomTypeDescriptor.cpp
r1e0785 r5dba7a 13 13 #include "periodentafel.hpp" 14 14 15 AtomTypeDescriptor_impl::AtomTypeDescriptor_impl( element* _type) :15 AtomTypeDescriptor_impl::AtomTypeDescriptor_impl(const element* _type) : 16 16 type(_type) 17 17 {} … … 24 24 } 25 25 26 AtomDescriptor AtomByType( element *elem){26 AtomDescriptor AtomByType(const element *elem){ 27 27 return AtomDescriptor(AtomDescriptor::impl_ptr(new AtomTypeDescriptor_impl(elem))); 28 28 } 29 29 30 30 AtomDescriptor AtomByType(int Z){ 31 element * elem = World::getInstance().getPeriode()->FindElement(Z);31 const element * elem = World::getInstance().getPeriode()->FindElement(Z); 32 32 return AtomByType(elem); 33 33 } -
molecuilder/src/Descriptors/AtomTypeDescriptor.hpp
r1e0785 r5dba7a 13 13 class element; 14 14 15 AtomDescriptor AtomByType( element *);15 AtomDescriptor AtomByType(const element *); 16 16 AtomDescriptor AtomByType(int); 17 17 -
molecuilder/src/Descriptors/AtomTypeDescriptor_impl.hpp
r1e0785 r5dba7a 14 14 { 15 15 public: 16 AtomTypeDescriptor_impl( element* _type);16 AtomTypeDescriptor_impl(const element* _type); 17 17 virtual ~AtomTypeDescriptor_impl(); 18 18 19 19 bool predicate(std::pair<atomId_t,atom*> atom); 20 20 private: 21 element *type;21 const element * const type; 22 22 }; 23 23
Note:
See TracChangeset
for help on using the changeset viewer.