Searched refs:CountedObject (Results 1 – 4 of 4) sorted by relevance
58 class CountedObject { class60 explicit CountedObject(int id) : id_(id) { ++count_; } in CountedObject() function in __anon67f31ca90111::CountedObject61 ~CountedObject() { --count_; } in ~CountedObject()71 int CountedObject::count_;74 typedef AddressMap< AddressType, linked_ptr<CountedObject> > TestMap;77 ASSERT_EQ(CountedObject::count(), 0); in DoAddressMapTest()80 linked_ptr<CountedObject> entry; in DoAddressMapTest()89 ASSERT_EQ(CountedObject::count(), 0); in DoAddressMapTest()91 linked_ptr<CountedObject>(new CountedObject(0)))); in DoAddressMapTest()93 ASSERT_EQ(CountedObject::count(), 1); in DoAddressMapTest()[all …]
54 class CountedObject { class56 explicit CountedObject(int id) : id_(id) { ++count_; } in CountedObject() function in __anona28e2f300111::CountedObject57 ~CountedObject() { --count_; } in ~CountedObject()67 int CountedObject::count_;71 typedef RangeMap< AddressType, linked_ptr<CountedObject> > TestMap;106 linked_ptr<CountedObject> object(new CountedObject(range_test->id)); in StoreTest()166 linked_ptr<CountedObject> object; in RetrieveTest()210 linked_ptr<CountedObject> nearest_object; in RetrieveTest()270 linked_ptr<CountedObject> object; in RetrieveIndexTest()271 CountedObject *last_object = NULL; in RetrieveIndexTest()[all …]
1170 class CountedObject(object): class1328 objs = list(CountedObject() for i in range(10))1337 self.assertEqual(CountedObject.n_instances, 0)
2210 class CountedObject(object): class2547 objs = [CountedObject() for i in range(10)]2556 self.assertEqual(CountedObject.n_instances, 0)