GridGain C++
ignite_predicate.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 GridGain Systems, Inc. and Contributors.
3  *
4  * Licensed under the GridGain Community Edition License (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
22 #ifndef _IGNITE_IGNITE_PREDICATE
23 #define _IGNITE_IGNITE_PREDICATE
24 
25 namespace ignite
26 {
32  template<typename T>
33  class IGNITE_IMPORT_EXPORT IgnitePredicate
34  {
35  public:
36  virtual bool operator()(T&) = 0;
37 
41  virtual ~IgnitePredicate()
42  {
43  // No-op.
44  }
45  };
46 }
47 
48 #endif //_IGNITE_IGNITE_PREDICATE
ignite
Ignite API.
Definition: cache.h:47
ignite::IgnitePredicate::~IgnitePredicate
virtual ~IgnitePredicate()
Destructor.
Definition: ignite_predicate.h:41
ignite::IgnitePredicate
IgnitePredicate base class.
Definition: ignite_predicate.h:33