Open Babel
3.0
|
#include <openbabel/generic.h>
Public Member Functions | |
OBTorsionData & | operator= (const OBTorsionData &) |
virtual OBGenericData * | Clone (OBBase *) const |
void | Clear () |
std::vector< OBTorsion > | GetData () const |
size_t | GetSize () const |
void | SetData (OBTorsion &torsion) |
bool | FillTorsionArray (std::vector< std::vector< unsigned int > > &torsions) |
void | SetAttribute (const std::string &v) |
void | SetOrigin (const DataOrigin s) |
virtual const std::string & | GetAttribute () const |
unsigned int | GetDataType () const |
virtual const std::string & | GetValue () const |
virtual DataOrigin | GetOrigin () const |
Protected Member Functions | |
OBTorsionData () | |
OBTorsionData (const OBTorsionData &) | |
Protected Attributes | |
std::vector< OBTorsion > | _torsions |
std::string | _attr |
unsigned int | _type |
DataOrigin | _source |
Friends | |
class | OBMol |
Used to hold torsions as generic data for OBMol.
Filled by OBMol::FindTorsions()
|
protected |
|
protected |
OBTorsionData & operator= | ( | const OBTorsionData & | src | ) |
|
inlinevirtual |
Reimplemented from OBGenericData.
void Clear | ( | void | ) |
|
inline |
Gets a vector of the OBTorsion objects
|
inline |
Gets the number of torsion structs
void SetData | ( | OBTorsion & | torsion | ) |
Referenced by OBMol::FindTorsions().
bool FillTorsionArray | ( | std::vector< std::vector< unsigned int > > & | torsions | ) |
Fills a vector with the indices of the atoms in torsions (ordered abcd)
torsions | reference to the vector of abcd atom sets |
Referenced by OBMolTorsionIter::OBMolTorsionIter().
|
inlineinherited |
Set the attribute (key), which can be used to retrieve this data.
Referenced by OBGastChrg::AssignPartialCharges(), OpenBabel::ComparePairSecond(), OBMol::DoTransformations(), OBMol::FindLSSR(), OBMol::FindSSSR(), OBForceField::GetAtomTypes(), OBMol::GetFormula(), OBMol::GetLSSR(), OBForceField::GetPartialCharges(), OBMol::GetSSSR(), OBDescriptor::PredictAndSave(), and OBMol::SetFormula().
|
inlineinherited |
Set the origin of this data, which can be used to filter the data.
Referenced by OBGastChrg::AssignPartialCharges(), OpenBabel::ComparePairSecond(), OBMol::DoTransformations(), OBMol::FindAngles(), OBMol::FindLSSR(), OBMol::FindSSSR(), OBMol::FindTorsions(), OBMol::GetFormula(), OBMol::GetLSSR(), OBMol::GetSSSR(), OBDescriptor::PredictAndSave(), and OBMol::SetFormula().
|
inlinevirtualinherited |
Referenced by OpenBabel::extract_thermochemistry(), and OBMoleculeFormat::MakeCombinedMolecule().
|
inlineinherited |
|
inlinevirtualinherited |
Base class returns a default value (the attribute type) but should never be called.
Reimplemented in OBPairData, and OBCommentData.
Referenced by OBDepict::AddAtomLabels(), OBDepict::DrawMolecule(), OBDescriptor::FilterCompare(), and OBDescriptor::GetValues().
|
inlinevirtualinherited |
|
friend |
|
protected |
|
protectedinherited |
attribute tag (e.g., "UnitCell", "Comment" or "Author")
Referenced by OBRotamerList::Clone(), and OBNasaThermoData::OBNasaThermoData().
|
protectedinherited |
attribute type – declared for each subclass
Referenced by OBRotamerList::Clone(), and OBNasaThermoData::OBNasaThermoData().
|
protectedinherited |
source of data for accounting
Referenced by OBConformerData::operator=(), OBSymmetryData::operator=(), OBTorsionData::operator=(), and OBAngleData::operator=().