Ignore:
Timestamp:
Feb 25, 2010, 10:18:50 AM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
bb89b9
Parents:
5bf941
Message:

Added Descriptor that allows querying of atoms by their type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom_atominfo.cpp

    r5bf941 re7e088  
    66 */
    77
     8#include "periodentafel.hpp"
     9#include "World.hpp"
    810#include "atom_atominfo.hpp"
    911
     
    1820};
    1921
     22element *AtomInfo::getType(){
     23  return type;
     24}
     25
     26void AtomInfo::setType(element* _type) {
     27  type = _type;
     28}
     29
     30void AtomInfo::setType(int Z) {
     31  element *elem = World::get()->getPeriode()->FindElement(Z);
     32  setType(elem);
     33}
Note: See TracChangeset for help on using the changeset viewer.