Changes in src/periodentafel.cpp [389cc8:f34c23]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/periodentafel.cpp
r389cc8 rf34c23 125 125 * \return pointer to element 126 126 */ 127 element * const periodentafel::FindElement(const string &shorthand) const127 element * const periodentafel::FindElement(const char * const shorthand) const 128 128 { 129 129 element *res = 0; … … 205 205 for(const_iterator iter=elements.begin(); iter !=elements.end();++iter){ 206 206 result = result && (*iter).second->Output(output); 207 } 208 return result; 209 } else 210 return false; 211 }; 212 213 /** Prints period table to given stream. 214 * \param *output output stream 215 * \param *checkliste elements table for this molecule 216 */ 217 bool periodentafel::Checkout(ostream * const output, const int * const checkliste) const 218 { 219 bool result = true; 220 int No = 1; 221 222 if (output != NULL) { 223 *output << "# Ion type data (PP = PseudoPotential, Z = atomic number)" << endl; 224 *output << "#Ion_TypeNr.\tAmount\tZ\tRGauss\tL_Max(PP)L_Loc(PP)IonMass\t# chemical name, symbol" << endl; 225 for(const_iterator iter=elements.begin(); iter!=elements.end();++iter){ 226 if (((*iter).first < MAX_ELEMENTS) && (checkliste[(*iter).first])) { 227 (*iter).second->No = No; 228 result = result && (*iter).second->Checkout(output, No++, checkliste[(*iter).first]); 229 } 207 230 } 208 231 return result;
Note:
See TracChangeset
for help on using the changeset viewer.