Lines Matching refs:count

22     static int count;  member
24 explicit B(int id) : id_(id) {count++;} in B()
25 B(const B& a) : id_(a.id_) {count++;} in B()
26 ~B() {count--;} in ~B()
29 int B::count = 0; member in B
34 static int count; member
36 explicit C1(int id) : B(id-2), id_(id) {count++;} in C1()
37 C1(const C1& a) : B(a.id_-2), id_(a.id_) {count++;} in C1()
38 ~C1() {count--;} in ~C1()
41 int C1::count = 0; member in C1
46 static int count; member
48 explicit C2(int id) : B(id-2), id_(id) {count++;} in C2()
49 C2(const C2& a) : B(a.id_-2), id_(a.id_) {count++;} in C2()
50 ~C2() {count--;} in ~C2()
53 int C2::count = 0; member in C2
58 static int count; member
60 explicit A(int id) : C1(id-1), C2(id-2), B(id+3), id_(id) {count++;} in A()
61 A(const A& a) : C1(a.id_-1), C2(a.id_-2), B(a.id_+3), id_(a.id_) {count++;} in A()
62 ~A() {count--;} in ~A()
65 int A::count = 0; member in A
69 assert(A::count == 0); in f1()
70 assert(C1::count == 0); in f1()
71 assert(C2::count == 0); in f1()
72 assert(B::count == 0); in f1()
74 assert(A::count == 1); in f1()
75 assert(C1::count == 1); in f1()
76 assert(C2::count == 1); in f1()
77 assert(B::count == 1); in f1()
91 assert(A::count == 0); in f2()
92 assert(C1::count == 0); in f2()
93 assert(C2::count == 0); in f2()
94 assert(B::count == 0); in f2()
124 assert(A::count == 0); in f3()
125 assert(C1::count == 0); in f3()
126 assert(C2::count == 0); in f3()
127 assert(B::count == 0); in f3()
150 assert(A::count == 0); in f4()
151 assert(C1::count == 0); in f4()
152 assert(C2::count == 0); in f4()
153 assert(B::count == 0); in f4()
176 assert(A::count == 0); in f5()
177 assert(C1::count == 0); in f5()
178 assert(C2::count == 0); in f5()
179 assert(B::count == 0); in f5()
209 assert(A::count == 0); in main()
210 assert(C1::count == 0); in main()
211 assert(C2::count == 0); in main()
212 assert(B::count == 0); in main()