IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Represents a sigle chemical element with its main data. More...
Public Member Functions | |
ChemicalElement (ChemicalElements whichElement, double atomicWeight, ChemicalElementProperties properties) | |
Constructs a new chemical element element enumerator. More... | |
ChemicalElement (ChemicalElements whichElement, double atomicWeight) | |
Constructs a new chemical element element enumerator. More... | |
ChemicalElement (ChemicalElements whichElement) | |
Constructs a new chemical element element enumerator, with atomic weight set to 0. More... | |
ChemicalElement (string symbol, double atomicWeight, ChemicalElementProperties properties) | |
Constructs a new chemical element with specified element symbol. More... | |
ChemicalElement (string symbol, double atomicWeight) | |
Constructs a new chemical element with specified element symbol. More... | |
ChemicalElement (string symbol) | |
Constructs a new chemical element with specified element symbol, with atomic weight set to 0. More... | |
ChemicalElement (ChemicalElement element) | |
Constructs a new chemical element object that is a deep copy of the specified chemical element. More... | |
override string | ToString () |
Returns string representation of the current chemical element, which is just the element symbol. More... | |
virtual string | TostringShort () |
Returns string representation of the current chemical element, which is just the element symbol. More... | |
virtual string | ToStringLong () |
Returns longer string representation of the current themical element, which includes Properties. More... | |
Static Public Member Functions | |
static void | CopyPlain (ChemicalElement original, ChemicalElement result) |
Deep copies the specified chemical element to another chemical element object. More... | |
Public Attributes | |
ChemicalElements | Element |
Enum of type ChemicalElements specifying which chemical element this is. More... | |
string | Symbol |
Chemical element's symbol. More... | |
int | AtomicNumber |
Atomic number of the chemical element. More... | |
double | AtomicWeight |
Standard atomic weight in atomic mass units. More... | |
ChemicalElementProperties | Properties |
Properties | |
string | Name [get, set] |
Long name of the chemical element. More... | |
Private Member Functions | |
ChemicalElement () | |
Private Attributes | |
string | _name |
Represents a sigle chemical element with its main data.
$A Igor Oct08;
|
inlineprivate |
|
inline |
Constructs a new chemical element element enumerator.
whichElement | Enum of type ChemicalElements that defines which chemical element is created. |
atomicWeight | Atomic weight of the element. |
properties | Other properties of this element (optional). |
|
inline |
Constructs a new chemical element element enumerator.
whichElement | Enum of type ChemicalElements that defines which chemical element is created. |
atomicWeight | Atomic weight of the element. |
|
inline |
Constructs a new chemical element element enumerator, with atomic weight set to 0.
whichElement | Enum of type ChemicalElements that defines which chemical element is created. |
|
inline |
Constructs a new chemical element with specified element symbol.
symbol | Symbol of the chemical element. Enum of type ChemicalElements is obtained by parsing this symbol, whichis case sensitive (If there is no such enumeration value, exception is thrown). |
atomicWeight | Atomic weight of the element. |
properties | Other properties of this element (optional). |
|
inline |
Constructs a new chemical element with specified element symbol.
symbol | Symbol of the chemical element. Enum of type ChemicalElements is obtained by parsing this symbol, whichis case sensitive (If there is no such enumeration value, exception is thrown). |
atomicWeight | Atomic weight of the element. |
|
inline |
Constructs a new chemical element with specified element symbol, with atomic weight set to 0.
symbol | Symbol of the chemical element. Enum of type ChemicalElements is obtained by parsing this symbol, whichis case sensitive (If there is no such enumeration value, exception is thrown). |
atomicWeight | Atomic weight of the element. |
|
inline |
Constructs a new chemical element object that is a deep copy of the specified chemical element.
element | Existing chemical element that is copied. |
|
inline |
Returns string representation of the current chemical element, which is just the element symbol.
Warning:
Function of this method can change in the future!
In orter to make sure that only a symbol is written, use the TostringShort method.
|
inlinevirtual |
Returns string representation of the current chemical element, which is just the element symbol.
Reimplemented in IG.Physics.ChemicalElementQuantity.
|
inlinevirtual |
Returns longer string representation of the current themical element, which includes Properties.
Reimplemented in IG.Physics.ChemicalElementQuantity.
References IG.Physics.ChemicalElementProperties.ToString().
|
inlinestatic |
Deep copies the specified chemical element to another chemical element object.
original | Original chemical element that is copied to another object. |
result | Object to which the original element is copied. |
References IG.Physics.ChemicalElement.AtomicNumber, IG.Physics.ChemicalElement.AtomicWeight, IG.Physics.ChemicalElement.Name, IG.Physics.ChemicalElement.Properties, and IG.Physics.ChemicalElement.Symbol.
ChemicalElements IG.Physics.ChemicalElement.Element |
Enum of type ChemicalElements specifying which chemical element this is.
Referenced by IG.Physics.ChemicalElementDtoBase< ChemicalElementType >.CopyFromPlain(), and IG.Physics.ChemicalCompound.GetElementIndex().
string IG.Physics.ChemicalElement.Symbol |
Chemical element's symbol.
Referenced by IG.Physics.ChemicalElementProperties.ChemicalElementProperties(), IG.Physics.ChemicalElementDtoBase< ChemicalElementType >.CopyFromPlain(), IG.Physics.ChemicalElementProperties.CopyPlain(), IG.Physics.ChemicalElement.CopyPlain(), and IG.Physics.ChemicalCompound.GetElementIndex().
|
private |
int IG.Physics.ChemicalElement.AtomicNumber |
Atomic number of the chemical element.
Referenced by IG.Physics.ChemicalElementProperties.ChemicalElementProperties(), IG.Physics.ChemicalElementDtoBase< ChemicalElementType >.CopyFromPlain(), IG.Physics.ChemicalElementProperties.CopyPlain(), and IG.Physics.ChemicalElement.CopyPlain().
double IG.Physics.ChemicalElement.AtomicWeight |
Standard atomic weight in atomic mass units.
Referenced by IG.Physics.ChemicalElementProperties.ChemicalElementProperties(), IG.Physics.ChemicalElementDtoBase< ChemicalElementType >.CopyFromPlain(), IG.Physics.ChemicalElementProperties.CopyPlain(), and IG.Physics.ChemicalElement.CopyPlain().
ChemicalElementProperties IG.Physics.ChemicalElement.Properties |
|
getset |
Long name of the chemical element.
If not specified then element symbol is returned by getter.
Referenced by IG.Physics.ChemicalElementDtoBase< ChemicalElementType >.CopyFromPlain(), IG.Physics.ChemicalElement.CopyPlain(), and IG.Physics.ChemicalCompound.GetElementIndex().