Lines Matching refs:T

57 template <class T>
58 class PropertyAccessor : public AccessorInterface<T> {
60 explicit PropertyAccessor(T* property) in PropertyAccessor()
67 T Get(Error* /*error*/) override { return *property_; } in Get()
68 bool Set(const T& value, Error* /*error*/) override { in Set()
77 T* const property_;
78 const T default_value_;
82 template <class T>
83 class ConstPropertyAccessor : public AccessorInterface<T> {
85 explicit ConstPropertyAccessor(const T* property) : property_(property) { in ConstPropertyAccessor()
95 T Get(Error* /*error*/) override { return *property_; } in Get()
96 bool Set(const T& /*value*/, Error* error) override { in Set() argument
104 const T* const property_;
108 template <class T>
109 class WriteOnlyPropertyAccessor : public AccessorInterface<T> {
111 explicit WriteOnlyPropertyAccessor(T* property) in WriteOnlyPropertyAccessor()
118 T Get(Error* error) override { in Get()
120 return T(); in Get()
122 bool Set(const T& value, Error* /*error*/) override { in Set()
136 T* const property_;
137 const T default_value_;
147 template<class C, class T>
148 class CustomAccessor : public AccessorInterface<T> {
158 T(C::*getter)(Error* error), in CustomAccessor()
159 bool(C::*setter)(const T& value, Error* error), in CustomAccessor()
174 T(C::*getter)(Error* error), in CustomAccessor()
175 bool(C::*setter)(const T& value, Error* error)) in CustomAccessor()
186 T Get(Error* error) override { in Get()
189 bool Set(const T& value, Error* error) override { in Set()
202 T default_value_;
203 T(C::*const getter_)(Error* error);
204 bool(C::*const setter_)(const T& value, Error* error); // NOLINT - "casting"
212 template<class C, class T>
213 class CustomWriteOnlyAccessor : public AccessorInterface<T> {
223 bool(C::*setter)(const T& value, Error* error), in CustomWriteOnlyAccessor()
225 const T* default_value) in CustomWriteOnlyAccessor()
247 T Get(Error* error) override { in Get()
249 return T(); in Get()
251 bool Set(const T& value, Error* error) override { in Set()
257 bool(C::*const setter_)(const T& value, Error* error); // NOLINT - "casting"
261 T default_value_;
267 template<class C, class T>
268 class CustomReadOnlyAccessor : public AccessorInterface<T> {
273 CustomReadOnlyAccessor(C* target, T(C::*getter)(Error* error) const) in CustomReadOnlyAccessor()
283 T Get(Error* error) override { in Get()
286 bool Set(const T& value, Error* error) override { in Set()
293 T(C::*const getter_)(Error* error) const;
300 template<class C, class T, class A>
301 class CustomMappedAccessor : public AccessorInterface<T> {
312 T(C::*getter)(const A& argument, Error* error), in CustomMappedAccessor()
313 bool(C::*setter)(const A& argument, const T& value, in CustomMappedAccessor()
330 T Get(Error* error) override { in Get()
333 bool Set(const T& value, Error* error) override { in Set()
345 T(C::*const getter_)(const A& argument, Error* error);
347 const T& value, Error* error);