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

Definition at line 35 of file Element.hh.

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.

Definition at line 41 of file Element.hh.

Member Function Documentation

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

The mass of the most common.

Definition at line 63 of file Element.hh.

References mass_.

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

Return the full name of the Element.

Definition at line 59 of file Element.hh.

References name_.

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

Return the element symbol.

Definition at line 57 of file Element.hh.

References symbol_.

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

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

Definition at line 61 of file Element.hh.

References weight_.

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

Return the atomic number.

Definition at line 55 of file Element.hh.

References z_.

Member Data Documentation

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

#of protons+neutrons for most common isotope

Definition at line 78 of file Element.hh.

Referenced by mass().

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

name of the element

Definition at line 73 of file Element.hh.

Referenced by name().

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

symbol of the element

Definition at line 70 of file Element.hh.

Referenced by symbol().

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

atomic weight (average weight of all isotopes)

Definition at line 76 of file Element.hh.

Referenced by weight().

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

#of protons+neutrons for most common isotope

Definition at line 67 of file Element.hh.

Referenced by z().


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