Lines Matching refs:visit
127 * SkFieldVisitor is an interface that can be implemented by any class to visit all fields of
130 * Classes implementing the interface must supply implementations of virtual functions that visit
134 * All visit functions supply a field name, and a non-constant reference to an actual field.
139 * visit() for each of their fields, passing a (unique) field name, and the actual field. If your
140 * class has derived fields, it's best to only visit() the fields that you would serialize, then
150 virtual void visit(const char*, float&) = 0;
151 virtual void visit(const char*, int&) = 0;
152 virtual void visit(const char*, bool&) = 0;
153 virtual void visit(const char*, SkString&) = 0;
159 void visit(const char* name, SkTArray<T, MEM_MOVE>& arr) {
162 this->visit(nullptr, arr[i]);
173 void visit(const char* name, sk_sp<T>& obj) {
177 this->visit(newObj, T::GetType());
225 virtual void visit(sk_sp<SkReflected>&, const SkReflected::Type* baseType) = 0;