Public Member Functions

GridClientPredicate< E1 > Class Template Reference

#include <gridclientpredicate.hpp>

Inheritance diagram for GridClientPredicate< E1 >:
GridCacheNameFilter GridClientAllPassFilter GridClientNodeUuidFilter GridOneOfUuid

List of all members.

Public Member Functions

virtual ~GridClientPredicate ()
virtual bool apply (const E1 &e) const =0

Detailed Description

template<class E1>
class GridClientPredicate< E1 >

Defines predicate construct. Predicate like closure is a first-class function that is defined with (or closed over) its free variables that are bound to the closure scope at execution.

Thread Safety

Note that this interface does not impose or assume any specific thread-safety by its implementations. Each implementation can elect what type of thread-safety it provides, if any.

Parameters:
<E1> Type of the free variable, i.e. the element the predicate is called on.

Constructor & Destructor Documentation

template<class E1>
virtual GridClientPredicate< E1 >::~GridClientPredicate (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<class E1>
virtual bool GridClientPredicate< E1 >::apply ( const E1 &  e  )  const [pure virtual]

Predicate body.

Parameters:
e Bound free variable, i.e. the element the closure is called or closed on.
Returns:
Return value.

Implemented in GridClientCompositeFilter< T >, and GridClientPredicateLambdaWrapper< T >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends