core
vbl
vbl_bool_ostream.cxx
Go to the documentation of this file.
1
// This is core/vbl/vbl_bool_ostream.cxx
2
3
#include <iostream>
4
#include "
vbl_bool_ostream.h
"
5
#ifdef _MSC_VER
6
# include <vcl_msvc_warnings.h>
7
#endif
8
9
std::ostream&
operator<<
(std::ostream& s,
const
vbl_bool_ostream::on_off
& proxy)
10
{
11
if
(*(proxy.
truth
))
12
s <<
"on"
;
13
else
14
s <<
"off"
;
15
return
s;
16
}
17
18
std::ostream&
operator<<
(std::ostream& s,
const
vbl_bool_ostream::high_low
& proxy)
19
{
20
if
(*(proxy.
truth
))
21
s <<
"high"
;
22
else
23
s <<
"low"
;
24
return
s;
25
}
26
27
std::ostream&
operator<<
(std::ostream& s,
const
vbl_bool_ostream::true_false
& proxy)
28
{
29
if
(*(proxy.
truth
))
30
s <<
"true"
;
31
else
32
s <<
"false"
;
33
return
s;
34
}
vbl_bool_ostream::true_false
Definition:
vbl_bool_ostream.h:34
vbl_bool_ostream::high_low
Definition:
vbl_bool_ostream.h:27
vbl_bool_ostream::true_false::truth
const bool * truth
Definition:
vbl_bool_ostream.h:38
vbl_bool_ostream::high_low::truth
const bool * truth
Definition:
vbl_bool_ostream.h:31
vbl_bool_ostream::on_off::truth
const bool * truth
Definition:
vbl_bool_ostream.h:24
vbl_bool_ostream.h
vbl_bool_ostream::on_off
Definition:
vbl_bool_ostream.h:20
operator<<
std::ostream & operator<<(std::ostream &s, const vbl_bool_ostream::on_off &proxy)
Definition:
vbl_bool_ostream.cxx:9
Generated by
1.8.15