Lines Matching refs:data_
72 ScopedGeneric() : data_(traits_type::InvalidValue()) {} in ScopedGeneric()
76 explicit ScopedGeneric(const element_type& value) : data_(value) {} in ScopedGeneric()
80 : data_(value, traits) {} in ScopedGeneric()
84 : data_(rvalue.release(), rvalue.get_traits()) {} in ScopedGeneric()
98 if (data_.generic != traits_type::InvalidValue() && data_.generic == value)
101 data_.generic = value;
109 swap(static_cast<Traits&>(data_), static_cast<Traits&>(other.data_)); in swap()
110 swap(data_.generic, other.data_.generic); in swap()
117 element_type old_generic = data_.generic; in release()
118 data_.generic = traits_type::InvalidValue(); in release()
126 return &data_.generic; in receive()
129 const element_type& get() const { return data_.generic; } in get()
133 bool is_valid() const { return data_.generic != traits_type::InvalidValue(); } in is_valid()
136 return data_.generic == value;
139 return data_.generic != value;
142 Traits& get_traits() { return data_; } in get_traits()
143 const Traits& get_traits() const { return data_; } in get_traits()
147 if (data_.generic != traits_type::InvalidValue()) { in FreeIfNecessary()
148 data_.Free(data_.generic); in FreeIfNecessary()
149 data_.generic = traits_type::InvalidValue(); in FreeIfNecessary()
161 Data data_; variable