Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/element.hpp

    re345e3 r2a76b0  
    2828 */
    2929class element {
     30  enum {strfield_length=7};
    3031  public:
    3132    double mass;    //!< mass in g/mol
     
    3334    double VanDerWaalsRadius;  //!< can-der-Waals radius
    3435    int Z;          //!< atomic number
    35     char name[64];  //!< atom name, i.e. "Hydrogren"
    36     char symbol[3]; //!< short form of the atom, i.e. "H"
    37     char period[8];    //!< period: n quantum number
    38     char group[8];    //!< group: l quantum number
    39     char block[8];    //!< block: l quantum number
    40     element *previous;  //!< previous item in list
    41     element *next;  //!< next element in list
    42     int *sort;      //!< sorc criteria
     36    char period[strfield_length+1];    //!< period: n quantum number
     37    char group[strfield_length+1];    //!< group: l quantum number
     38    char block[strfield_length+1];    //!< block: l quantum number
    4339    double Valence;   //!< number of valence electrons for this element
    4440    int NoValenceOrbitals;  //!< number of valence orbitals, used for determining bond degree in molecule::CreateConnectmatrix()
     
    4642    double HBondAngle[NDIM];     //!< typical angle for one, two, three bonded hydrogen (in degrees)
    4743
    48   element();
    49   ~element();
     44    element();
     45    element(const element&);
     46    ~element();
    5047
    51   // accessor functions
    52   atomicNumber_t getNumber() const;
    53   std::string getSymbol() const;
    54   std::string getName() const;
     48    element &operator=(const element&);
    5549
    56   //> print element entries to screen
    57   bool Output(std::ostream * const out) const;
    58   bool Checkout(std::ostream * const out, const int No, const int NoOfAtoms) const;
     50    // accessor functions
     51    atomicNumber_t getNumber() const;
     52    std::string &getSymbol();
     53    const std::string &getSymbol() const;
     54    std::string &getName();
     55    const std::string &getName() const;
     56
     57    //> print element entries to screen
     58    bool Output(std::ostream * const out) const;
     59    bool Checkout(std::ostream * const out, const int No, const int NoOfAtoms) const;
    5960
    6061  private:
     62    std::string name;  //!< atom name, i.e. "Hydrogren"
     63    std::string symbol; //!< short form of the atom, i.e. "H"
    6164};
    6265
Note: See TracChangeset for help on using the changeset viewer.