H2 Combustion
Substance Class Reference

This class manages all substances that occur in Reaction or Compound objects. More...

Collaboration diagram for Substance:

List of all members.

Public Member Functions

std::string getName ()

Static Public Member Functions

static SubstancefindAddSubstance (std::string name)
static SubstancefindSubstance (std::string name)

Static Public Attributes

static std::list< Substance * > allSubstances

Detailed Description

Substances are fully identified using their name. Because of the constructor being private, Substance instances can only be generated by use of the static function findAddSubstance(), which first looks, whether a given substance is already available in the list of substances.

 All Classes Files Functions