Lines Matching refs:Constructable
26 class Constructable {
35 Constructable() : value(0) {
39 Constructable(int val) : value(val) {
43 Constructable(const Constructable & src) {
48 ~Constructable() {
52 Constructable & operator=(const Constructable & src) {
76 friend bool operator==(const Constructable & c0, const Constructable & c1) {
81 operator!=(const Constructable & c0, const Constructable & c1) {
86 int Constructable::numConstructorCalls;
87 int Constructable::numDestructorCalls;
88 int Constructable::numAssignmentCalls;
98 Constructable::reset();
127 v.push_back(Constructable(i));
132 typedef ::testing::Types<SmallVector<Constructable, 0>,
133 SmallVector<Constructable, 1>,
134 SmallVector<Constructable, 2>,
135 SmallVector<Constructable, 4>
144 EXPECT_EQ(0, Constructable::getNumConstructorCalls());
145 EXPECT_EQ(0, Constructable::getNumDestructorCalls());
156 this->theVector.push_back(Constructable(1));
164 this->theVector.push_back(Constructable(2));
184 EXPECT_EQ(5, Constructable::getNumConstructorCalls());
185 EXPECT_EQ(5, Constructable::getNumDestructorCalls());
189 EXPECT_LE(5, Constructable::getNumConstructorCalls());
190 EXPECT_EQ(Constructable::getNumConstructorCalls(),
191 Constructable::getNumDestructorCalls());
204 EXPECT_EQ(4, Constructable::getNumConstructorCalls());
205 EXPECT_EQ(4, Constructable::getNumDestructorCalls());
217 EXPECT_EQ(6, Constructable::getNumConstructorCalls());
218 EXPECT_EQ(5, Constructable::getNumDestructorCalls());
229 EXPECT_EQ(3, Constructable::getNumConstructorCalls());
230 EXPECT_EQ(1, Constructable::getNumDestructorCalls());
238 this->theVector.resize(3, Constructable(77));
317 this->theVector.push_back(Constructable(1));
327 this->theVector.push_back(Constructable(1));
328 this->theVector.append(2, Constructable(77));
336 this->theVector.push_back(Constructable(1));
337 this->theVector.assign(2, Constructable(77));
365 this->theVector.insert(this->theVector.begin() + 1, Constructable(77));
376 this->theVector.insert(this->theVector.begin() + 1, 2, Constructable(16));
382 I = this->theVector.insert(this->theVector.end(), 2, Constructable(16));
390 0, Constructable(42)));
393 0, Constructable(42)));
400 Constructable Arr[3] =
401 { Constructable(77), Constructable(77), Constructable(77) };
457 EXPECT_EQ(0, Constructable::getNumConstructorCalls());
464 EXPECT_EQ(4, Constructable::getNumConstructorCalls());