Lines Matching refs:fValue
23 explicit SkTLazy(const T* src) : fValue(src ? std::optional<T>(*src) : std::nullopt) {} in SkTLazy()
24 SkTLazy(const SkTLazy& that) : fValue(that.fValue) {} in SkTLazy()
25 SkTLazy(SkTLazy&& that) : fValue(std::move(that.fValue)) {} in SkTLazy()
30 fValue = that.fValue;
35 fValue = std::move(that.fValue);
46 fValue.emplace(std::forward<Args>(args)...); in init()
57 fValue = src; in set()
62 fValue = std::move(src); in set()
70 fValue.reset(); in reset()
77 bool isValid() const { return fValue.has_value(); } in isValid()
84 SkASSERT(fValue.has_value()); in get()
85 return &fValue.value(); in get()
88 SkASSERT(fValue.has_value()); in get()
89 return &fValue.value(); in get()
96 SkASSERT(fValue.has_value());
97 return *fValue;
100 SkASSERT(fValue.has_value());
101 return *fValue;
108 const T* getMaybeNull() const { return fValue.has_value() ? this->get() : nullptr; } in getMaybeNull()
109 T* getMaybeNull() { return fValue.has_value() ? this->get() : nullptr; } in getMaybeNull()
112 std::optional<T> fValue;