Lines Matching refs:mValid
18 Optional() : mValid(false), mValue(T()) {} in Optional()
20 Optional(const T &valueIn) : mValid(true), mValue(valueIn) {} in Optional()
22 Optional(const Optional &other) : mValid(other.mValid), mValue(other.mValue) {} in Optional()
26 this->mValid = other.mValid;
34 mValid = true;
41 mValid = true;
45 void reset() { mValid = false; } in reset()
48 mValid = false; in release()
54 bool valid() const { return mValid; } in valid()
60 return ((mValid == other.mValid) && (!mValid || (mValue == other.mValue)));
65 bool operator==(const T &value) const { return mValid && (mValue == value); }
70 bool mValid;