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) : B(id+3), C1(id-1), C2(id-2), id_(id) {count++;} in A()
75 A(const A& a) : B(a.id_+3), 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 == 1); in f1()
105 assert(A::count == 0); in f2()
106 assert(C1::count == 0); in f2()
107 assert(C2::count == 0); in f2()
108 assert(B::count == 0); in f2()
138 assert(A::count == 0); in f3()
139 assert(C1::count == 0); in f3()
140 assert(C2::count == 0); in f3()
141 assert(B::count == 0); in f3()
164 assert(A::count == 0); in f4()
165 assert(C1::count == 0); in f4()
166 assert(C2::count == 0); in f4()
167 assert(B::count == 0); in f4()
190 assert(A::count == 0); in f5()
191 assert(C1::count == 0); in f5()
192 assert(C2::count == 0); in f5()
193 assert(B::count == 0); in f5()
223 assert(A::count == 0); in main()
224 assert(C1::count == 0); in main()
225 assert(C2::count == 0); in main()
226 assert(B::count == 0); in main()