Home | History | Annotate | Download | only in json

Lines Matching refs:FieldType

110 template <typename FieldType>
114 virtual bool Convert(const base::Value& value, FieldType* field) const = 0;
117 template <typename StructType, typename FieldType>
121 FieldType StructType::* field,
122 ValueConverter<FieldType>* converter)
133 FieldType StructType::* field_pointer_;
134 scoped_ptr<ValueConverter<FieldType> > value_converter_;
138 template <typename FieldType>
198 template <typename FieldType>
199 class ValueFieldConverter : public ValueConverter<FieldType> {
201 typedef bool(*ConvertFunc)(const base::Value* value, FieldType* field);
206 bool Convert(const base::Value& value, FieldType* field) const override {
216 template <typename FieldType>
217 class CustomFieldConverter : public ValueConverter<FieldType> {
219 typedef bool(*ConvertFunc)(const StringPiece& value, FieldType* field);
224 bool Convert(const base::Value& value, FieldType* field) const override {
405 template <typename FieldType>
408 FieldType StructType::* field,
409 bool (*convert_func)(const StringPiece&, FieldType*)) {
410 fields_.push_back(new internal::FieldConverter<StructType, FieldType>(
413 new internal::CustomFieldConverter<FieldType>(convert_func)));
416 template <typename FieldType>
419 FieldType StructType::* field,
420 bool (*convert_func)(const base::Value*, FieldType*)) {
421 fields_.push_back(new internal::FieldConverter<StructType, FieldType>(
424 new internal::ValueFieldConverter<FieldType>(convert_func)));