diff --git a/include/libcamera/internal/matrix.h b/include/libcamera/internal/matrix.h index 1842389f..67761cb6 100644 --- a/include/libcamera/internal/matrix.h +++ b/include/libcamera/internal/matrix.h @@ -200,7 +200,7 @@ std::ostream &operator<<(std::ostream &out, const Matrix &m) } template -struct YamlObject::Getter> { +struct YamlObject::Accessor> { std::optional> get(const YamlObject &obj) const { if (!matrixValidateYaml(obj, Rows * Cols)) diff --git a/include/libcamera/internal/vector.h b/include/libcamera/internal/vector.h index 16b6aef0..cfd8882c 100644 --- a/include/libcamera/internal/vector.h +++ b/include/libcamera/internal/vector.h @@ -347,7 +347,7 @@ std::ostream &operator<<(std::ostream &out, const Vector &v) } template -struct YamlObject::Getter> { +struct YamlObject::Accessor> { std::optional> get(const YamlObject &obj) const { if (!vectorValidateYaml(obj, Rows)) diff --git a/include/libcamera/internal/yaml_parser.h b/include/libcamera/internal/yaml_parser.h index 03d6a05e..0ff02670 100644 --- a/include/libcamera/internal/yaml_parser.h +++ b/include/libcamera/internal/yaml_parser.h @@ -173,7 +173,7 @@ public: template std::optional get() const { - return Getter{}.get(*this); + return Accessor{}.get(*this); } template @@ -213,7 +213,7 @@ private: LIBCAMERA_DISABLE_COPY_AND_MOVE(YamlObject) template - friend struct Getter; + friend struct Accessor; friend class YamlParserContext; enum class Type { @@ -224,7 +224,7 @@ private: }; template - struct Getter { + struct Accessor { std::optional get(const YamlObject &obj) const; }; diff --git a/src/ipa/libipa/lsc_polynomial.h b/src/ipa/libipa/lsc_polynomial.h index c898faeb..df3a0d4b 100644 --- a/src/ipa/libipa/lsc_polynomial.h +++ b/src/ipa/libipa/lsc_polynomial.h @@ -81,7 +81,7 @@ private: #ifndef __DOXYGEN__ template<> -struct YamlObject::Getter { +struct YamlObject::Accessor { std::optional get(const YamlObject &obj) const { std::optional cx = obj["cx"].get(); diff --git a/src/ipa/libipa/pwl.cpp b/src/ipa/libipa/pwl.cpp index 72b63c4d..f38573e6 100644 --- a/src/ipa/libipa/pwl.cpp +++ b/src/ipa/libipa/pwl.cpp @@ -435,7 +435,7 @@ std::string Pwl::toString() const */ template<> std::optional -YamlObject::Getter::get(const YamlObject &obj) const +YamlObject::Accessor::get(const YamlObject &obj) const { /* Treat a single value as single point PWL. */ if (obj.isValue()) { diff --git a/src/libcamera/yaml_parser.cpp b/src/libcamera/yaml_parser.cpp index 791fb6ee..806a2743 100644 --- a/src/libcamera/yaml_parser.cpp +++ b/src/libcamera/yaml_parser.cpp @@ -134,7 +134,7 @@ std::size_t YamlObject::size() const template<> std::optional -YamlObject::Getter::get(const YamlObject &obj) const +YamlObject::Accessor::get(const YamlObject &obj) const { if (obj.type_ != Type::Value) return std::nullopt; @@ -148,7 +148,7 @@ YamlObject::Getter::get(const YamlObject &obj) const } template -struct YamlObject::Getter || std::is_same_v || std::is_same_v || @@ -173,23 +173,23 @@ struct YamlObject::Getter; -template struct YamlObject::Getter; -template struct YamlObject::Getter; -template struct YamlObject::Getter; -template struct YamlObject::Getter; -template struct YamlObject::Getter; +template struct YamlObject::Accessor; +template struct YamlObject::Accessor; +template struct YamlObject::Accessor; +template struct YamlObject::Accessor; +template struct YamlObject::Accessor; +template struct YamlObject::Accessor; template<> std::optional -YamlObject::Getter::get(const YamlObject &obj) const +YamlObject::Accessor::get(const YamlObject &obj) const { return obj.get(); } template<> std::optional -YamlObject::Getter::get(const YamlObject &obj) const +YamlObject::Accessor::get(const YamlObject &obj) const { if (obj.type_ != Type::Value) return std::nullopt; @@ -210,7 +210,7 @@ YamlObject::Getter::get(const YamlObject &obj) const template<> std::optional -YamlObject::Getter::get(const YamlObject &obj) const +YamlObject::Accessor::get(const YamlObject &obj) const { if (obj.type_ != Type::Value) return std::nullopt; @@ -220,7 +220,7 @@ YamlObject::Getter::get(const YamlObject &obj) const template<> std::optional -YamlObject::Getter::get(const YamlObject &obj) const +YamlObject::Accessor::get(const YamlObject &obj) const { if (obj.type_ != Type::List) return std::nullopt;