OEHasIdx¶
template<class Arg>
class OEHasIdx : public OESystem::OEUnaryPredicate<Arg>
This class represents OEHasIdx template functor that
identifies object that provides a GetIdx
method with a specific index.
See also
The following methods are publicly inherited from OEUnaryPredicate:
The following methods are publicly inherited from OEUnaryFunction:
The following specializations exist for this template:
Specialized Functor |
Definition |
---|---|
OEHasAtomIdx |
|
OEHasBondIdx |
|
OEHasConfIdx |
operator()¶
bool operator()(const Arg &arg) const
Returns true
, if the index returned by the
Arg.GetIdx()
method is equivalent to the number
with which the functor is constructed.
CreateCopy¶
OETYPENAME OESystem::OEUnaryFunction<Arg, bool> *CreateCopy() const
Deep copy constructor that returns a copy of the object. The memory for the returned OEHasIdx 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.