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:
The following methods are publicly inherited from OEUnaryFunction:
The following specializations exist for this template:
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.
The returned copy should be deallocated using C++ delete operator in order to prevent a memory leak.