23 #include <openbabel/babelconfig.h> 33 # define UNUSED(x) UNUSED_ ## x __attribute__((unused)) 34 #elif defined(__LCLINT__) 62 namespace OBGenericDataType
246 std::vector<OBGenericData*>::iterator m;
247 for (m = _vdata.begin();m != _vdata.end();m++)
254 virtual bool Clear();
277 T* pOb =
dynamic_cast<T*
>(
this);
286 virtual const char *
GetTitle(
bool UNUSED(replaceNewlines) =
true)
const {
return "";}
291 bool HasData(
const std::string &);
294 bool HasData(
const char *);
296 bool HasData(
const unsigned int type);
298 void DeleteData(
unsigned int type);
302 void DeleteData(std::vector<OBGenericData*>&);
304 bool DeleteData(
const std::string& s);
308 if(d) _vdata.push_back(d);
315 {
return(_vdata.size()); }
326 std::vector<OBGenericData*> GetAllData(
const unsigned int type);
328 std::vector<OBGenericData*> &
GetData() {
return(_vdata); }
330 std::vector<OBGenericData*> GetData(
DataOrigin source);
333 {
return(_vdata.begin()); }
336 {
return(_vdata.end()); }
Spin data, including NMR, atomic and molecular spin, etc.
Definition: base.h:106
Definition: residue.h:336
Vibrational modes, frequencies, etc.
Definition: base.h:126
Base class for generic data.
Definition: base.h:188
Matrix data (i.e., a 3x3 matrix like a rotation or quadrupole moment)
Definition: base.h:144
unsigned int GetDataType() const
Definition: base.h:224
Stereochemistry data (see OBStereoBase)
Definition: base.h:147
static const char * ClassDescription()
Definition: base.h:268
virtual ~OBGenericData()
Definition: base.h:211
Density (cube) data and surfaces.
Definition: base.h:120
virtual OBGenericData * Clone(OBBase *) const
Definition: base.h:209
Info. for storing bonds to atoms yet to be added, i.e. OBVirtualBond.
Definition: base.h:88
Class to convert from one format to another.
Definition: obconversion.h:59
Custom (user-defined data)
Definition: base.h:158
Perceived by Open Babel library methods.
Definition: base.h:180
virtual OBBase * DoTransformations(const std::map< std::string, std::string > *, OBConversion *)
Definition: base.h:261
virtual const std::string & GetAttribute() const
Definition: base.h:221
Crystallographic unit cell data, i.e., OBUnitCell.
Definition: base.h:103
virtual ~OBBase()
Definition: base.h:242
std::vector< OBGenericData * > _vdata
Custom data.
Definition: base.h:339
void SetData(OBGenericData *d)
Adds a data object; does nothing if d==NULL.
Definition: base.h:306
unsigned int _type
attribute type – declared for each subclass
Definition: base.h:192
Arbitrary partial and total charges, dipole moments, etc.
Definition: base.h:109
OBDataIterator BeginData()
Definition: base.h:332
Information for generating & manipulating rotamers, i.e. OBRotamerList.
Definition: base.h:85
Arbitrary information about conformers, i.e., OBConformerData.
Definition: base.h:79
Electronic transition data (e.g., UV/Vis, excitation energies, etc.)
Definition: base.h:153
Rotational energy information.
Definition: base.h:129
Not for routine external use (e.g. in sdf or cml properties)
Definition: base.h:182
Set Data (a set of OBGenericData)
Definition: base.h:135
Grid Data (e.g., 3D grids of data a.k.a. cubes)
Definition: base.h:138
std::string OBReleaseVersion()
Definition: base.cpp:31
DataOrigin
Definition: base.h:176
Storing text comments (one per molecule, atom, bond, etc.) (for other data, e.g., author...
Definition: base.h:76
Bond data external to OpenBabel, i.e., OBExternalBond, OBExternalBondData.
Definition: base.h:82
Arbitrary key/value data, i.e., OBPairData.
Definition: base.h:70
Nuclear transitions (e.g., decay, capture, fission, fusion)
Definition: base.h:132
size_t DataSize() const
Definition: base.h:314
OBDataIterator EndData()
Definition: base.h:335
void SetAttribute(const std::string &v)
Set the attribute (key), which can be used to retrieve this data.
Definition: base.h:216
Information on rings in a molecule, i.e., OBRingData.
Definition: base.h:91
virtual void SetTitle(const char *)
Definition: base.h:287
Unknown data type (default)
Definition: base.h:67
Atomic and molecular occupation data (e.g., for crystal structures)
Definition: base.h:117
Density of States data (fermi energy and energy vs. density data)
Definition: base.h:150
Read from an input file.
Definition: base.h:178
Added by an external program.
Definition: base.h:181
Vector Data (i.e., one vector like a dipole moment)
Definition: base.h:141
Symmetry data – point and space groups, transforms, etc. i.e., OBSymmetryData.
Definition: base.h:112
Electronic levels, redox states, orbitals, etc.
Definition: base.h:123
DataOrigin _source
source of data for accounting
Definition: base.h:193
virtual DataOrigin GetOrigin() const
Definition: base.h:230
virtual const std::string & GetValue() const
Base class returns a default value (the attribute type) but should never be called.
Definition: base.h:228
Residue serial numbers.
Definition: base.h:100
virtual const char * GetTitle(bool replaceNewlines=true) const
Base type does nothing Made virtual around r3535 to simplify code which passes around OBBase*...
Definition: base.h:286
Bond angles in a molecule, i.e., OBAngle, OBAngleData.
Definition: base.h:97
std::vector< OBGenericData * > & GetData()
Definition: base.h:328
std::vector< OBGenericData * >::iterator OBDataIterator
A standard iterator over vectors of OBGenericData (e.g., inherited from OBBase)
Definition: base.h:235
Undefined or unspecified (default)
Definition: base.h:177
Base Class.
Definition: base.h:239
T * CastAndClear(bool clear=true)
By default clears the object. Called from ReadMolecule of most format classes.
Definition: base.h:275
Added by the user.
Definition: base.h:179
std::string _attr
attribute tag (e.g., "UnitCell", "Comment" or "Author")
Definition: base.h:191
Energetics data (e.g., total energy, heat of formation, etc.)
Definition: base.h:73
Tokenize strings, open data files.
Information about torsion/dihedral angles, i.e., OBTorsionData and OBTorsion.
Definition: base.h:94
void SetOrigin(const DataOrigin s)
Set the origin of this data, which can be used to filter the data.
Definition: base.h:219
Global namespace for all Open Babel code.
Definition: alias.h:22