Lines Matching refs:ValueHolder
1740 // Base class for ValueHolder<T>. Allows a caller to hold and delete a value
1751 // Creates a new ValueHolder<T> object holding a default value passed to
1875 class ValueHolder : public ThreadLocalValueHolderBase {
1877 ValueHolder() : value_() {}
1878 explicit ValueHolder(const T& value) : value_(value) {}
1884 GTEST_DISALLOW_COPY_AND_ASSIGN_(ValueHolder);
1889 return static_cast<ValueHolder*>(
1901 virtual ValueHolder* MakeNewHolder() const = 0;
1910 virtual ValueHolder* MakeNewHolder() const { return new ValueHolder(); }
1919 virtual ValueHolder* MakeNewHolder() const {
1920 return new ValueHolder(value_);
2067 class ValueHolder : public ThreadLocalValueHolderBase {
2069 ValueHolder() : value_() {}
2070 explicit ValueHolder(const T& value) : value_(value) {}
2076 GTEST_DISALLOW_COPY_AND_ASSIGN_(ValueHolder);
2092 return CheckedDowncastToActualType<ValueHolder>(holder)->pointer();
2095 ValueHolder* const new_holder = default_factory_->MakeNewHolder();
2105 virtual ValueHolder* MakeNewHolder() const = 0;
2114 virtual ValueHolder* MakeNewHolder() const { return new ValueHolder(); }
2123 virtual ValueHolder* MakeNewHolder() const {
2124 return new ValueHolder(value_);