FreeFOAM The Cross-Platform CFD Toolkit
atomicWeightTable Class Reference

A table of atomic weights for all the elements. More...

#include <specie/atomicWeights.H>


Detailed Description

A table of atomic weights for all the elements.

Source files

Definition at line 50 of file atomicWeights.H.

+ Inheritance diagram for atomicWeightTable:
+ Collaboration diagram for atomicWeightTable:

List of all members.

Classes

struct  atomicWeight
 Structure to hold the element name and atomic weight pair. More...

Public Member Functions

 atomicWeightTable ()
 Construct from atomicWeights_.
- Public Member Functions inherited from HashTable< scalar >
bool set (const word &, const scalar &newElmt)
 Assign a new hashedEntry, overwriting existing entries.
 HashTable (const label size=128)
 Construct given initial table size.
 HashTable (Istream &, const label size=128)
 Construct from Istream.
 HashTable (const HashTable< scalar, word, string::hash > &)
 Construct as copy.
 HashTable (const Xfer< HashTable< scalar, word, string::hash > > &)
 Construct by transferring the parameter contents.
 ~HashTable ()
label size () const
 Return number of elements in table.
bool empty () const
 Return true if the hash table is empty.
bool found (const word &) const
 Return true if hashedEntry is found in table.
iterator find (const word &)
 Find and return an iterator set at the hashedEntry.
const_iterator find (const word &) const
 Find and return an const_iterator set at the hashedEntry.
List< wordtoc () const
 Return the table of contents.
List< wordsortedToc () const
 Return the table of contents as a sorted list.
OstreamprintInfo (Ostream &) const
 Print information.
bool insert (const word &, const scalar &newElmt)
 Insert a new hashedEntry.
bool erase (const iterator &)
 Erase an hashedEntry specified by given iterator.
bool erase (const word &)
 Erase an hashedEntry specified by given key if in table.
label erase (const UList< word > &)
 Remove entries given by the listed keys from this HashTable.
label erase (const HashTable< AnyType, word, AnyHash > &)
 Remove entries given by the given keys from this HashTable.
void resize (const label newSize)
 Resize the hash table for efficiency.
void clear ()
 Clear all entries from table.
void clearStorage ()
 Clear the table entries and the table itself.
void transfer (HashTable< scalar, word, string::hash > &)
 Transfer the contents of the argument table into this table.
Xfer< HashTable< scalar, word,
string::hash > > 
xfer ()
 Transfer contents to the Xfer container.
scalar & operator[] (const word &)
 Find and return an hashedEntry.
const scalar & operator[] (const word &) const
 Find and return an hashedEntry.
scalar & operator() (const word &)
 Find and return an hashedEntry, create it null if not present.
void operator= (const HashTable< scalar, word, string::hash > &)
 Assignment.
bool operator== (const HashTable< scalar, word, string::hash > &) const
 Equality. Two hash tables are equal if all contents of first are.
bool operator!= (const HashTable< scalar, word, string::hash > &) const
 The opposite of the equality operation. Takes linear time.
iterator begin ()
 iterator set to the begining of the HashTable
const_iterator begin () const
 const_iterator set to the beginning of the HashTable
const iterator & end ()
 iterator set to beyond the end of the HashTable
const const_iterator & end () const
 const_iterator set to beyond the end of the HashTable
const_iterator cbegin () const
 const_iterator set to the beginning of the HashTable
const const_iterator & cend () const
 const_iterator set to beyond the end of the HashTable

Static Public Attributes

static const int nElements = 103
static const atomicWeight atomicWeights [nElements]
 Static table of the weights of all known elements.

Additional Inherited Members

- Public Types inherited from HashTable< scalar >
typedef scalar value_type
 Type of values the HashTable contains.
typedef scalar & reference
 Type that can be used for storing into HashTable::value_type.
typedef const scalar & const_reference
 Type that can be used for storing into constant.
typedef label size_type
 The type that can represent the size of a HashTable.

Constructor & Destructor Documentation


Member Data Documentation

const int nElements = 103
static

Definition at line 66 of file atomicWeights.H.

Referenced by atomicWeightTable::atomicWeightTable().

const Foam::atomicWeightTable::atomicWeight atomicWeights
static

Static table of the weights of all known elements.

Definition at line 69 of file atomicWeights.H.

Referenced by atomicWeightTable::atomicWeightTable().


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