IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Chemical compoind. More...
Public Member Functions | |
ChemicalCompound (params ChemicalElementQuantity[] elementQuantities) | |
Constructs a new chemical compound that consists of the specified stoichiometric quantities of elements listed in the specified order. More... | |
ChemicalCompound (ChemicalElements el1, int q1) | |
Construct a chemical compound containing the specified element with corresponding stoichiometric number. More... | |
ChemicalCompound (ChemicalElements el1, int q1, ChemicalElements el2, int q2, ChemicalElements el3, int q3, ChemicalElements el4, int q4, ChemicalElements el5, int q5) | |
Construct a chemical compound containing the specified 5 elements with corresponding stoichiometric numbers. More... | |
ChemicalCompound (ChemicalElements el1, int q1, ChemicalElements el2, int q2, ChemicalElements el3, int q3, ChemicalElements el4, int q4, ChemicalElements el5, int q5, ChemicalElements el6, int q6, ChemicalElements el7, int q7, ChemicalElements el8, int q8, ChemicalElements el9, int q9, ChemicalElements el10, int q10) | |
Construct a chemical compound containing the specified 10 elements with corresponding stoichiometric numbers. More... | |
ChemicalCompound (ChemicalElement el1, int q1) | |
Construct a chemical compound containing the specified 10 elements with corresponding stoichiometric numbers. More... | |
ChemicalCompound (ChemicalElement el1, int q1, ChemicalElement el2, int q2, ChemicalElement el3, int q3, ChemicalElement el4, int q4, ChemicalElement el5, int q5) | |
Construct a chemical compound containing the specified 10 elements with corresponding stoichiometric numbers. More... | |
ChemicalCompound (ChemicalElement el1, int q1, ChemicalElement el2, int q2, ChemicalElement el3, int q3, ChemicalElement el4, int q4, ChemicalElement el5, int q5, ChemicalElement el6, int q6, ChemicalElement el7, int q7, ChemicalElement el8, int q8, ChemicalElement el9, int q9, ChemicalElement el10, int q10) | |
Construct a chemical compound containing the specified 10 elements with corresponding stoichiometric numbers. More... | |
ChemicalElementQuantity[] | GetElements () |
Returns an array of chemical elements with stoichiometric numbers that form the current chemical compound. More... | |
void | ClearElements () |
Clears the list of elements with stoichiometric quantities that form the compound. More... | |
void | AddElement (ChemicalElementQuantity el) |
Adds the specified element with stoichiometric quantity to the list defining the compound. More... | |
void | AddElements (params ChemicalElementQuantity[] chemicalElements) |
Adds the specified elements with stoichiometric quantities to the list defining the compound. More... | |
void | RemoveElement (ChemicalElementQuantity el) |
Removes the specified element with stoichiometric quantity to the list defining the compound. More... | |
void | RemoveElement (ChemicalElements whichElement) |
Removes the chemical element specified by the ChemicalElements enumerator from the list of elements forming the compound. More... | |
void | RemoveElement (string elementSymbolOrName) |
Removes the element with either the specified name or symbol from the list of elements forming the compound. More... | |
int | GetElementIndex (ChemicalElements whichElement) |
Returns index of the specified element (defined by the ChemicalElements enumerator) on the list of elements forming the chemical compound, or a negative number if there is no matching element on the list. More... | |
int | GetElementIndex (string elementSymbolOrName) |
Returns index of the element with the specified name or symbol on the list of elements forming the chemical compound, or a negative number if there is no matching element on the list. More... | |
ChemicalElementQuantity | GetElement (ChemicalElements whichElement) |
Returns the chemical element quantity from the list of elements that form the compound that match the specified chemical element enumerator of type ChemicalElements, or null if there is no matchig element. More... | |
ChemicalElementQuantity | GetElement (string elementSymbolOrName) |
Returns the chemical element with stoichiometric quantity from the list of elements that form the compound that match the specified element symbol or name, or null if there is no matchig element. More... | |
Protected Attributes | |
List< ChemicalElementQuantity > | _elements = new List<ChemicalElementQuantity>() |
List of chemical elements with stoichiometric quantities that form the chemical compound. More... | |
Properties | |
int | NumElements [get] |
Gets the number of elements in the chemical compound. More... | |
Chemical compoind.
Consists of a list of chemical elements with quantities.
$A Igor Nov08;
|
inline |
Constructs a new chemical compound that consists of the specified stoichiometric quantities of elements listed in the specified order.
elementQuantities |
|
inline |
Construct a chemical compound containing the specified element with corresponding stoichiometric number.
Elements and corresponding stoichiometric numbers are specified in alternating order - first element, first st. number, second element, second number, etc.
Only elements that are defined and have stoichiometric numbers greater thatn 0 are added.
References IG.Lib.None.
|
inline |
Construct a chemical compound containing the specified 5 elements with corresponding stoichiometric numbers.
Elements and corresponding stoichiometric numbers are specified in alternating order - first element, first st. number, second element, second number, etc.
Only elements that are defined and have stoichiometric numbers greater thatn 0 are added.
References IG.Lib.None.
|
inline |
Construct a chemical compound containing the specified 10 elements with corresponding stoichiometric numbers.
Elements and corresponding stoichiometric numbers are specified in alternating order - first element, first st. number, second element, second number, etc.
Only elements that are defined and have stoichiometric numbers greater thatn 0 are added.
|
inline |
Construct a chemical compound containing the specified 10 elements with corresponding stoichiometric numbers.
Elements and corresponding stoichiometric numbers are specified in alternating order - first element, first st. number, second element, second number, etc.
Only elements that are defined and have stoichiometric numbers greater thatn 0 are added.
|
inline |
Construct a chemical compound containing the specified 10 elements with corresponding stoichiometric numbers.
Elements and corresponding stoichiometric numbers are specified in alternating order - first element, first st. number, second element, second number, etc.
Only elements that are defined and have stoichiometric numbers greater thatn 0 are added.
|
inline |
Construct a chemical compound containing the specified 10 elements with corresponding stoichiometric numbers.
Elements and corresponding stoichiometric numbers are specified in alternating order - first element, first st. number, second element, second number, etc.
Only elements that are defined and have stoichiometric numbers greater thatn 0 are added.
|
inline |
Returns an array of chemical elements with stoichiometric numbers that form the current chemical compound.
Referenced by ChemicalCompoundDto.CopyFromPlain().
|
inline |
Clears the list of elements with stoichiometric quantities that form the compound.
|
inline |
Adds the specified element with stoichiometric quantity to the list defining the compound.
el | Element to be added. |
|
inline |
Adds the specified elements with stoichiometric quantities to the list defining the compound.
el | Elements to be added. |
|
inline |
Removes the specified element with stoichiometric quantity to the list defining the compound.
el | Element to be removed. |
|
inline |
Removes the chemical element specified by the ChemicalElements enumerator from the list of elements forming the compound.
whichElement | Specifies the element to be removed. |
|
inline |
Removes the element with either the specified name or symbol from the list of elements forming the compound.
elementSymbolOrName | Symbol or name (any ofthose two is valid) of the chemical element to be removed. |
|
inline |
Returns index of the specified element (defined by the ChemicalElements enumerator) on the list of elements forming the chemical compound, or a negative number if there is no matching element on the list.
whichElement | Enumerator of type ChemicalElements that specifies the element whose index is returned. |
References IG.Physics.ChemicalElement.Element.
|
inline |
Returns index of the element with the specified name or symbol on the list of elements forming the chemical compound, or a negative number if there is no matching element on the list.
elementSymbolOrName | Either symbol of name of the element whose index is returned (both are acceptable). |
References IG.Physics.ChemicalElement.Name, and IG.Physics.ChemicalElement.Symbol.
|
inline |
Returns the chemical element quantity from the list of elements that form the compound that match the specified chemical element enumerator of type ChemicalElements, or null if there is no matchig element.
whichElement | Enumerator of type ChemicalElements that defines which element with stoichiometric quantity is to be returned. |
|
inline |
Returns the chemical element with stoichiometric quantity from the list of elements that form the compound that match the specified element symbol or name, or null if there is no matchig element.
whichElement | Symbol or name of the element to be returned (both are accepted). |
If null or empty string then null is returned.
|
protected |
List of chemical elements with stoichiometric quantities that form the chemical compound.
Order of elements matters as it is used for printing the compound's molecular formula.
|
get |
Gets the number of elements in the chemical compound.
Referenced by ChemicalCompoundDto.CopyFromPlain().