source: molecuilder/src/atom_atominfo.cpp@ d639c7

Last change on this file since d639c7 was 5dba7a, checked in by Tillmann Crueger <crueger@…>, 15 years ago

Made the periodentafel use STL-containers instead of custom llists

  • Property mode set to 100644
File size: 553 bytes
RevLine 
[2e2a70]1/*
2 * atom_atominfo.cpp
3 *
4 * Created on: Oct 19, 2009
5 * Author: heber
6 */
7
[e7e088]8#include "periodentafel.hpp"
9#include "World.hpp"
[2e2a70]10#include "atom_atominfo.hpp"
11
12/** Constructor of class AtomInfo.
13 */
14AtomInfo::AtomInfo() : type(NULL) {};
15
16/** Destructor of class AtomInfo.
17 */
18AtomInfo::~AtomInfo()
19{
20};
21
[5dba7a]22const element *AtomInfo::getType(){
[e7e088]23 return type;
24}
25
[5dba7a]26void AtomInfo::setType(const element* _type) {
[e7e088]27 type = _type;
28}
29
30void AtomInfo::setType(int Z) {
[5dba7a]31 const element *elem = World::getInstance().getPeriode()->FindElement(Z);
[e7e088]32 setType(elem);
33}
Note: See TracBrowser for help on using the repository browser.