Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
c12a0347
"docs/source/ko/using-diffusers/custom_pipeline_examples.mdx" did not exist on "dc2a1c1d07bef046a76491ee5d4aab61ecfd67bc"
Commit
c12a0347
authored
Sep 10, 2011
by
beder
Browse files
New iterators work\!
parent
89f87d85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/yaml-cpp/value/detail/iterator.h
include/yaml-cpp/value/detail/iterator.h
+4
-4
include/yaml-cpp/value/detail/node_iterator.h
include/yaml-cpp/value/detail/node_iterator.h
+1
-1
No files found.
include/yaml-cpp/value/detail/iterator.h
View file @
c12a0347
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#include "yaml-cpp/value/ptr.h"
#include "yaml-cpp/value/ptr.h"
#include "yaml-cpp/value/detail/node_iterator.h"
#include "yaml-cpp/value/detail/node_iterator.h"
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/utility
/enable_if
.hpp>
#include <boost/utility.hpp>
namespace
YAML
namespace
YAML
{
{
...
@@ -41,10 +41,10 @@ namespace YAML
...
@@ -41,10 +41,10 @@ namespace YAML
private:
private:
friend
class
boost
::
iterator_core_access
;
friend
class
boost
::
iterator_core_access
;
void
increment
()
{
this
->
base_reference
()
=
this
->
base
()
->
next
(
);
}
void
increment
()
{
this
->
base_reference
()
=
boost
::
next
(
this
->
base
());
}
void
decrement
()
{
this
->
base_reference
()
=
this
->
base
()
->
previous
(
);
}
void
decrement
()
{
this
->
base_reference
()
=
boost
::
prior
(
this
->
base
());
}
value_type
dereference
()
{
value_type
dereference
()
const
{
const
typename
base_type
::
value_type
&
v
=
*
this
->
base
();
const
typename
base_type
::
value_type
&
v
=
*
this
->
base
();
if
(
v
.
pNode
)
if
(
v
.
pNode
)
return
value_type
(
Value
(
*
v
.
pNode
,
m_pMemory
));
return
value_type
(
Value
(
*
v
.
pNode
,
m_pMemory
));
...
...
include/yaml-cpp/value/detail/node_iterator.h
View file @
c12a0347
...
@@ -109,7 +109,7 @@ namespace YAML
...
@@ -109,7 +109,7 @@ namespace YAML
case
iterator_type
::
Sequence
:
return
value_type
(
**
m_seqIt
);
case
iterator_type
::
Sequence
:
return
value_type
(
**
m_seqIt
);
case
iterator_type
::
Map
:
return
value_type
(
*
m_mapIt
->
first
,
*
m_mapIt
->
second
);
case
iterator_type
::
Map
:
return
value_type
(
*
m_mapIt
->
first
,
*
m_mapIt
->
second
);
}
}
return
V
();
return
value_type
();
}
}
private:
private:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment