Added an iterator class that can iterate through both sequence and map nodes.

This commit is contained in:
beder
2008-07-02 01:22:39 +00:00
parent 81ff4946ae
commit b4b287c4e9
16 changed files with 393 additions and 105 deletions

View File

@@ -22,6 +22,18 @@ namespace YAML
m_data.clear();
}
bool Sequence::GetBegin(std::vector <Node *>::const_iterator& it)
{
it = m_data.begin();
return true;
}
bool Sequence::GetEnd(std::vector <Node *>::const_iterator& it)
{
it = m_data.end();
return true;
}
void Sequence::Parse(Scanner *pScanner, const ParserState& state)
{
Clear();