Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/element.cpp

    re138de read4e6  
    1010#include "element.hpp"
    1111
     12using namespace std;
     13
    1214/************************************* Functions for class element **********************************/
    1315
    1416/** Constructor of class element.
    1517 */
    16 element::element() {
    17   Z = -1;
    18   No = -1;
    19   previous = NULL;
    20   next = NULL;
    21   sort = NULL;
     18element::element() :
     19  mass(0),
     20  CovalentRadius(0),
     21  VanDerWaalsRadius(0),
     22        Z(-1),
     23        previous(NULL),
     24        next(NULL),
     25        sort(NULL),
     26        No(-1),
     27        Valence(0),
     28        NoValenceOrbitals(0)
     29{
    2230};
    2331
     
    2937 * \param *out outstream
    3038 */
    31 bool element::Output(ofstream * const out) const
     39bool element::Output(ostream * const out) const
    3240{
    3341  if (out != NULL) {
     
    4452 * \param NoOfAtoms total number of atom of this element type
    4553 */
    46 bool element::Checkout(ofstream * const out, const int Number, const int NoOfAtoms) const
     54bool element::Checkout(ostream * const out, const int Number, const int NoOfAtoms) const
    4755{
    4856  if (out != NULL) {
     
    5260    return false;
    5361};
     62
     63atomicNumber_t element::getNumber() const{
     64  return Z;
     65}
     66
     67string element::getSymbol() const{
     68  return string(symbol);
     69}
Note: See TracChangeset for help on using the changeset viewer.