OECount

OECount(abset: OEAtomBondSet, atompred: OEUnaryAtomPred) -> int
OECount(abset: OEAtomBondSet, bondpred: OEUnaryBondPred) -> int
OECount(monomers: OEMonomerSet, pred: OEUnaryMonomerPred) -> int
OECount(arg1: Union[OEGraphMol,OEMol,OEQMol], arg2: OEUnaryAtomPred) -> int
OECount(arg1: Union[OEGraphMol,OEMol,OEQMol], arg2: OEUnaryBondPred) -> int
OECount(arg1: Union[OEGraphMol,OEMol,OEQMol], arg2: OEUnaryGroupPred) -> int
OECount(arg1: Union[OEGraphMol,OEMol,OEQMol], arg2: OESubSearch,
        uniquematch: bool = False) -> int

Count the number of elements in an iterator.

Note

These templated functions are only available in C++. Please see the OECount functions in OEChem TK.

These methods have the following behavior:

  • The OEIter version resets the iterator to the first element.

  • The OEIterBase version consumes the iterator.