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:
The following methods are publicly inherited from OEUnaryFunction:
Constructors
OEHasAlternateLocation(confCode: str = '\0',
acceptBlanks: bool = False,
caseSensitive: bool = True) -> OEHasAlternateLocation
OEHasAlternateLocation(rhs: OEHasAlternateLocation) -> OEHasAlternateLocation
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()
__call__(atom: OEAtomBase) -> bool
Returns true, if the OEAtomBase has a OEResidue
and OEResidue.GetAlternateLocation returns a char that matches
the values used in the OEHasAlternateLocation.Constructors.
CreateCopy
CreateCopy() -> OEHasAlternateLocation
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.