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.

The following methods are publicly inherited from OEUnaryPredicate:

operator() CreateCopy CreatePredicateCopy

The following methods are publicly inherited from OEUnaryFunction:

operator() CreateCopy  

The following specializations exist for this template:

Specialized Functor Definition
OEHasAtomIdx OEHasIdx <OEAtomBase>
OEHasBondIdx OEHasIdx <OEBondBase>
OEHasConfIdx OEHasIdx <OEConfBase>


OEHasIdx(unsigned int idx)

Constructs the functor with the internal index number.


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.


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.