OEHasAlternateLocation

class OEHasAlternateLocation : public OESystem::OEUnaryPredicate<OEChem::OEAtomBase>

See also

Residue Data Functors section

This class represents OEHasAlternateLocation, a functor that identifies atoms (OEAtomBase) with an alternate location code.

The following methods are publicly inherited from OEUnaryPredicate:

operator()

CreateCopy

CreatePredicateCopy

The following methods are publicly inherited from OEUnaryFunction:

operator()

CreateCopy

Constructors

OEHasAlternateLocation(const OEHasAlternateLocation &rhs)
OEHasAlternateLocation(char confCode= '\0', bool acceptBlanks=false,
                       bool caseSensitive=true)

Default and copy constructors.

If a non-blank char is supplied, atoms with that alternate location code will be selected when the object is used in a predicate expression. If a non-blank char is not supplied, atoms with any non-blank alternate location code will be selected.

If acceptBlanks is true, then atoms with blank alternate location codes will also be selected. If caseSensitive is false, then both upper- and lower-case versions of the confCode parameter will be tried in the match.

operator()

bool operator()(const OEChem::OEAtomBase &atom) const

Returns true, if the OEAtomBase has a OEResidue and OEResidue::GetAlternateLocation returns a char that matches the values used in the OEHasAlternateLocation::Constructors.

CreateCopy

OESystem::OEUnaryPredicate<OEChem::OEAtomBase>::base_type *CreateCopy() const

Deep copy constructor that returns a copy of the object. The memory for the returned OEHasAlternateLocation 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.