class OEInteractionHintFragment : public OESystem::OEBase

The OEInteractionHintFragment class is a container that holds atom pointers of a molecule of a OEInteractionHintContainer object.

See also


OEInteractionHintFragment(const OEInteractionHintContainerImpl *container,
                          const OEChem::OEMolBase *parent)

Creates an OEInteractionHintFragment object that belongs to to the given container and stores the atoms of the given molecule.

OEInteractionHintFragment(const OEInteractionHintFragment &rhs)

Copy constructor.


OEInteractionHintFragment &operator=(const OEInteractionHintFragment &rhs)

Assignment operator.


bool AddAtom(const OEChem::OEAtomBase *)

Adds an atom to the OEInteractionHintFragment object. Returns true if the atom was successfully added to the OEInteractionHintFragment object.


OESystem::OEBase *CreateCopy() const

Deep copy constructor that returns a copy of the object. The memory for the returned OEInteractionHintFragment object is dynamically allocated and owned by the caller.


OESystem::OEIterBase<const OEChem::OEAtomBase> *GetAtoms() const

Returns an iterator over all the atoms of the fragment.

OESystem::OEIterBase<const OEChem::OEAtomBase> *
  GetAtoms(const OESystem::OEUnaryPredicate<OEChem::OEAtomBase> &) const

Returns an iterator over all of the atoms of the fragment that match the specified atom predicate (OEUnaryPredicate).


const OEInteractionHintComponentTypeBase &GetComponentType() const

Returns the type of the fragment i.e. the type of the molecule the fragment belongs to.

See also

The following built-in component types are available:


const void *GetDataType() const

This function is used to perform run-time type identification.

See also


bool HasAtom(const OEChem::OEAtomBase *) const

Returns whether the given atom is already stored in the OEInteractionHintFragment object.


bool IsDataType(const void *) const

Returns whether a type is the same as the instance this method is called on.

See also


unsigned int NumAtoms() const

Returns the number of atoms of the fragment.