Lines Matching refs:count

36     static int count;  member
38 explicit B(int id) : id_(id) {count++;} in B()
39 B(const B& a) : id_(a.id_) {count++;} in B()
40 ~B() {count--;} in ~B()
43 int B::count = 0; member in B
48 static int count; member
50 explicit C1(int id) : B(id-2), id_(id) {count++;} in C1()
51 C1(const C1& a) : B(a.id_-2), id_(a.id_) {count++;} in C1()
52 ~C1() {count--;} in ~C1()
55 int C1::count = 0; member in C1
60 static int count; member
62 explicit C2(int id) : B(id-2), id_(id) {count++;} in C2()
63 C2(const C2& a) : B(a.id_-2), id_(a.id_) {count++;} in C2()
64 ~C2() {count--;} in ~C2()
67 int C2::count = 0; member in C2
72 static int count; member
74 explicit A(int id) : C1(id-1), C2(id-2), id_(id) {count++;} in A()
75 A(const A& a) : C1(a.id_-1), C2(a.id_-2), id_(a.id_) {count++;} in A()
76 ~A() {count--;} in ~A()
79 int A::count = 0; member in A
83 assert(A::count == 0); in f1()
84 assert(C1::count == 0); in f1()
85 assert(C2::count == 0); in f1()
86 assert(B::count == 0); in f1()
88 assert(A::count == 1); in f1()
89 assert(C1::count == 1); in f1()
90 assert(C2::count == 1); in f1()
91 assert(B::count == 2); in f1()
106 assert(A::count == 0); in f2()
107 assert(C1::count == 0); in f2()
108 assert(C2::count == 0); in f2()
109 assert(B::count == 0); in f2()
140 assert(A::count == 0); in f3()
141 assert(C1::count == 0); in f3()
142 assert(C2::count == 0); in f3()
143 assert(B::count == 0); in f3()
167 assert(A::count == 0); in f4()
168 assert(C1::count == 0); in f4()
169 assert(C2::count == 0); in f4()
170 assert(B::count == 0); in f4()
200 assert(A::count == 0); in main()
201 assert(C1::count == 0); in main()
202 assert(C2::count == 0); in main()
203 assert(B::count == 0); in main()