Lines Matching refs:sout
15 std::ostream &operator <<(std::ostream &sout, boost::proto::tag::shift_right) in operator <<() argument
17 return sout << ">>"; in operator <<()
20 std::ostream &operator <<(std::ostream &sout, boost::proto::tag::bitwise_or) in operator <<() argument
22 return sout << "|"; in operator <<()
26 std::ostream &operator <<(std::ostream &sout, boost::proto::expr<boost::proto::tag::terminal, Args,… in operator <<() argument
28 return sout << boost::proto::value(*op); in operator <<()
32 std::ostream &operator <<(std::ostream &sout, boost::proto::basic_expr<boost::proto::tag::terminal,… in operator <<() argument
34 return sout << boost::proto::value(*op); in operator <<()
38 std::ostream &operator <<(std::ostream &sout, boost::proto::expr<Tag, Args, 1> const *op) in operator <<() argument
40 return sout << Tag() << boost::addressof(boost::proto::child(*op).proto_base()); in operator <<()
44 std::ostream &operator <<(std::ostream &sout, boost::proto::basic_expr<Tag, Args, 1> const *op) in operator <<() argument
46 return sout << Tag() << boost::addressof(boost::proto::child(*op).proto_base()); in operator <<()
50 std::ostream &operator <<(std::ostream &sout, boost::proto::expr<Tag, Args, 2> const *op) in operator <<() argument
52 …return sout << boost::addressof(boost::proto::left(*op).proto_base()) << Tag() << boost::addressof… in operator <<()
56 std::ostream &operator <<(std::ostream &sout, boost::proto::basic_expr<Tag, Args, 2> const *op) in operator <<() argument
58 …return sout << boost::addressof(boost::proto::left(*op).proto_base()) << Tag() << boost::addressof… in operator <<()
66 to_string(std::ostream &sout) in to_string()
67 : sout_(sout) in to_string()
93 std::stringstream sout; in test1() local
96 sout.str(""); in test1()
97 boost::fusion::for_each(flatten(!!!!(a_ >> b_)), to_string(sout)); in test1()
98 BOOST_CHECK_EQUAL("(a>>b)", sout.str()); in test1()
101 sout.str(""); in test1()
102 boost::fusion::for_each(flatten(a_ >> b_ >> c_), to_string(sout)); in test1()
103 BOOST_CHECK_EQUAL("(a)(b)(c)", sout.str()); in test1()
105 sout.str(""); in test1()
106 boost::fusion::for_each(flatten(a_ | b_ | c_), to_string(sout)); in test1()
107 BOOST_CHECK_EQUAL("(a)(b)(c)", sout.str()); in test1()
109 sout.str(""); in test1()
110 boost::fusion::for_each(flatten(a_ >> b_ | c_ >> d_), to_string(sout)); in test1()
111 BOOST_CHECK_EQUAL("(a>>b)(c>>d)", sout.str()); in test1()
113 sout.str(""); in test1()
114 boost::fusion::for_each(flatten(a_ | b_ >> c_ | d_), to_string(sout)); in test1()
115 BOOST_CHECK_EQUAL("(a)(b>>c)(d)", sout.str()); in test1()
117 sout.str(""); in test1()
118 boost::fusion::for_each(flatten(a_ >> b_ | c_ >> d_ | e_ >> f_ >> g_), to_string(sout)); in test1()
119 BOOST_CHECK_EQUAL("(a>>b)(c>>d)(e>>f>>g)", sout.str()); in test1()
121 sout.str(""); in test1()
122 boost::fusion::for_each(flatten(a_ >> b_ | c_ >> d_ | e_ >> (f_ | g_) >> h_), to_string(sout)); in test1()
123 BOOST_CHECK_EQUAL("(a>>b)(c>>d)(e>>f|g>>h)", sout.str()); in test1()
126 sout.str(""); in test1()
127 boost::fusion::for_each(flatten(a_(b_(c_ >> d_, e_ | f_), g_ >> h_)(i_)), to_string(sout)); in test1()
128 BOOST_CHECK_EQUAL("(a)(b)(c>>d)(e|f)(g>>h)(i)", sout.str()); in test1()
161 std::stringstream sout; in test2() local
164 sout.str(""); in test2()
165 boost::fusion::for_each(flatten(!!!!(a_ >> b_)), to_string(sout)); in test2()
166 BOOST_CHECK_EQUAL("(a>>b)", sout.str()); in test2()
169 sout.str(""); in test2()
170 boost::fusion::for_each(flatten(a_ >> b_ >> c_), to_string(sout)); in test2()
171 BOOST_CHECK_EQUAL("(a)(b)(c)", sout.str()); in test2()
173 sout.str(""); in test2()
174 boost::fusion::for_each(flatten(a_ | b_ | c_), to_string(sout)); in test2()
175 BOOST_CHECK_EQUAL("(a)(b)(c)", sout.str()); in test2()
177 sout.str(""); in test2()
178 boost::fusion::for_each(flatten(a_ >> b_ | c_ >> d_), to_string(sout)); in test2()
179 BOOST_CHECK_EQUAL("(a>>b)(c>>d)", sout.str()); in test2()
181 sout.str(""); in test2()
182 boost::fusion::for_each(flatten(a_ | b_ >> c_ | d_), to_string(sout)); in test2()
183 BOOST_CHECK_EQUAL("(a)(b>>c)(d)", sout.str()); in test2()
185 sout.str(""); in test2()
186 boost::fusion::for_each(flatten(a_ >> b_ | c_ >> d_ | e_ >> f_ >> g_), to_string(sout)); in test2()
187 BOOST_CHECK_EQUAL("(a>>b)(c>>d)(e>>f>>g)", sout.str()); in test2()
189 sout.str(""); in test2()
190 boost::fusion::for_each(flatten(a_ >> b_ | c_ >> d_ | e_ >> (f_ | g_) >> h_), to_string(sout)); in test2()
191 BOOST_CHECK_EQUAL("(a>>b)(c>>d)(e>>f|g>>h)", sout.str()); in test2()
194 sout.str(""); in test2()
195 boost::fusion::for_each(flatten(a_(b_(c_ >> d_, e_ | f_), g_ >> h_)(i_)), to_string(sout)); in test2()
196 BOOST_CHECK_EQUAL("(a)(b)(c>>d)(e|f)(g>>h)(i)", sout.str()); in test2()