Warning, file /include/Geant4/G4AtomicBond.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 #ifndef G4AtomicBond_H
0033 #define G4AtomicBond_H 1
0034
0035 #include "G4Element.hh"
0036 #include "globals.hh"
0037
0038 class G4AtomicBond
0039 {
0040 public:
0041 enum theBondType
0042 {
0043 Ionic = 0,
0044 Covalent = 1,
0045 Metallic = 2,
0046 NA = -1
0047 };
0048
0049 G4AtomicBond(theBondType aType, G4Element* firstAtomKind, G4int firstAtomNumber,
0050 G4Element* secondAtomKind, G4int secondAtomNumber)
0051 : theFirstAtomKind(firstAtomKind),
0052 theFirstAtomNumber(firstAtomNumber),
0053 theSecondAtomKind(secondAtomKind),
0054 theSecondAtomNumber(secondAtomNumber),
0055 theType(aType)
0056 {}
0057
0058 virtual ~G4AtomicBond() = default;
0059
0060 inline G4Element* GetFirstAtomKind() const { return theFirstAtomKind; };
0061 void SetFirstAtomKind(G4Element* aElement) { theFirstAtomKind = aElement; };
0062
0063 inline G4int GetFirstAtomNumber() const { return theFirstAtomNumber; };
0064 void SetFirstAtomNumber(G4int aInt) { theFirstAtomNumber = aInt; };
0065
0066 inline G4Element* GetSecondAtomKind() const { return theSecondAtomKind; };
0067 void SetSecondAtomKind(G4Element* aElement) { theSecondAtomKind = aElement; };
0068
0069 inline G4int GetSecondAtomNumber() const { return theSecondAtomNumber; };
0070 void SetSecondAtomNumber(G4int aInt) { theSecondAtomNumber = aInt; };
0071
0072 inline theBondType GetType() const { return theType; };
0073 void SetType(theBondType aType) { theType = aType; };
0074
0075 inline G4bool GetAromaticity() const { return theAromaticity; };
0076 void SetAromaticity(G4bool aBool) { theAromaticity = aBool; };
0077
0078 private:
0079
0080
0081
0082
0083
0084 G4Element* theFirstAtomKind;
0085 G4int theFirstAtomNumber;
0086
0087 G4Element* theSecondAtomKind;
0088 G4int theSecondAtomNumber;
0089
0090
0091
0092
0093 theBondType theType;
0094
0095
0096 G4bool theAromaticity{false};
0097 };
0098
0099 #endif