예제 #1
0
 check_type(const check_type& other) : Harness::NoAfterlife(other) {
     other.AssertLive();
     AssertLive();
     id = other.id;
     am_ready = other.am_ready;
     ++check_type_counter;
 }
예제 #2
0
 void operator()(check_type &c) const {
     AssertLive();
     ASSERT(c.my_id(), "unset id value");
     ASSERT(c.is_ready(), "not yet ready");
     output_counter++;
 }
예제 #3
0
bool output_is_ready(check_type<U> &p) { return p.is_ready(); }
예제 #4
0
bool middle_is_ready(check_type<U> &p) { return p.is_ready(); }
예제 #5
0
void my_function(check_type<U> &p) { p.function(); }
예제 #6
0
int output_my_id(check_type<U> &p) { return p.my_id(); }
예제 #7
0
int middle_my_id(check_type<U> &p) { return p.my_id(); }