Lines Matching refs:exists
37 Object (bool& exists) in Object() argument
38 : m_exists(exists) in Object()
66 MovePtr<Object> createObject (bool& exists) in createObject() argument
68 UniquePtr<Object> objectPtr(new Object(exists)); in createObject()
78 bool exists = false; in UniquePtr_selfTest() local
80 UniquePtr<Object> ptr(new Object(exists)); in UniquePtr_selfTest()
81 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
84 DE_TEST_ASSERT(!exists); in UniquePtr_selfTest()
89 bool exists = false; in UniquePtr_selfTest() local
92 UniquePtr<Object> ptr(new Object(exists)); in UniquePtr_selfTest()
93 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
99 DE_TEST_ASSERT(!exists); in UniquePtr_selfTest()
101 DE_TEST_ASSERT(!exists); in UniquePtr_selfTest()
106 bool exists = false; in UniquePtr_selfTest() local
107 bool test = (UniquePtr<Object>(new Object(exists))).get() != DE_NULL && exists; in UniquePtr_selfTest()
108 DE_TEST_ASSERT(!exists); in UniquePtr_selfTest()
114 bool exists = false; in UniquePtr_selfTest() local
117 UniquePtr<Object, CustomDeleter> ptr(new Object(exists), CustomDeleter(&deleterCalled)); in UniquePtr_selfTest()
118 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
122 DE_TEST_ASSERT(!exists); in UniquePtr_selfTest()
128 bool exists = false; in UniquePtr_selfTest() local
129 MovePtr<Object> ptr(new Object(exists)); in UniquePtr_selfTest()
130 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
133 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
136 DE_TEST_ASSERT(!exists); in UniquePtr_selfTest()
141 bool exists = false; in UniquePtr_selfTest() local
142 UniquePtr<Object> ptr(new Object(exists)); in UniquePtr_selfTest()
143 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
146 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
149 DE_TEST_ASSERT(!exists); in UniquePtr_selfTest()
154 bool exists = false; in UniquePtr_selfTest() local
156 UniquePtr<Object> ptr(createObject(exists)); in UniquePtr_selfTest()
157 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
159 DE_TEST_ASSERT(!exists); in UniquePtr_selfTest()
175 bool exists = false; in UniquePtr_selfTest() local
178 MovePtr<Object> ptr1(new Object(exists)); in UniquePtr_selfTest()
182 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
184 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
186 DE_TEST_ASSERT(!exists); in UniquePtr_selfTest()
191 bool exists = false; in UniquePtr_selfTest() local
195 MovePtr<Object> ptr2(new Object(exists)); in UniquePtr_selfTest()
197 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
201 DE_TEST_ASSERT(!exists); in UniquePtr_selfTest()
210 bool exists = false; in UniquePtr_selfTest()
211 UniquePtr<Object> ptr(new Object(exists)); in UniquePtr_selfTest()
214 DE_TEST_ASSERT(exists); in UniquePtr_selfTest()
216 DE_TEST_ASSERT(!exists); in UniquePtr_selfTest()