mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-10 04:51:17 +00:00
Specialized the overloaded [] operator for int/unsigned, and added a size() function, so that you can iterate through a sequence node like a vector.
This commit is contained in:
@@ -14,8 +14,10 @@ namespace YAML
|
||||
virtual ~Sequence();
|
||||
|
||||
void Clear();
|
||||
virtual bool GetBegin(std::vector <Node *>::const_iterator& it);
|
||||
virtual bool GetEnd(std::vector <Node *>::const_iterator& it);
|
||||
virtual bool GetBegin(std::vector <Node *>::const_iterator& it) const;
|
||||
virtual bool GetEnd(std::vector <Node *>::const_iterator& it) const;
|
||||
virtual Node *GetNode(unsigned i) const;
|
||||
virtual unsigned GetSize() const;
|
||||
|
||||
virtual void Parse(Scanner *pScanner, const ParserState& state);
|
||||
virtual void Write(std::ostream& out, int indent);
|
||||
|
Reference in New Issue
Block a user