File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -31,31 +31,30 @@ namespace app {
31
31
// /
32
32
// / - Start iterating by creating an iteration state
33
33
// /
34
- // / mPosition = AttributePathExpandIterator::Position::StartIterating(path);
34
+ // / AttributePathExpandIterator::Position position = AttributePathExpandIterator::Position::StartIterating(path);
35
35
// /
36
36
// / - Use the iteration state in a for loop:
37
37
// /
38
38
// / ConcreteAttributePath path;
39
- // / for (AttributePathExpandIterator iterator(mPosition ); iterator->Next(path);) {
39
+ // / for (AttributePathExpandIterator iterator(position ); iterator->Next(path);) {
40
40
// / // use `path` here`
41
41
// / }
42
42
// /
43
43
// / OR:
44
44
// /
45
45
// / ConcreteAttributePath path;
46
- // / AttributePathExpandIterator iterator(mPosition );
46
+ // / AttributePathExpandIterator iterator(position );
47
47
// /
48
48
// / while (iterator.Next(path)) {
49
49
// / // use `path` here`
50
50
// / }
51
51
// /
52
- // / USAGE requirements and assumptions:
52
+ // / Usage requirements and assumptions:
53
53
// /
54
- // / - There should be only one single AttributePathExpandIterator for a state at a time.
55
- // /
56
- // / - `Position` is automatically updated by the AttributePathExpandIterator, so
57
- // / calling `Next` on the iterator will update the state variable.
54
+ // / - An ` AttributePathExpandIterator::Position` can only be used by a single AttributePathExpandIterator at a time.
58
55
// /
56
+ // / - `position` is automatically updated by the AttributePathExpandIterator, so
57
+ // / calling `Next` on the iterator will update the position cursor variable.
59
58
// /
60
59
class AttributePathExpandIterator
61
60
{
You can’t perform that action at this time.
0 commit comments