Class Group is an internal class used by class ReactionPath.
More...
#include <Group.h>
Class Group is an internal class used by class ReactionPath.
It represents some subset of the atoms of a molecule.
Definition at line 20 of file Group.h.
|
| | Group (size_t n) |
| | Group (span< const int > elnumbers) |
| | Group (span< const size_t > elnumbers) |
| | Group (const Group &g) |
| Group & | operator= (const Group &g) |
| void | operator-= (const Group &other) |
| | Decrement the atom numbers by those in group 'other'.
|
| void | operator+= (const Group &other) |
| void | operator*= (int a) |
| bool | operator== (const Group &other) const |
| void | validate () |
| | A group is 'valid' if all of its nonzero atom numbers have the same sign, either positive or negative.
|
| bool | valid () const |
| | True if all non-zero atom numbers have the same sign.
|
| bool | operator! () const |
| int | sign () const |
| size_t | size () const |
| int | nAtoms () const |
| | Number of atoms in the group (>= 0).
|
| int | nAtoms (size_t m) const |
| | Number of atoms of element m (positive or negative).
|
| std::ostream & | fmt (std::ostream &s, span< const string > esymbols) const |
|
| Group | operator- (const Group &g1, const Group &g2) |
| Group | operator+ (const Group &g1, const Group &g2) |
◆ Group() [1/5]
◆ Group() [2/5]
◆ Group() [3/5]
| Group |
( |
span< const int > | elnumbers | ) |
|
|
inline |
◆ Group() [4/5]
| Group |
( |
span< const size_t > | elnumbers | ) |
|
|
inline |
◆ Group() [5/5]
◆ ~Group()
◆ operator=()
| Group & operator= |
( |
const Group & | g | ) |
|
|
inline |
◆ operator-=()
| void operator-= |
( |
const Group & | other | ) |
|
|
inline |
Decrement the atom numbers by those in group 'other'.
Definition at line 56 of file Group.h.
◆ operator+=()
| void operator+= |
( |
const Group & | other | ) |
|
|
inline |
◆ operator*=()
◆ operator==()
| bool operator== |
( |
const Group & | other | ) |
const |
|
inline |
◆ validate()
A group is 'valid' if all of its nonzero atom numbers have the same sign, either positive or negative.
This method checks for this, and if the group is not valid it sets m_sign to -999, and sets all atom numbers to zero.
Definition at line 15 of file Group.cpp.
◆ valid()
True if all non-zero atom numbers have the same sign.
Definition at line 103 of file Group.h.
◆ operator!()
◆ sign()
◆ size()
◆ nAtoms() [1/2]
Number of atoms in the group (>= 0).
Definition at line 117 of file Group.h.
◆ nAtoms() [2/2]
| int nAtoms |
( |
size_t | m | ) |
const |
|
inline |
Number of atoms of element m (positive or negative).
Definition at line 125 of file Group.h.
◆ fmt()
| std::ostream & fmt |
( |
std::ostream & | s, |
|
|
span< const string > | esymbols ) const |
◆ operator-
| Group operator- |
( |
const Group & | g1, |
|
|
const Group & | g2 ) |
|
friend |
◆ operator+
| Group operator+ |
( |
const Group & | g1, |
|
|
const Group & | g2 ) |
|
friend |
◆ m_comp
◆ m_sign
The documentation for this class was generated from the following files: