Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
core::chemical::Element Class Reference

class to describe Elements More...

#include <Element.hh>

Collaboration diagram for core::chemical::Element:
Collaboration graph
[legend]

Public Member Functions

 Element (Size const z, std::string const &symbol, std::string const &name, Real const weight, Size const mass)
 Construct a new Element with its name. More...
 
core::Size z () const
 Return the atomic number. More...
 
std::string const & symbol () const
 Return the element symbol. More...
 
std::string const & name () const
 Return the full name of the Element. More...
 
Real weight () const
 the weight of this element (an average of all isotopes) More...
 
core::Size mass () const
 The mass of the most common. More...
 

Private Attributes

Size z_
 #of protons+neutrons for most common isotope More...
 
std::string const symbol_
 symbol of the element More...
 
std::string const name_
 name of the element More...
 
Real weight_
 atomic weight (average weight of all isotopes) More...
 
Size mass_
 #of protons+neutrons for most common isotope More...
 

Detailed Description

class to describe Elements

class to describe elements Borrows heavily and functions similarly to the rosetta atom type class, AtomType

Constructor & Destructor Documentation

core::chemical::Element::Element ( Size const  z,
std::string const &  symbol,
std::string const &  name,
Real const  weight,
Size const  mass 
)
inline

Construct a new Element with its name.

Member Function Documentation

core::Size core::chemical::Element::mass ( ) const
inline

The mass of the most common.

References mass_.

std::string const& core::chemical::Element::name ( ) const
inline

Return the full name of the Element.

References name_.

std::string const& core::chemical::Element::symbol ( ) const
inline

Return the element symbol.

References symbol_.

Real core::chemical::Element::weight ( ) const
inline

the weight of this element (an average of all isotopes)

References weight_.

core::Size core::chemical::Element::z ( ) const
inline

Return the atomic number.

References z_.

Member Data Documentation

Size core::chemical::Element::mass_
private

#of protons+neutrons for most common isotope

Referenced by mass().

std::string const core::chemical::Element::name_
private

name of the element

Referenced by name().

std::string const core::chemical::Element::symbol_
private

symbol of the element

Referenced by symbol().

Real core::chemical::Element::weight_
private

atomic weight (average weight of all isotopes)

Referenced by weight().

Size core::chemical::Element::z_
private

#of protons+neutrons for most common isotope

Referenced by z().


The documentation for this class was generated from the following file: