#include <generic.h>
Public Member Functions | |
OBTorsion (const OBTorsion &) | |
OBTorsion copy constructor. | |
~OBTorsion () | |
OBTorsion & | operator= (const OBTorsion &) |
OBTorsion assignment operator. | |
void | Clear () |
Returns the OBTorsion to its original state. | |
bool | Empty () |
bool | AddTorsion (OBAtom *a, OBAtom *b, OBAtom *c, OBAtom *d) |
adds a new torsion to the OBTorsion object | |
bool | AddTorsion (quad< OBAtom *, OBAtom *, OBAtom *, OBAtom * > &atoms) |
adds a new torsion to the OBTorsion object | |
bool | SetAngle (double radians, unsigned int index=0) |
Sets the angle of a torsion in OBTorsion. | |
bool | SetData (OBBond *bond) |
bool | GetAngle (double &radians, unsigned int index=0) |
Obtains the angle of a torsion in OBTorsion. | |
unsigned int | GetBondIdx () |
Gets the bond index of the central bond. | |
unsigned int | GetSize () const |
std::pair< OBAtom *, OBAtom * > | GetBC () |
Gets the two central atoms of ABCD torsion. | |
std::vector< triple< OBAtom *, OBAtom *, double > > | GetADs () |
Gets the vector of distal atoms of ABCD torsion. | |
bool | IsProtonRotor () |
determines if torsion has only protons on either the a or d end | |
Protected Member Functions | |
OBTorsion () | |
OBTorsion (OBAtom *, OBAtom *, OBAtom *, OBAtom *) | |
OBTorsion constructor. | |
std::vector< quad< OBAtom *, OBAtom *, OBAtom *, OBAtom * > > | GetTorsions () |
Returns all the 4 atom sets in OBTorsion. | |
Protected Attributes | |
std::pair< OBAtom *, OBAtom * > | _bc |
std::vector< triple< OBAtom *, OBAtom *, double > > | _ads |
double is angle in rads | |
Friends | |
class | OBMol |
class | OBTorsionData |
OBTorsion | ( | ) | [inline, protected] |
~OBTorsion | ( | ) | [inline] |
Returns all the 4 atom sets in OBTorsion.
void Clear | ( | ) |
Returns the OBTorsion to its original state.
bool Empty | ( | ) | [inline] |
adds a new torsion to the OBTorsion object
adds a new torsion to the OBTorsion object
bool SetAngle | ( | double | radians, | |
unsigned int | index = 0 | |||
) |
bool SetData | ( | OBBond * | bond | ) |
bool GetAngle | ( | double & | radians, | |
unsigned int | index = 0 | |||
) |
GetBondIdx | ( | ) |
Gets the bond index of the central bond.
unsigned int GetSize | ( | ) | const [inline] |
GetBC | ( | ) | [inline] |
Gets the two central atoms of ABCD torsion.
GetADs | ( | ) | [inline] |
Gets the vector of distal atoms of ABCD torsion.
bool IsProtonRotor | ( | ) |
determines if torsion has only protons on either the a or d end
friend class OBMol [friend] |
friend class OBTorsionData [friend] |