Predator
[unstable] git snapshot
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
join_status.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2010 Kamil Dudka <kdudka@redhat.com>
3
*
4
* This file is part of predator.
5
*
6
* predator is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* any later version.
10
*
11
* predator is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with predator. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef H_GUARD_JOIN_STATUS_H
21
#define H_GUARD_JOIN_STATUS_H
22
23
#include <iostream>
24
25
/// classification of the result of a join operation
26
enum
EJoinStatus
{
27
JS_USE_ANY
= 0,
28
JS_USE_SH1
,
29
JS_USE_SH2
,
30
JS_THREE_WAY
31
};
32
33
inline
std::ostream&
operator<<
(std::ostream &str,
const
EJoinStatus
status)
34
{
35
switch
(status) {
36
case
JS_USE_ANY
:
return
(str <<
"JS_USE_ANY"
);
37
case
JS_USE_SH1
:
return
(str <<
"JS_USE_SH1"
);
38
case
JS_USE_SH2
:
return
(str <<
"JS_USE_SH2"
);
39
case
JS_THREE_WAY
:
return
(str <<
"JS_THREE_WAY"
);
40
default
:
41
return
(str << static_cast<int>(status));
42
}
43
}
44
45
#endif
/* H_GUARD_JOIN_STATUS_H */
Generated on Mon Nov 9 2015 14:51:59 for Predator by
1.8.1.2