ScaleOut C++ Native Client API
5.1
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
filter.h
1
/*
2
Copyright (c) 2013 by ScaleOut Software, Inc.
3
4
Licensed under the Apache License, Version 2.0 (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
http://www.apache.org/licenses/LICENSE-2.0
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
17
#pragma once
18
19
#include <string>
20
#include <boost/shared_ptr.hpp>
21
#include "soss_client/query_expression.h"
22
23
namespace
sosscli {
24
58
class
Filter
59
{
60
61
public
:
62
72
Filter
();
73
75
virtual
~Filter
();
76
81
Filter
operator &&
(
Filter
const
& other);
82
87
Filter
operator ||
(
Filter
const
& other);
88
89
/*Filter operator ==(Filter & other);*/
90
93
Filter
operator !
();
94
97
bool
is_empty
()
const
;
98
101
std::string
str
()
const
;
102
106
virtual
void
accept
(
QueryExpression::Visitor
&v)
const
;
107
110
boost::shared_ptr<QueryExpression const>
query_expression
()
const
;
111
112
private
:
113
friend
class
ReferenceComparand
;
114
friend
class
ValueComparand
;
115
116
explicit
Filter
(boost::shared_ptr<QueryExpression const> query_expression);
117
boost::shared_ptr<QueryExpression const> query_expression_;
118
};
119
120
}
121
© 2014
ScaleOut Software, Inc.