Lines Matching refs:proto
21 namespace proto = boost::proto;
31 : proto::or_<
32 proto::shift_right< proto::terminal< std::istream & >, proto::_ >
33 , proto::shift_right< Input, proto::_ >
38 : proto::or_<
39 proto::shift_left< proto::terminal< std::ostream & >, proto::_ >
40 , proto::shift_left< Output, proto::_ >
44 proto::terminal< std::istream & >::type const cin_ = {std::cin};
45 proto::terminal< std::ostream & >::type const cout_ = {std::cout};
48 : proto::or_<
49 proto::terminal<proto::_>
50 , proto::nary_expr<proto::_, proto::vararg<Anything> >
60 : proto::not_<proto::_>
65 struct MyCases::case_<proto::tag::shift_right>
66 : proto::_
70 struct MyCases::case_<proto::tag::plus>
71 : proto::_
93 : proto::or_ <
94 proto::terminal<number<proto::_, two_complement_c> >
95 , proto::terminal<number<proto::_, magnitude_c> >
110 : proto::domain<proto::pod_generator<my_expr> >
121 proto::assert_matches< proto::_ >( proto::lit(1) ); in test_matches()
122 proto::assert_matches< proto::_ >( proto::as_child(1) ); in test_matches()
123 proto::assert_matches< proto::_ >( proto::as_expr(1) ); in test_matches()
125 proto::assert_matches< proto::terminal<int> >( proto::lit(1) ); in test_matches()
126 proto::assert_matches< proto::terminal<int> >( proto::as_child(1) ); in test_matches()
127 proto::assert_matches< proto::terminal<int> >( proto::as_expr(1) ); in test_matches()
129 proto::assert_matches_not< proto::terminal<int> >( proto::lit('a') ); in test_matches()
130 proto::assert_matches_not< proto::terminal<int> >( proto::as_child('a') ); in test_matches()
131 proto::assert_matches_not< proto::terminal<int> >( proto::as_expr('a') ); in test_matches()
133 proto::assert_matches< proto::terminal<proto::convertible_to<int> > >( proto::lit('a') ); in test_matches()
134 proto::assert_matches< proto::terminal<proto::convertible_to<int> > >( proto::as_child('a') ); in test_matches()
135 proto::assert_matches< proto::terminal<proto::convertible_to<int> > >( proto::as_expr('a') ); in test_matches()
137 proto::assert_matches_not< proto::terminal<int> >( proto::lit((int_convertible())) ); in test_matches()
138 proto::assert_matches_not< proto::terminal<int> >( proto::as_child((int_convertible())) ); in test_matches()
139 proto::assert_matches_not< proto::terminal<int> >( proto::as_expr((int_convertible())) ); in test_matches()
141 …proto::assert_matches< proto::terminal<proto::convertible_to<int> > >( proto::lit((int_convertible… in test_matches()
142 …proto::assert_matches< proto::terminal<proto::convertible_to<int> > >( proto::as_child((int_conver… in test_matches()
143 …proto::assert_matches< proto::terminal<proto::convertible_to<int> > >( proto::as_expr((int_convert… in test_matches()
145 proto::assert_matches< proto::if_<boost::is_same<proto::_value, int>() > >( proto::lit(1) ); in test_matches()
146 … proto::assert_matches_not< proto::if_<boost::is_same<proto::_value, int>() > >( proto::lit('a') ); in test_matches()
148 proto::assert_matches< in test_matches()
149 proto::and_< in test_matches()
150 proto::terminal<proto::_> in test_matches()
151 , proto::if_<boost::is_same<proto::_value, int>() > in test_matches()
153 >( proto::lit(1) ); in test_matches()
155 proto::assert_matches_not< in test_matches()
156 proto::and_< in test_matches()
157 proto::terminal<proto::_> in test_matches()
158 , proto::if_<boost::is_same<proto::_value, int>() > in test_matches()
160 >( proto::lit('a') ); in test_matches()
162 proto::assert_matches< proto::terminal<char const *> >( proto::lit("hello") ); in test_matches()
163 proto::assert_matches< proto::terminal<char const *> >( proto::as_child("hello") ); in test_matches()
164 proto::assert_matches< proto::terminal<char const *> >( proto::as_expr("hello") ); in test_matches()
166 proto::assert_matches< proto::terminal<char const[6]> >( proto::lit("hello") ); in test_matches()
167 proto::assert_matches< proto::terminal<char const (&)[6]> >( proto::as_child("hello") ); in test_matches()
168 proto::assert_matches< proto::terminal<char const[6]> >( proto::as_expr("hello") ); in test_matches()
170 proto::assert_matches< proto::terminal<char [6]> >( proto::lit("hello") ); in test_matches()
171 proto::assert_matches< proto::terminal<char [6]> >( proto::as_child("hello") ); in test_matches()
172 proto::assert_matches< proto::terminal<char [6]> >( proto::as_expr("hello") ); in test_matches()
174 proto::assert_matches< proto::terminal<char const[proto::N]> >( proto::lit("hello") ); in test_matches()
175 proto::assert_matches< proto::terminal<char const (&)[proto::N]> >( proto::as_child("hello") ); in test_matches()
176 proto::assert_matches< proto::terminal<char const[proto::N]> >( proto::as_expr("hello") ); in test_matches()
178 proto::assert_matches< proto::terminal<char [proto::N]> >( proto::lit("hello") ); in test_matches()
179 proto::assert_matches< proto::terminal<char [proto::N]> >( proto::as_child("hello") ); in test_matches()
180 proto::assert_matches< proto::terminal<char [proto::N]> >( proto::as_expr("hello") ); in test_matches()
182 proto::assert_matches< proto::terminal<wchar_t const[proto::N]> >( proto::lit(L"hello") ); in test_matches()
183 …proto::assert_matches< proto::terminal<wchar_t const (&)[proto::N]> >( proto::as_child(L"hello") ); in test_matches()
184 proto::assert_matches< proto::terminal<wchar_t const[proto::N]> >( proto::as_expr(L"hello") ); in test_matches()
186 proto::assert_matches< proto::terminal<wchar_t [proto::N]> >( proto::lit(L"hello") ); in test_matches()
187 proto::assert_matches< proto::terminal<wchar_t [proto::N]> >( proto::as_child(L"hello") ); in test_matches()
188 proto::assert_matches< proto::terminal<wchar_t [proto::N]> >( proto::as_expr(L"hello") ); in test_matches()
190 …proto::assert_matches_not< proto::if_<boost::is_same<proto::_value, int>()> >( proto::lit("hello")… in test_matches()
192 proto::assert_matches< proto::terminal<std::string> >( proto::lit(std::string("hello")) ); in test_matches()
193 proto::assert_matches< proto::terminal<std::string> >( proto::as_child(std::string("hello")) ); in test_matches()
194 proto::assert_matches< proto::terminal<std::string> >( proto::as_expr(std::string("hello")) ); in test_matches()
196 …proto::assert_matches< proto::terminal<std::basic_string<proto::_> > >( proto::lit(std::string("he… in test_matches()
197 …proto::assert_matches< proto::terminal<std::basic_string<proto::_> > >( proto::as_child(std::strin… in test_matches()
198 …proto::assert_matches< proto::terminal<std::basic_string<proto::_> > >( proto::as_expr(std::string… in test_matches()
200 proto::assert_matches_not< proto::terminal<std::basic_string<proto::_> > >( proto::lit(1) ); in test_matches()
201 … proto::assert_matches_not< proto::terminal<std::basic_string<proto::_> > >( proto::as_child(1) ); in test_matches()
202 proto::assert_matches_not< proto::terminal<std::basic_string<proto::_> > >( proto::as_expr(1) ); in test_matches()
204 …proto::assert_matches_not< proto::terminal<std::basic_string<proto::_,proto::_,proto::_> > >( prot… in test_matches()
205 …proto::assert_matches_not< proto::terminal<std::basic_string<proto::_,proto::_,proto::_> > >( prot… in test_matches()
206 …proto::assert_matches_not< proto::terminal<std::basic_string<proto::_,proto::_,proto::_> > >( prot… in test_matches()
214 …proto::assert_matches< proto::terminal<std::basic_string<proto::_> const & > >( proto::lit(const_s… in test_matches()
215 …proto::assert_matches< proto::terminal<std::basic_string<proto::_> const & > >( proto::as_child(co… in test_matches()
216 …proto::assert_matches_not< proto::terminal<std::basic_string<proto::_> const & > >( proto::as_expr… in test_matches()
218 proto::assert_matches< proto::terminal< void(&)() > >( proto::lit(a_function) ); in test_matches()
219 proto::assert_matches< proto::terminal< void(&)() > >( proto::as_child(a_function) ); in test_matches()
220 proto::assert_matches< proto::terminal< void(&)() > >( proto::as_expr(a_function) ); in test_matches()
222 proto::assert_matches_not< proto::terminal< void(*)() > >( proto::lit(a_function) ); in test_matches()
223 proto::assert_matches_not< proto::terminal< void(*)() > >( proto::as_child(a_function) ); in test_matches()
224 proto::assert_matches_not< proto::terminal< void(*)() > >( proto::as_expr(a_function) ); in test_matches()
226 …proto::assert_matches< proto::terminal< proto::convertible_to<void(*)()> > >( proto::lit(a_functio… in test_matches()
227 …proto::assert_matches< proto::terminal< proto::convertible_to<void(*)()> > >( proto::as_child(a_fu… in test_matches()
228 …proto::assert_matches< proto::terminal< proto::convertible_to<void(*)()> > >( proto::as_expr(a_fun… in test_matches()
230 proto::assert_matches< proto::terminal< void(*)() > >( proto::lit(&a_function) ); in test_matches()
231 proto::assert_matches< proto::terminal< void(*)() > >( proto::as_child(&a_function) ); in test_matches()
232 proto::assert_matches< proto::terminal< void(*)() > >( proto::as_expr(&a_function) ); in test_matches()
234 proto::assert_matches< proto::terminal< void(* const &)() > >( proto::lit(&a_function) ); in test_matches()
235 proto::assert_matches< proto::terminal< void(* const &)() > >( proto::as_child(&a_function) ); in test_matches()
236 … proto::assert_matches_not< proto::terminal< void(* const &)() > >( proto::as_expr(&a_function) ); in test_matches()
238 proto::assert_matches< in test_matches()
239 proto::or_< in test_matches()
240 proto::if_<boost::is_same<proto::_value, char>() > in test_matches()
241 , proto::if_<boost::is_same<proto::_value, int>() > in test_matches()
243 >( proto::lit(1) ); in test_matches()
245 proto::assert_matches_not< in test_matches()
246 proto::or_< in test_matches()
247 proto::if_<boost::is_same<proto::_value, char>() > in test_matches()
248 , proto::if_<boost::is_same<proto::_value, int>() > in test_matches()
250 >( proto::lit(1u) ); in test_matches()
252 proto::assert_matches< Input >( cin_ >> 1 >> 2 >> 3 ); in test_matches()
253 proto::assert_matches_not< Output >( cin_ >> 1 >> 2 >> 3 ); in test_matches()
255 proto::assert_matches< Output >( cout_ << 1 << 2 << 3 ); in test_matches()
256 proto::assert_matches_not< Input >( cout_ << 1 << 2 << 3 ); in test_matches()
258 …proto::assert_matches< proto::function< proto::terminal<int>, proto::vararg< proto::terminal<char>… in test_matches()
259 …proto::assert_matches_not< proto::function< proto::terminal<int>, proto::vararg< proto::terminal<c… in test_matches()
261 …proto::assert_matches< Anything >( cout_ << 1 << +proto::lit('a') << proto::lit(1)('a','b','c',"d"… in test_matches()
263 proto::assert_matches< proto::switch_<MyCases> >( proto::lit(1) >> 'a' ); in test_matches()
264 proto::assert_matches< proto::switch_<MyCases> >( proto::lit(1) + 'a' ); in test_matches()
265 proto::assert_matches_not< proto::switch_<MyCases> >( proto::lit(1) << 'a' ); in test_matches()
268 proto::assert_matches<NumberGrammar>(proto::as_expr(num)); in test_matches()
272 proto::nullary_expr<my_terminal, int>::type i = {0}; in test_matches()
274 proto::assert_matches<proto::nullary_expr<my_terminal, proto::_> >( i ); in test_matches()
275 proto::assert_matches_not<proto::terminal<proto::_> >( i ); in test_matches()
277 proto::terminal<int>::type j = {0}; in test_matches()
278 proto::assert_matches<proto::terminal<proto::_> >( j ); in test_matches()
279 proto::assert_matches_not<proto::nullary_expr<my_terminal, proto::_> >( j ); in test_matches()
281 proto::assert_matches<proto::nullary_expr<proto::_, proto::_> >( i ); in test_matches()
286 proto::assert_matches< proto::and_<> >( proto::lit(1) ); in test_matches()
287 proto::assert_matches_not< proto::or_<> >( proto::lit(1) ); in test_matches()
289 proto::assert_matches< proto::and_<proto::terminal<int> > >( proto::lit(1) ); in test_matches()
290 proto::assert_matches< proto::or_<proto::terminal<int> > >( proto::lit(1) ); in test_matches()
297 proto::assert_matches< proto::terminal< a_template<proto::_> > >( proto::lit(a) ); in test_matches()
302 my_expr<proto::terminal<int>::type> e = {{1}}; in test_matches()
303 … proto::assert_matches< proto::if_<boost::is_same<proto::domain_of<proto::_>, my_domain>()> >( e ); in test_matches()