Lines Matching refs:test_class

24 struct test_class  struct
32 static bool bool_global_fun(test_class){return true;} in bool_global_fun() argument
33 static bool bool_global_fun_const_ref(const test_class&){return false;} in bool_global_fun_const_ref() argument
34 static bool bool_global_fun_ref(test_class&){return true;} in bool_global_fun_ref() argument
36 test_class(int i=0):int_member(i),int_cmember(i){} in test_class() function
37 test_class(int i,int j):int_member(i),int_cmember(j){} in test_class() function
39 test_class& operator=(const test_class& x) in operator =() argument
45 bool operator<(const test_class& x)const in operator <() argument
52 bool operator==(const test_class& x)const in operator ==() argument
58 struct test_derived_class:test_class
60 test_derived_class(int i=0):test_class(i){} in test_derived_class()
61 test_derived_class(int i,int j):test_class(i,j){} in test_derived_class()
64 typedef identity<test_class> idn;
65 typedef identity<const test_class> cidn;
66 typedef BOOST_MULTI_INDEX_MEMBER(test_class,int,int_member) key_m;
67 typedef BOOST_MULTI_INDEX_MEMBER(test_class,const int,int_member) ckey_m;
68 typedef BOOST_MULTI_INDEX_MEMBER(test_class,const int,int_cmember) key_cm;
70 test_class,bool,bool_mem_fun_const) key_cmf;
71 typedef BOOST_MULTI_INDEX_MEM_FUN(test_class,bool,bool_mem_fun) key_mf;
72 typedef global_fun<test_class,bool,&test_class::bool_global_fun> key_gf;
74 const test_class&,bool,
75 &test_class::bool_global_fun_const_ref
78 test_class&,bool,
79 &test_class::bool_global_fun_ref
82 test_class,
89 test_class,
94 boost::reference_wrapper<test_class>,
178 test_class& tr=td; in test_key_extractors()
179 const test_class& ctr=tr; in test_key_extractors()
184 test_class* tp=&tr; in test_key_extractors()
185 const test_class* ctp=&tr; in test_key_extractors()
187 test_class** tpp=&tp; in test_key_extractors()
188 const test_class** ctpp=&ctp; in test_key_extractors()
190 boost::scoped_ptr<test_class*> tap(new test_class*(tp)); in test_key_extractors()
191 boost::scoped_ptr<const test_class*> ctap(new const test_class*(ctp)); in test_key_extractors()
193 boost::reference_wrapper<test_class> tw(tr); in test_key_extractors()
194 boost::reference_wrapper<const test_class> ctw(tr); in test_key_extractors()
201 BOOST_TEST(cmpk(tr)==make_tuple(test_class(0,0),0,0,true)); in test_key_extractors()
202 BOOST_TEST(ccmpk(tr)==make_tuple(test_class(0,0),0)); in test_key_extractors()
207 BOOST_TEST(cmpk(ctr)==make_tuple(test_class(0,0),0,0,true)); in test_key_extractors()
208 BOOST_TEST(ccmpk(ctr)==make_tuple(test_class(0,0),0)); in test_key_extractors()
215 BOOST_TEST(cmpk(td)==make_tuple(test_class(0,0),0,0,true)); in test_key_extractors()
216 BOOST_TEST(ccmpk(td)==make_tuple(test_class(0,0),0)); in test_key_extractors()
221 BOOST_TEST(cmpk(ctdr)==make_tuple(test_class(0,0),0,0,true)); in test_key_extractors()
222 BOOST_TEST(ccmpk(ctdr)==make_tuple(test_class(0,0),0)); in test_key_extractors()
230 BOOST_TEST(cmpk(tp)==make_tuple(test_class(1,0),1,0,true)); in test_key_extractors()
231 BOOST_TEST(ccmpk(tp)==make_tuple(test_class(1,0),1)); in test_key_extractors()
234 BOOST_TEST(cmpk(ctp)==make_tuple(test_class(1,0),1,0,true)); in test_key_extractors()
235 BOOST_TEST(ccmpk(ctp)==make_tuple(test_class(1,0),1)); in test_key_extractors()
242 BOOST_TEST(cmpk(tdp)==make_tuple(test_class(1,0),1,0,true)); in test_key_extractors()
243 BOOST_TEST(ccmpk(tdp)==make_tuple(test_class(1,0),1)); in test_key_extractors()
246 BOOST_TEST(cmpk(ctdp)==make_tuple(test_class(1,0),1,0,true)); in test_key_extractors()
247 BOOST_TEST(ccmpk(ctdp)==make_tuple(test_class(1,0),1)); in test_key_extractors()
255 BOOST_TEST(cmpk(tpp)==make_tuple(test_class(2,0),2,0,true)); in test_key_extractors()
256 BOOST_TEST(ccmpk(tpp)==make_tuple(test_class(2,0),2)); in test_key_extractors()
259 BOOST_TEST(cmpk(ctpp)==make_tuple(test_class(2,0),2,0,true)); in test_key_extractors()
260 BOOST_TEST(ccmpk(ctpp)==make_tuple(test_class(2,0),2)); in test_key_extractors()
267 BOOST_TEST(cmpk(tap)==make_tuple(test_class(3,0),3,0,true)); in test_key_extractors()
268 BOOST_TEST(ccmpk(tap)==make_tuple(test_class(3,0),3)); in test_key_extractors()
271 BOOST_TEST(cmpk(ctap)==make_tuple(test_class(3,0),3,0,true)); in test_key_extractors()
272 BOOST_TEST(ccmpk(ctap)==make_tuple(test_class(3,0),3)); in test_key_extractors()
279 BOOST_TEST(cmpk(tw)==make_tuple(test_class(4,0),4,0,true)); in test_key_extractors()
280 BOOST_TEST(ccmpk(tw)==make_tuple(test_class(4,0),4)); in test_key_extractors()
287 BOOST_TEST(cmpk(ctw)==make_tuple(test_class(5,0),5,0,true)); in test_key_extractors()
288 BOOST_TEST(ccmpk(ctw)==make_tuple(test_class(5,0),5)); in test_key_extractors()
455 std::list<test_class> tl; in test_key_extractors()
456 for(int i=0;i<20;++i)tl.push_back(test_class(i)); in test_key_extractors()
459 for(std::list<test_class>::iterator it=tl.begin();it!=tl.end();++it){ in test_key_extractors()
467 BOOST_TEST(cmpk(it)==make_tuple(test_class(j),j,j,true)); in test_key_extractors()
468 BOOST_TEST(ccmpk(it)==make_tuple(test_class(j),j)); in test_key_extractors()