Changes in src/element.cpp [ae959a:83f176]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/element.cpp
rae959a r83f176 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * Copyright (C) 2010 University of Bonn. All rights reserved. 5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. 6 */ 7 1 8 /** \file element.cpp 2 9 * … … 15 22 #include <fstream> 16 23 24 #include "Helpers/Assert.hpp" 17 25 #include "element.hpp" 18 26 … … 100 108 } 101 109 110 double element::getMass() const 111 { 112 return mass; 113 } 114 115 double element::getCovalentRadius() const 116 { 117 return CovalentRadius; 118 } 119 120 double element::getVanDerWaalsRadius() const 121 { 122 return VanDerWaalsRadius; 123 } 124 125 int element::getAtomicNumber() const 126 { 127 return Z; 128 } 129 130 double element::getValence() const 131 { 132 return Valence; 133 } 134 135 int element::getNoValenceOrbitals() const 136 { 137 return NoValenceOrbitals; 138 } 139 140 double element::getHBondDistance(const int i) const 141 { 142 ASSERT((i>=0) && (i<3), "Access to element::HBondDistance out of bounds."); 143 return HBondDistance[i]; 144 } 145 146 double element::getHBondAngle(const int i) const 147 { 148 ASSERT((i>=0) && (i<3), "Access to element::HBondAngle out of bounds."); 149 return HBondAngle[i]; 150 } 151 102 152 string &element::getSymbol(){ 103 153 return symbol; … … 106 156 const string &element::getSymbol() const{ 107 157 return symbol; 158 } 159 160 void element::setSymbol(const std::string &temp) 161 { 162 symbol = temp; 108 163 } 109 164 … … 116 171 } 117 172 173 void element::setName(const std::string &temp) 174 { 175 name = temp; 176 } 177 118 178 std::ostream &operator<<(std::ostream &ost,const element &elem){ 119 179 ost << elem.getName() << "(" << elem.getNumber() << ")";
Note:
See TracChangeset
for help on using the changeset viewer.