Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

PTE_ Class Reference
[Periodic Table of Elements]

Periodic Table of Elements Class. More...

#include <PTE.h>

List of all members.

Public Member Functions

Constructors and Destructors
 throw ()
 Default constructor.
 throw ()
 Default constructor.
virtual ~PTE_ () throw ()
 Destructor.
virtual void clear () throw ()
 Clear method.
Assignment
PTE_operator= (const PTE_ &) throw ()
 Assignment operator Does not assign anything.
Operators
bool operator== (const PTE_ &pte) const throw ()
 Equality operator.
Elementoperator[] (const String &symbol) throw ()
 Access operator with a given symbol.
const Elementoperator[] (const String &symbol) const throw ()
 Access operator with a given symbol.
Elementoperator[] (Element::Name name) throw ()
 Access operator with a given name.
const Elementoperator[] (Element::Name name) const throw ()
 Access operator with a given name.
Elementoperator[] (Element::Symbol symbol) throw ()
 Access operator with a given Element::Symbol.
const Elementoperator[] (Element::Symbol symbol) const throw ()
 Access operator with a given Element::Symbol.
Elementoperator[] (Position position) throw ()
 Access operator with a given position.
const Elementoperator[] (Position position) const throw ()
 Access operator with a given position.

Static Public Member Functions

Accessors
ElementgetElement (Position position) throw ()
 Return the element at a given position in the PTE.
ElementgetElement (const String &symbol) throw ()
 Return the element with a given symbol.
Application methods
bool apply (UnaryProcessor< Element > &applicator) throw ()
 Application of an unary processor on every contained element.


Detailed Description

Periodic Table of Elements Class.


Member Function Documentation

bool PTE_::apply UnaryProcessor< Element > &  applicator  )  throw () [static]
 

Application of an unary processor on every contained element.

Parameters:
processor a typed unary processor for Element instances
Returns:
bool - true if application has been terminated successfully, false otherwise

virtual void PTE_::clear  )  throw () [virtual]
 

Clear method.

Element& PTE_::getElement const String symbol  )  throw () [static]
 

Return the element with a given symbol.

Returns:
Element the static Element with the symbol symbol

Element& PTE_::getElement Position  position  )  throw () [static]
 

Return the element at a given position in the PTE.

The position is equal to the atomic number.

Returns:
Element the static Element at the position position

PTE_& PTE_::operator= const PTE_  )  throw ()
 

Assignment operator Does not assign anything.

Implemented just for the OCI.

bool PTE_::operator== const PTE_ pte  )  const throw ()
 

Equality operator.

Always returns true. Implemented just for the OCI.

const Element& PTE_::operator[] Position  position  )  const throw ()
 

Access operator with a given position.

Returns:
Element the const Element with the position position

Element& PTE_::operator[] Position  position  )  throw ()
 

Access operator with a given position.

Returns:
Element the Element with the position position

const Element& PTE_::operator[] Element::Symbol  symbol  )  const throw ()
 

Access operator with a given Element::Symbol.

Returns:
Element the const Element with the symbol symbol

Element& PTE_::operator[] Element::Symbol  symbol  )  throw ()
 

Access operator with a given Element::Symbol.

Returns:
Element the Element with the symbol symbol

const Element& PTE_::operator[] Element::Name  name  )  const throw ()
 

Access operator with a given name.

Returns:
Element the const Element with the name name

Element& PTE_::operator[] Element::Name  name  )  throw ()
 

Access operator with a given name.

Returns:
Element the Element with the name name

const Element& PTE_::operator[] const String symbol  )  const throw ()
 

Access operator with a given symbol.

Returns:
Element the const Element with the symbol symbol

Element& PTE_::operator[] const String symbol  )  throw ()
 

Access operator with a given symbol.

Returns:
Element the Element with the symbol symbol