Changes in src/periodentafel.cpp [f34c23:389cc8]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/periodentafel.cpp
rf34c23 r389cc8 125 125 * \return pointer to element 126 126 */ 127 element * const periodentafel::FindElement(const char * constshorthand) const127 element * const periodentafel::FindElement(const string &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 } else210 return false;211 };212 213 /** Prints period table to given stream.214 * \param *output output stream215 * \param *checkliste elements table for this molecule216 */217 bool periodentafel::Checkout(ostream * const output, const int * const checkliste) const218 {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 }230 207 } 231 208 return result;
Note:
See TracChangeset
for help on using the changeset viewer.