OEHasMonomerGroup
class OEHasMonomerGroup : public OESystem::OEUnaryPredicate<OEGroupBase>
This class represents OEHasMonomerGroup functor that identifies groups (OEGroupBase) that are representing a monomer specified by a code.
See also
OEIsMonomerGroupfor a functor that identifies groups that store monomer information.
The following methods are publicly inherited from OEUnaryPredicate:
The following methods are publicly inherited from OEUnaryFunction:
Constructors
OEHasMonomerGroup::OEHasMonomerGroup(const std::string codeSet,
const std::string code)
Constructor that takes a code set and a code to identify the monomer group.
operator()
bool operator()(const OEGroupBase& group) const
Returns true, if the group identifies a monomer with the code set and code
specified in the constructor.
CreateCopy
OESystem::OEUnaryFunction<OEGroupBase, bool>* CreateCopy() const
Deep copy constructor that returns a copy of the object. The memory for the returned OEHasMonomerGroup 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.