Class Group is an internal class used by class ReactionPath.
More...
#include <Group.h>
|
| Group (size_t n) |
|
| Group (const std::vector< int > &elnumbers) |
|
| Group (const std::vector< 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'. More...
|
|
void | operator+= (const Group &other) |
|
void | operator*= (int a) |
|
bool | operator== (const Group &other) const |
|
void | validate () |
|
bool | valid () const |
| True if all non-zero atom numbers have the same sign. More...
|
|
bool | operator! () const |
|
int | sign () const |
|
size_t | size () const |
|
int | nAtoms () const |
| Number of atoms in the group (>= 0) More...
|
|
int | nAtoms (size_t m) const |
| Number of atoms of element m (positive or negative) More...
|
|
std::ostream & | fmt (std::ostream &s, const std::vector< std::string > &esymbols) const |
|
|
std::vector< int > | m_comp |
|
int | m_sign |
|
Class Group is an internal class used by class ReactionPath.
It represents some subset of the atoms of a molecule.
Definition at line 19 of file Group.h.
void operator-= |
( |
const Group & |
other | ) |
|
|
inline |
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 17 of file Group.cpp.
Referenced by Group::operator-=().
True if all non-zero atom numbers have the same sign.
Definition at line 113 of file Group.h.
Number of atoms in the group (>= 0)
Definition at line 127 of file Group.h.
int nAtoms |
( |
size_t |
m | ) |
const |
|
inline |
Number of atoms of element m (positive or negative)
Definition at line 135 of file Group.h.
The documentation for this class was generated from the following files: