mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 20:59:45 +01:00
Add size method
This commit is contained in:
@@ -207,6 +207,10 @@ public:
|
||||
/// Reads a document from the reader
|
||||
|
||||
|
||||
size_t size() const;
|
||||
/// Returns the number of elements in the document.
|
||||
|
||||
|
||||
virtual std::string toString(int indent = 0) const;
|
||||
/// Returns a String representation of the document.
|
||||
|
||||
@@ -263,6 +267,12 @@ inline bool Document::exists(const std::string& name)
|
||||
}
|
||||
|
||||
|
||||
inline size_t Document::size() const
|
||||
{
|
||||
return _elements.size();
|
||||
}
|
||||
|
||||
|
||||
// BSON Embedded Document
|
||||
// spec: document
|
||||
template<>
|
||||
|
||||
Reference in New Issue
Block a user