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.

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>

Constructors

OEHasIdx(unsigned int idx)

Constructs the functor with the internal index number.

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.