Changes in src/element.hpp [e345e3:2a76b0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/element.hpp
re345e3 r2a76b0 28 28 */ 29 29 class element { 30 enum {strfield_length=7}; 30 31 public: 31 32 double mass; //!< mass in g/mol … … 33 34 double VanDerWaalsRadius; //!< can-der-Waals radius 34 35 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 43 39 double Valence; //!< number of valence electrons for this element 44 40 int NoValenceOrbitals; //!< number of valence orbitals, used for determining bond degree in molecule::CreateConnectmatrix() … … 46 42 double HBondAngle[NDIM]; //!< typical angle for one, two, three bonded hydrogen (in degrees) 47 43 48 element(); 49 ~element(); 44 element(); 45 element(const element&); 46 ~element(); 50 47 51 // accessor functions 52 atomicNumber_t getNumber() const; 53 std::string getSymbol() const; 54 std::string getName() const; 48 element &operator=(const element&); 55 49 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; 59 60 60 61 private: 62 std::string name; //!< atom name, i.e. "Hydrogren" 63 std::string symbol; //!< short form of the atom, i.e. "H" 61 64 }; 62 65
Note:
See TracChangeset
for help on using the changeset viewer.