mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-10 04:51:17 +00:00
Switched the Iterator implementation to a dedicated helper class (to hide the specific implementation, since it's pretty messy and may change).
This commit is contained in:
17
src/iterpriv.cpp
Normal file
17
src/iterpriv.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "crt.h"
|
||||
#include "iterpriv.h"
|
||||
|
||||
namespace YAML
|
||||
{
|
||||
IterPriv::IterPriv(): type(IT_NONE)
|
||||
{
|
||||
}
|
||||
|
||||
IterPriv::IterPriv(std::vector <Node *>::const_iterator it): seqIter(it), type(IT_SEQ)
|
||||
{
|
||||
}
|
||||
|
||||
IterPriv::IterPriv(std::map <Node *, Node *, ltnode>::const_iterator it): mapIter(it), type(IT_MAP)
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user