OEGetNbrAtom

class OEGetNbrAtom : public OESystem::OEUnaryFunction<OEChem::OEBondBase*,OEChem::OEAtomBase*>

This class represents OEGetNbrAtom functor that, when constructed with one atom and passed a bond, will return the neighbor atom which is across the bond from the construction atom.

The following methods are publicly inherited from OEUnaryFunction:

operator()

CreateCopy

Constructors

OEGetNbrAtom(const OEChem::OEAtomBase *atom)

Constructs the functor with atom (OEAtomBase) as the reference atom used to find neighbors.

operator()

result_type operator()(const argument_type &) const

Returns the OEAtomBase pointer that returned by the OEBondBase::GetNbr (atom), where ‘atom’ is the construction OEAtomBase argument.

CreateCopy

OESystem::OEUnaryFunction<OEChem::OEBondBase *, OEChem::OEAtomBase *> *
  CreateCopy() const

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

The returned copy should be deallocated using C++ delete operator in order to prevent a memory leak.