Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/element.cpp

    rae959a r83f176  
     1/*
     2 * Project: MoleCuilder
     3 * Description: creates and alters molecular systems
     4 * Copyright (C)  2010 University of Bonn. All rights reserved.
     5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.
     6 */
     7
    18/** \file element.cpp
    29 *
     
    1522#include <fstream>
    1623
     24#include "Helpers/Assert.hpp"
    1725#include "element.hpp"
    1826
     
    100108}
    101109
     110double element::getMass() const
     111{
     112  return mass;
     113}
     114
     115double element::getCovalentRadius() const
     116{
     117  return CovalentRadius;
     118}
     119
     120double element::getVanDerWaalsRadius() const
     121{
     122  return VanDerWaalsRadius;
     123}
     124
     125int element::getAtomicNumber() const
     126{
     127  return Z;
     128}
     129
     130double element::getValence() const
     131{
     132  return Valence;
     133}
     134
     135int element::getNoValenceOrbitals() const
     136{
     137  return NoValenceOrbitals;
     138}
     139
     140double element::getHBondDistance(const int i) const
     141{
     142  ASSERT((i>=0) && (i<3), "Access to element::HBondDistance out of bounds.");
     143  return HBondDistance[i];
     144}
     145
     146double element::getHBondAngle(const int i) const
     147{
     148  ASSERT((i>=0) && (i<3), "Access to element::HBondAngle out of bounds.");
     149  return HBondAngle[i];
     150}
     151
    102152string &element::getSymbol(){
    103153  return symbol;
     
    106156const string &element::getSymbol() const{
    107157  return symbol;
     158}
     159
     160void element::setSymbol(const std::string &temp)
     161{
     162  symbol = temp;
    108163}
    109164
     
    116171}
    117172
     173void element::setName(const std::string &temp)
     174{
     175  name = temp;
     176}
     177
    118178std::ostream &operator<<(std::ostream &ost,const element &elem){
    119179  ost << elem.getName() << "(" << elem.getNumber() << ")";
Note: See TracChangeset for help on using the changeset viewer.