Searched refs:linked_ptr (Results 1 - 17 of 17) sorted by relevance

/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-linked_ptr.h43 // - References are only tracked as long as linked_ptr<> objects are copied.
44 // If a linked_ptr<> is converted to a raw pointer and back, BAD THINGS
48 // You can safely put linked_ptr<> in a vector<>.
51 // Note: If you use an incomplete type with linked_ptr<>, the class
52 // *containing* linked_ptr<> must have a constructor and destructor (even
58 // Unlike other linked_ptr implementations, in this implementation
59 // a linked_ptr object is thread-safe in the sense that:
60 // - it's safe to copy linked_ptr objects concurrently,
61 // - it's safe to copy *from* a linked_ptr and read its underlying
66 // confusion with normal linked_ptr
146 class linked_ptr { class in namespace:testing::internal
152 explicit linked_ptr(T* ptr = NULL) { capture(ptr); } function in class:testing::internal::linked_ptr
156 template <typename U> linked_ptr(linked_ptr<U> const& ptr) { copy(&ptr); } function in class:testing::internal::linked_ptr
157 linked_ptr(linked_ptr const& ptr) { // NOLINT function in class:testing::internal::linked_ptr
[all...]
H A Dgtest-param-util.h48 #include "gtest/internal/gtest-linked_ptr.h"
199 linked_ptr<const ParamGeneratorInterface<T> > impl_;
526 tests_.push_back(linked_ptr<TestInfo>(new TestInfo(test_case_name,
549 linked_ptr<TestInfo> test_info = *test_it;
616 typedef ::std::vector<linked_ptr<TestInfo> > TestInfoContainer;
/gem5/ext/googletest/googletest/test/
H A Dgtest-linked_ptr_test.cc33 #include "gtest/internal/gtest-linked_ptr.h"
41 using testing::internal::linked_ptr;
79 linked_ptr<A> a0, a1, a2;
91 linked_ptr<A> a3(new A);
97 linked_ptr<A> a4(a0);
99 linked_ptr<A> a5(new A);
103 linked_ptr<B> b0(new B);
104 linked_ptr<A> a6(b0);
127 linked_ptr<A> a7;
/gem5/ext/googletest/googlemock/test/
H A Dgmock_stress_test.cc64 using internal::linked_ptr;
66 // Helper classes for testing using linked_ptr concurrently.
93 linked_ptr<Derived1> pointer1(new Derived1(1, 2));
94 linked_ptr<Derived2> pointer2(new Derived2(3, 4));
98 // Tests that we can copy from a linked_ptr and read it concurrently.
108 linked_ptr<Derived1> p1(pointer1);
113 linked_ptr<Base> p2;
122 const linked_ptr<Derived1> p0(new Derived1(1, 2));
130 linked_ptr<Derived1> p1(p0);
131 linked_ptr<Derived
[all...]
H A Dgmock-generated-actions_test.cc1132 using ::testing::internal::linked_ptr;
1133 const Action<linked_ptr<int>()> a = ReturnSmartPointer<linked_ptr>(42);
1134 linked_ptr<int> p = a.Perform(make_tuple());
1164 using ::testing::internal::linked_ptr;
1165 typedef GiantTemplate<linked_ptr<int>, bool, double, 5,
1168 int, bool, double, 5, true, 6, char, unsigned, int, linked_ptr>(42);
H A Dgmock-internal-utils_test.cc108 PointeeOf<internal::linked_ptr<const char> >::type>();
137 const internal::linked_ptr<const char> p4(raw_p4);
673 StlContainerView<tuple<linked_ptr<double>, int> >::type>();
H A Dgmock-more-actions_test.cc43 #include "gtest/internal/gtest-linked_ptr.h"
69 using testing::internal::linked_ptr;
534 linked_ptr<int> value(new int(5));
535 const Action<void(linked_ptr<int>)> a1 = SaveArgPointee<0>(&result);
H A Dgmock-matchers_test.cc149 using testing::internal::linked_ptr;
155 using testing::internal::linked_ptr;
1032 const Matcher<linked_ptr<int> > m = IsNull();
1033 const linked_ptr<int> null_p;
1034 const linked_ptr<int> non_null_p(new int);
1041 const Matcher<const linked_ptr<double>&> m = IsNull();
1042 const linked_ptr<double> null_p;
1043 const linked_ptr<double> non_null_p(new double);
1080 const Matcher<linked_ptr<int> > m = NotNull();
1081 const linked_ptr<in
[all...]
H A Dgmock-spec-builders_test.cc99 using testing::internal::linked_ptr;
173 MOCK_METHOD1(AcceptReference, void(linked_ptr<MockA>*));
2564 linked_ptr<MockA> a(new MockA);
2584 linked_ptr<MockA> a(new MockA);
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-cardinalities.h80 // be called. The implementation of Cardinality is just a linked_ptr
122 internal::linked_ptr<const CardinalityInterface> impl_;
H A Dgmock-actions.h348 // linked_ptr to const ActionInterface<T>, so copying is fairly cheap.
402 internal::linked_ptr<ActionInterface<F> > impl_;
496 const internal::linked_ptr<ActionInterface<F2> > impl_;
575 explicit Impl(const linked_ptr<R>& value)
600 explicit Impl(const linked_ptr<R>& wrapper)
612 const linked_ptr<R> wrapper_;
617 const linked_ptr<R> value_;
840 const internal::linked_ptr<Proto> proto_;
H A Dgmock-spec-builders.h221 typedef std::vector<internal::linked_ptr<ExpectationBase> >
485 // in the linked_ptr (or compilation errors if using a checking
486 // linked_ptr).
538 const internal::linked_ptr<internal::ExpectationBase>& expectation_base);
541 const internal::linked_ptr<internal::ExpectationBase>&
546 // A linked_ptr that co-owns the expectation this handle references.
547 internal::linked_ptr<internal::ExpectationBase> expectation_base_;
629 // The last expectation in this sequence. We use a linked_ptr here
631 // be aliases. The linked_ptr allows the copies to co-own and share
633 internal::linked_ptr<Expectatio
[all...]
H A Dgmock-matchers.h297 // shared_ptr (util/gtl/shared_ptr.h) and linked_ptr have similar
301 // memory. It has been observed that linked_ptr performs better in
303 // linked_ptr when there are many more uses of the copy constructor
308 ::testing::internal::linked_ptr<const MatcherInterface<T> > impl_;
315 // implementation of Matcher<T> is just a linked_ptr to const
1366 const internal::linked_ptr<const RE> regex_;
/gem5/ext/googletest/googlemock/include/gmock/internal/
H A Dgmock-internal-utils.h83 // This comparator allows linked_ptr to be stored in sets.
86 bool operator()(const ::testing::internal::linked_ptr<T>& lhs,
87 const ::testing::internal::linked_ptr<T>& rhs) const {
/gem5/ext/googletest/googletest/src/
H A Dgtest-port.cc419 linked_ptr<ThreadLocalValueHolderBase>(
428 std::vector<linked_ptr<ThreadLocalValueHolderBase> > value_holders;
456 std::vector<linked_ptr<ThreadLocalValueHolderBase> > value_holders;
483 linked_ptr<ThreadLocalValueHolderBase> > ThreadLocalValues;
/gem5/ext/googletest/googletest/
H A DMakefile.am204 include/gtest/internal/gtest-linked_ptr.h \
/gem5/ext/googletest/googlemock/src/
H A Dgmock-spec-builders.cc788 const internal::linked_ptr<internal::ExpectationBase>& an_expectation_base)

Completed in 84 milliseconds