Home | History | Annotate | Download | only in src

Lines Matching refs:predicate

322   // Returns the number of elements that satisfy a given predicate.
323 // The parameter 'predicate' is a Boolean function or functor that
325 template <typename P> // P is the type of the predicate function/functor
326 int CountIf(P predicate) const {
329 if (predicate(*(elements_[i]))) {
348 // Returns the first node whose element satisfies a given predicate,
349 // or NULL if none is found. The parameter 'predicate' is a
352 template <typename P> // P is the type of the predicate function/functor.
353 const E* FindIf(P predicate) const {
355 if (predicate(*elements_[i])) {
363 E* FindIf(P predicate) {
365 if (predicate(*elements_[i])) {
494 // A predicate that checks the key of a TestProperty against a known key.