Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dtk
dtk
Commits
0103355e
Commit
0103355e
authored
Feb 11, 2013
by
KLOCZKO Thibaud
Browse files
Set iterator to front each time it is asked from the container.
parent
9ae5baaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dtkDistributed/dtkDistributedContainer.tpp
View file @
0103355e
...
...
@@ -3,9 +3,9 @@
* Author: Thibaud Kloczko
* Created: Tue Feb 5 14:12:49 2013 (+0100)
* Version:
* Last-Updated:
lun. févr. 11 13:53:13 201
3 (+0100)
* By:
Nicolas Niclausse
* Update #: 18
2
* Last-Updated:
2013 Mon Feb 11 15:36:3
3 (+0100)
* By:
Thibaud Kloczko
* Update #: 18
9
*/
/* Change Log:
...
...
@@ -95,6 +95,8 @@ template <typename T> dtkDistributedLocalIterator<T>& dtkDistributedContainer<T>
if
(
!
m_loc_it
)
m_loc_it
=
new
dtkDistributedLocalIterator
<
T
>
(
*
this
);
m_loc_it
->
toFront
();
return
*
m_loc_it
;
};
...
...
@@ -103,5 +105,7 @@ template <typename T> dtkDistributedGlobalIterator<T>& dtkDistributedContainer<T
if
(
!
m_glob_it
)
m_glob_it
=
new
dtkDistributedGlobalIterator
<
T
>
(
*
this
);
m_glob_it
->
toFront
();
return
*
m_glob_it
;
};
Write
Preview
Supports
Markdown
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