summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-24 12:23:38 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-16 02:43:47 +0300
commit27fb47f70b55000fbd793c40377c20d915216f70 (patch)
tree902c9f46c8f02cac96707c12d1337d3ffec1d2c2 /include
parent27483e971fb43c0874b8399e7431dd805efa3994 (diff)
libcamera: yaml_parser: Extend YamlObject::size() to dictionaries
Dictionaries have a size too, extend the size() function to support them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/yaml_parser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libcamera/internal/yaml_parser.h b/include/libcamera/internal/yaml_parser.h
index e002fcf5..b4f852b1 100644
--- a/include/libcamera/internal/yaml_parser.h
+++ b/include/libcamera/internal/yaml_parser.h
@@ -39,6 +39,8 @@ public:
return type_ == Type::Dictionary;
}
+ std::size_t size() const;
+
#ifndef __DOXYGEN__
template<typename T,
typename std::enable_if_t<
@@ -53,7 +55,6 @@ public:
#endif
T get(const T &defaultValue, bool *ok = nullptr) const;
- std::size_t size() const;
const YamlObject &operator[](std::size_t index) const;
bool contains(const std::string &key) const;