|
Last change
on this file since f3adfe was 5dba7a, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
|
Made the periodentafel use STL-containers instead of custom llists
|
-
Property mode
set to
100644
|
|
File size:
553 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * atom_atominfo.cpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Oct 19, 2009
|
|---|
| 5 | * Author: heber
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #include "periodentafel.hpp"
|
|---|
| 9 | #include "World.hpp"
|
|---|
| 10 | #include "atom_atominfo.hpp"
|
|---|
| 11 |
|
|---|
| 12 | /** Constructor of class AtomInfo.
|
|---|
| 13 | */
|
|---|
| 14 | AtomInfo::AtomInfo() : type(NULL) {};
|
|---|
| 15 |
|
|---|
| 16 | /** Destructor of class AtomInfo.
|
|---|
| 17 | */
|
|---|
| 18 | AtomInfo::~AtomInfo()
|
|---|
| 19 | {
|
|---|
| 20 | };
|
|---|
| 21 |
|
|---|
| 22 | const element *AtomInfo::getType(){
|
|---|
| 23 | return type;
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | void AtomInfo::setType(const element* _type) {
|
|---|
| 27 | type = _type;
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 | void AtomInfo::setType(int Z) {
|
|---|
| 31 | const element *elem = World::getInstance().getPeriode()->FindElement(Z);
|
|---|
| 32 | setType(elem);
|
|---|
| 33 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.