#include <indigox/classes/bond.hpp>
◆ BondAtoms
Container for storing Atom references assigned to an Bond.
◆ Order
Enum for the different possible bond orders.
Enumerator |
---|
UNDEFINED | No defined bond order.
|
SINGLE | Bond order of 1.
|
DOUBLE | Bond order of 2.
|
TRIPLE | Bond order of 3.
|
QUADRUPLE | Bond order of 4.
|
AROMATIC | Aromatic bond.
|
ONEANDAHALF | Non-aromatic bond order of 1.5.
|
TWOANDAHALF | Bond order of 2.5.
|
◆ Stereo
Enum for the different possible bond stereochemistry states.
Enumerator |
---|
UNDEFINED | No defined stereochemistry.
|
NONE | Defined as no stereochemistry.
|
E | E isomer.
|
Z | Z isomer.
|
◆ Bond() [1/3]
◆ Bond() [2/3]
◆ Bond() [3/3]
◆ ~ Bond()
◆ GetAtoms()
Get the atoms of the bond.
- Returns
- pair of the atoms of the bond.
◆ GetID()
◆ GetIndex()
int64_t GetIndex |
( |
| ) |
const |
Get the index from the molecule.
Calculates the index of the bond in the container of bonds of the molecule it is a part of. If the molecule is dead, the index returned is the tag of the bond.
- Returns
- the index of the bond.
◆ GetMolecule()
Molecule this bond is associated with.
The returned shared_ptr is empty if the bond is not assigned to a valid molecule.
- Returns
- the molecule associated with this bond.
◆ GetOrder()
Get the bond order of the bond.
- Returns
- the bond order.
- Todo:
- Obtain order based on molecule data.
◆ GetStereochemistry()
Stereo GetStereochemistry |
( |
| ) |
const |
Get the stereochemistry of the bond.
- Returns
- the stereochemistry of the bond.
- Todo:
- Obtain stereochemistry based on molecule data.
◆ GetTag()
Tag of the bond.
This value may be modified without warning. Use with caution. For a constant identifier to the bond, use IXBond::GetUniqeID().
- Returns
- the tag assigned to the bond.
◆ GetType()
const FFBond& GetType |
( |
| ) |
const |
Get the type of the bond.
- Returns
- the type of the bond.
◆ HasType()
◆ IsAmideBond()
bool IsAmideBond |
( |
| ) |
const |
◆ IsCarbonylBond()
bool IsCarbonylBond |
( |
| ) |
const |
◆ NumAtoms()
constexpr int64_t NumAtoms |
( |
| ) |
const |
|
inline |
Number of atoms this bond is between.
- Returns
- 2.
◆ operator bool()
◆ operator!=()
bool operator!= |
( |
const Bond & |
bnd | ) |
const |
|
inline |
◆ operator<()
bool operator< |
( |
const Bond & |
bnd | ) |
const |
◆ operator<=()
bool operator<= |
( |
const Bond & |
bnd | ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
bool operator== |
( |
const Bond & |
bnd | ) |
const |
◆ operator>()
bool operator> |
( |
const Bond & |
bnd | ) |
const |
◆ operator>=()
bool operator>= |
( |
const Bond & |
bnd | ) |
const |
|
inline |
◆ SetOrder()
void SetOrder |
( |
Order |
order | ) |
|
Set the bond order.
- Parameters
-
order | the bond order to set. |
◆ SetStereochemistry()
void SetStereochemistry |
( |
Stereo |
stereo | ) |
|
Set the stereochemistry of the bond.
- Parameters
-
stereo | the stereochemistry to set. |
◆ SetTag()
void SetTag |
( |
int64_t |
tag | ) |
|
Set the tag of this bond.
The tag of a bond should not be considered stable. Use with caution.
- Parameters
-
◆ SetType()
void SetType |
( |
const FFBond & |
type | ) |
|
Set the type of the bond.
- Parameters
-
type | the type of bond to set. |
◆ cereal::access
friend class cereal::access |
|
friend |
Friendship allows serialisation.
◆ indigox::Molecule
Friendship allows IXMolecule to create new bonds.
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Bond & |
bnd |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: