1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv=
"Content-Type" content=
"text/html;charset=UTF-8">
3 <title>LibSylph: Sylph::SylphIterator
< Iter
> Class Template Reference
</title>
4 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css">
6 <!-- Generated by Doxygen 1.5.8 -->
7 <div class=
"navigation" id=
"top">
10 <li><a href=
"index.html"><span>Main
Page
</span></a></li>
11 <li><a href=
"namespaces.html"><span>Namespaces
</span></a></li>
12 <li class=
"current"><a href=
"classes.html"><span>Classes
</span></a></li>
13 <li><a href=
"files.html"><span>Files
</span></a></li>
14 <li><a href=
"pages.html"><span>Related
Pages
</span></a></li>
19 <li><a href=
"classes.html"><span>Class
Index
</span></a></li>
20 <li><a href=
"hierarchy.html"><span>Class
Hierarchy
</span></a></li>
21 <li><a href=
"functions.html"><span>Class
Members
</span></a></li>
24 <div class=
"navpath"><a class=
"el" href=
"namespace_sylph.html">Sylph
</a>::
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">SylphIterator
</a>
27 <div class=
"contents">
28 <h1>Sylph::SylphIterator
< Iter
> Class Template Reference
</h1><!-- doxytag: class="Sylph::SylphIterator" --><!-- doxytag: inherits="Sylph::Object" --><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html" title=
"SylphIterator provides a easier-to-use wrapper around STL iterators.">SylphIterator
</a> provides a easier-to-use wrapper around STL iterators.
29 <a href=
"#_details">More...
</a>
31 <code>#include
<<a class=
"el" href=
"_iterator_8h-source.html">Sylph/Core/Iterator.h
</a>></code>
33 <div class=
"dynheader">
34 Inheritance diagram for Sylph::SylphIterator
< Iter
>:
</div>
35 <div class=
"dynsection">
36 <p><center><img src=
"class_sylph_1_1_sylph_iterator__inherit__graph.png" border=
"0" usemap=
"#_sylph_1_1_sylph_iterator_3_01_iter_01_4__inherit__map" alt=
"Inheritance graph"></center>
37 <map name=
"_sylph_1_1_sylph_iterator_3_01_iter_01_4__inherit__map">
38 <area shape=
"rect" id=
"node2" href=
"class_sylph_1_1_object.html" title=
"The root of all classes." alt=
"" coords=
"53,5,165,35"></map>
39 <center><font size=
"2">[
<a href=
"graph_legend.html">legend
</a>]
</font></center></div>
42 <a href=
"class_sylph_1_1_sylph_iterator-members.html">List of all members.
</a><table border=
"0" cellpadding=
"0" cellspacing=
"0">
44 <tr><td colspan=
"2"><br><h2>Public Member Functions
</h2></td></tr>
45 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top"> </td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#6f74149cc4a6e7a057f51c33ce26709b">SylphIterator
</a> (Iter
&it)
</td></tr>
47 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Creates a new Iterator from an STL-iterator.
<a href=
"#6f74149cc4a6e7a057f51c33ce26709b"></a><br></td></tr>
48 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#550c350d2d7744a7fd6af44c716fb846">~SylphIterator
</a> ()
</td></tr>
50 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Destructor.
<a href=
"#550c350d2d7744a7fd6af44c716fb846"></a><br></td></tr>
51 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual bool
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#24c0cef4d514f69fec6577f55dc93799">hasNext
</a> () const
</td></tr>
53 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Checks if this iterator has any more entries in forward direction.
<a href=
"#24c0cef4d514f69fec6577f55dc93799"></a><br></td></tr>
54 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual const Iter::reference
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#5cafc479cfa2742212ed80b4e1b03a4e">next
</a> () const
</td></tr>
56 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Returns the next entry in the forward direction and moves the iterator one place forward.
<a href=
"#5cafc479cfa2742212ed80b4e1b03a4e"></a><br></td></tr>
57 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual bool
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#42de0477358aa16970ef257d041047e3">hasPrevious
</a> () const
</td></tr>
59 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Checks if this iterator has any more entries in backward direction.
<a href=
"#42de0477358aa16970ef257d041047e3"></a><br></td></tr>
60 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual const Iter::reference
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#3277c644458465f50deb6713d308309c">previous
</a> () const
</td></tr>
62 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Returns the next entry in the backward direction and moves the iterator one place backward.
<a href=
"#3277c644458465f50deb6713d308309c"></a><br></td></tr>
63 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#da51b20d4f61fb1728e19100d6da0ba2">front
</a> () const
</td></tr>
65 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Moves the Iterator to the place
"before" the first item, that is, it gives the pointer in the iterator such a value that hasPrevious returns false.
<a href=
"#da51b20d4f61fb1728e19100d6da0ba2"></a><br></td></tr>
66 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#70994ef8bc524a231b6852f3ce05b94b">back
</a> () const
</td></tr>
68 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Moves the Iterator to the place
"after" the last item, that is, it gives the pointer in the iterator such a value that hasNext returns false.
<a href=
"#70994ef8bc524a231b6852f3ce05b94b"></a><br></td></tr>
69 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual std::idx_t
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#fe653e20cc020e9fea58b2e0b8be8ab9">nextIndex
</a> () const
</td></tr>
71 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Returns the next index of the Iterable in the forward direction.
<a href=
"#fe653e20cc020e9fea58b2e0b8be8ab9"></a><br></td></tr>
72 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual std::idx_t
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#9966f87c9c01a9a13523a34568989124">previousIndex
</a> () const
</td></tr>
74 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Returns the next index of the Iterable in the backward direction.
<a href=
"#9966f87c9c01a9a13523a34568989124"></a><br></td></tr>
75 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#dea685b03c30249496bdd82f303323d5">set
</a> (typename Iter::reference t)
</td></tr>
77 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Replaces the last item returned by
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#5cafc479cfa2742212ed80b4e1b03a4e" title=
"Returns the next entry in the forward direction and moves the iterator one place...">next()
</a> or
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#3277c644458465f50deb6713d308309c" title=
"Returns the next entry in the backward direction and moves the iterator one place...">previous()
</a> with the given item.
<a href=
"#dea685b03c30249496bdd82f303323d5"></a><br></td></tr>
78 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top"><a class=
"anchor" name=
"2f46f4a09608eb6d53e4148f23805b6f"></a><!-- doxytag: member="Sylph::SylphIterator::operator++" ref="2f46f4a09608eb6d53e4148f23805b6f" args="() const " -->
79 const Iter::reference
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#2f46f4a09608eb6d53e4148f23805b6f">operator++
</a> () const
</td></tr>
81 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Synonymous for
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#5cafc479cfa2742212ed80b4e1b03a4e" title=
"Returns the next entry in the forward direction and moves the iterator one place...">next()
</a>.
<br></td></tr>
82 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top"><a class=
"anchor" name=
"62ec59cb349ca1e92fbcbe75176d5c4f"></a><!-- doxytag: member="Sylph::SylphIterator::operator--" ref="62ec59cb349ca1e92fbcbe75176d5c4f" args="() const " -->
83 const Iter::reference
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#62ec59cb349ca1e92fbcbe75176d5c4f">operator--
</a> () const
</td></tr>
85 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Synonymous for
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#3277c644458465f50deb6713d308309c" title=
"Returns the next entry in the backward direction and moves the iterator one place...">previous()
</a>.
<br></td></tr>
86 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">const Iter::reference
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#3ea8e165a6e4438fcb82f86117f0b16d">operator++
</a> (int) const
</td></tr>
88 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Synoynmous for
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#5cafc479cfa2742212ed80b4e1b03a4e" title=
"Returns the next entry in the forward direction and moves the iterator one place...">next()
</a>.
<a href=
"#3ea8e165a6e4438fcb82f86117f0b16d"></a><br></td></tr>
89 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">const Iter::reference
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#40260b5a6935ec8b2403680e34e9e91f">operator--
</a> (int) const
</td></tr>
91 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Synonymous for
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#3277c644458465f50deb6713d308309c" title=
"Returns the next entry in the backward direction and moves the iterator one place...">previous()
</a>.
<a href=
"#40260b5a6935ec8b2403680e34e9e91f"></a><br></td></tr>
93 <hr><a name=
"_details"></a><h2>Detailed Description
</h2>
94 <h3>template
<class Iter
><br>
95 class Sylph::SylphIterator
< Iter
></h3>
97 <a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html" title=
"SylphIterator provides a easier-to-use wrapper around STL iterators.">SylphIterator
</a> provides a easier-to-use wrapper around STL iterators.
99 The interface of a
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html" title=
"SylphIterator provides a easier-to-use wrapper around STL iterators.">SylphIterator
</a> is similar to a Java-style iterator, but it is backed by a STL iterator and can therefore be used for any class supporitng STL iterators.
<hr><h2>Constructor
& Destructor Documentation
</h2>
100 <a class=
"anchor" name=
"6f74149cc4a6e7a057f51c33ce26709b"></a><!-- doxytag: member="Sylph::SylphIterator::SylphIterator" ref="6f74149cc4a6e7a057f51c33ce26709b" args="(Iter &it)" -->
101 <div class=
"memitem">
102 <div class=
"memproto">
103 <div class=
"memtemplate">
104 template
<class Iter
> </div>
105 <table class=
"memname">
107 <td class=
"memname"><a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">SylphIterator
</a> </td>
109 <td class=
"paramtype">Iter
& </td>
110 <td class=
"paramname"> <em>it
</em> </td>
111 <td> )
</td>
112 <td><code> [inline]
</code></td>
119 Creates a new Iterator from an STL-iterator.
121 An Iterator can either be constructed explicitly with this constructor, in which case the correct type of Iterator for the particular collection needs to be known, or through Iterable::iterator() or Iterable::mutableIterator() .
<dl compact
><dt><b>Parameters:
</b></dt><dd>
122 <table border=
"0" cellspacing=
"2" cellpadding=
"0">
123 <tr><td valign=
"top"></td><td valign=
"top"><em>it
</em> </td><td>The iterable to iterate over.
</td></tr>
129 <a class=
"anchor" name=
"550c350d2d7744a7fd6af44c716fb846"></a><!-- doxytag: member="Sylph::SylphIterator::~SylphIterator" ref="550c350d2d7744a7fd6af44c716fb846" args="()" -->
130 <div class=
"memitem">
131 <div class=
"memproto">
132 <div class=
"memtemplate">
133 template
<class Iter
> </div>
134 <table class=
"memname">
136 <td class=
"memname">virtual
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::~
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">SylphIterator
</a> </td>
138 <td class=
"paramname"> </td>
139 <td> )
</td>
140 <td><code> [inline, virtual]
</code></td>
149 This destructor does nothing.
152 <hr><h2>Member Function Documentation
</h2>
153 <a class=
"anchor" name=
"70994ef8bc524a231b6852f3ce05b94b"></a><!-- doxytag: member="Sylph::SylphIterator::back" ref="70994ef8bc524a231b6852f3ce05b94b" args="() const " -->
154 <div class=
"memitem">
155 <div class=
"memproto">
156 <div class=
"memtemplate">
157 template
<class Iter
> </div>
158 <table class=
"memname">
160 <td class=
"memname">virtual void
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::back
</td>
162 <td class=
"paramname"> </td>
163 <td> )
</td>
164 <td> const
<code> [inline, virtual]
</code></td>
171 Moves the Iterator to the place
"after" the last item, that is, it gives the pointer in the iterator such a value that hasNext returns false.
173 This method is useful for backward iterating, i.e.
<pre>Iterator it = coll.getIterator(); // normal 'forward' iterator
174 it.back(); // ready for backward iteration
</pre>
177 <a class=
"anchor" name=
"da51b20d4f61fb1728e19100d6da0ba2"></a><!-- doxytag: member="Sylph::SylphIterator::front" ref="da51b20d4f61fb1728e19100d6da0ba2" args="() const " -->
178 <div class=
"memitem">
179 <div class=
"memproto">
180 <div class=
"memtemplate">
181 template
<class Iter
> </div>
182 <table class=
"memname">
184 <td class=
"memname">virtual void
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::front
</td>
186 <td class=
"paramname"> </td>
187 <td> )
</td>
188 <td> const
<code> [inline, virtual]
</code></td>
195 Moves the Iterator to the place
"before" the first item, that is, it gives the pointer in the iterator such a value that hasPrevious returns false.
197 <dl class=
"user" compact
><dt><b>Note:
</b></dt><dd>This requires that the backing iterator is a bidirectional iterator.
</dd></dl>
201 <a class=
"anchor" name=
"24c0cef4d514f69fec6577f55dc93799"></a><!-- doxytag: member="Sylph::SylphIterator::hasNext" ref="24c0cef4d514f69fec6577f55dc93799" args="() const " -->
202 <div class=
"memitem">
203 <div class=
"memproto">
204 <div class=
"memtemplate">
205 template
<class Iter
> </div>
206 <table class=
"memname">
208 <td class=
"memname">virtual bool
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::hasNext
</td>
210 <td class=
"paramname"> </td>
211 <td> )
</td>
212 <td> const
<code> [inline, virtual]
</code></td>
219 Checks if this iterator has any more entries in forward direction.
221 <dl class=
"return" compact
><dt><b>Returns:
</b></dt><dd><em>true
</em> if there are more entries,
<em>false
</em> otherwise.
</dd></dl>
225 <a class=
"anchor" name=
"42de0477358aa16970ef257d041047e3"></a><!-- doxytag: member="Sylph::SylphIterator::hasPrevious" ref="42de0477358aa16970ef257d041047e3" args="() const " -->
226 <div class=
"memitem">
227 <div class=
"memproto">
228 <div class=
"memtemplate">
229 template
<class Iter
> </div>
230 <table class=
"memname">
232 <td class=
"memname">virtual bool
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::hasPrevious
</td>
234 <td class=
"paramname"> </td>
235 <td> )
</td>
236 <td> const
<code> [inline, virtual]
</code></td>
243 Checks if this iterator has any more entries in backward direction.
245 <dl class=
"return" compact
><dt><b>Returns:
</b></dt><dd><em>true
</em> if there are more entries,
<em>false
</em> otherwise.
</dd></dl>
246 <dl class=
"user" compact
><dt><b>Note:
</b></dt><dd>This requires that the backing iterator is a bidirectional iterator.
</dd></dl>
250 <a class=
"anchor" name=
"5cafc479cfa2742212ed80b4e1b03a4e"></a><!-- doxytag: member="Sylph::SylphIterator::next" ref="5cafc479cfa2742212ed80b4e1b03a4e" args="() const " -->
251 <div class=
"memitem">
252 <div class=
"memproto">
253 <div class=
"memtemplate">
254 template
<class Iter
> </div>
255 <table class=
"memname">
257 <td class=
"memname">virtual const Iter::reference
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::next
</td>
259 <td class=
"paramname"> </td>
260 <td> )
</td>
261 <td> const
<code> [inline, virtual]
</code></td>
268 Returns the next entry in the forward direction and moves the iterator one place forward.
270 <dl compact
><dt><b>Exceptions:
</b></dt><dd>
271 <table border=
"0" cellspacing=
"2" cellpadding=
"0">
272 <tr><td valign=
"top"></td><td valign=
"top"><em><a class=
"el" href=
"class_sylph_1_1_exception.html" title=
"This class provides a ready-to-use interface for exception handling.">Exception
</a></em> </td><td>if there are no more entries.
</td></tr>
275 <dl class=
"return" compact
><dt><b>Returns:
</b></dt><dd>The next entry
</dd></dl>
279 <a class=
"anchor" name=
"fe653e20cc020e9fea58b2e0b8be8ab9"></a><!-- doxytag: member="Sylph::SylphIterator::nextIndex" ref="fe653e20cc020e9fea58b2e0b8be8ab9" args="() const " -->
280 <div class=
"memitem">
281 <div class=
"memproto">
282 <div class=
"memtemplate">
283 template
<class Iter
> </div>
284 <table class=
"memname">
286 <td class=
"memname">virtual std::idx_t
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::nextIndex
</td>
288 <td class=
"paramname"> </td>
289 <td> )
</td>
290 <td> const
<code> [inline, virtual]
</code></td>
297 Returns the next index of the Iterable in the forward direction.
299 <dl compact
><dt><b>Exceptions:
</b></dt><dd>
300 <table border=
"0" cellspacing=
"2" cellpadding=
"0">
301 <tr><td valign=
"top"></td><td valign=
"top"><em><a class=
"el" href=
"class_sylph_1_1_exception.html" title=
"This class provides a ready-to-use interface for exception handling.">Exception
</a></em> </td><td>if there are no more entries.
</td></tr>
304 <dl class=
"return" compact
><dt><b>Returns:
</b></dt><dd>The next index in the Iterable
</dd></dl>
305 <dl class=
"user" compact
><dt><b>Note:
</b></dt><dd>This method requires the backing iterator to be a random-access iterator.
</dd></dl>
309 <a class=
"anchor" name=
"3ea8e165a6e4438fcb82f86117f0b16d"></a><!-- doxytag: member="Sylph::SylphIterator::operator++" ref="3ea8e165a6e4438fcb82f86117f0b16d" args="(int) const " -->
310 <div class=
"memitem">
311 <div class=
"memproto">
312 <div class=
"memtemplate">
313 template
<class Iter
> </div>
314 <table class=
"memname">
316 <td class=
"memname">const Iter::reference
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::operator++
</td>
318 <td class=
"paramtype">int
</td>
319 <td class=
"paramname"> </td>
320 <td> )
</td>
321 <td> const
<code> [inline]
</code></td>
328 Synoynmous for
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#5cafc479cfa2742212ed80b4e1b03a4e" title=
"Returns the next entry in the forward direction and moves the iterator one place...">next()
</a>.
330 <dl class=
"user" compact
><dt><b>Note:
</b></dt><dd>No copy of this iterator is made.
</dd></dl>
334 <a class=
"anchor" name=
"40260b5a6935ec8b2403680e34e9e91f"></a><!-- doxytag: member="Sylph::SylphIterator::operator--" ref="40260b5a6935ec8b2403680e34e9e91f" args="(int) const " -->
335 <div class=
"memitem">
336 <div class=
"memproto">
337 <div class=
"memtemplate">
338 template
<class Iter
> </div>
339 <table class=
"memname">
341 <td class=
"memname">const Iter::reference
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::operator--
</td>
343 <td class=
"paramtype">int
</td>
344 <td class=
"paramname"> </td>
345 <td> )
</td>
346 <td> const
<code> [inline]
</code></td>
353 Synonymous for
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#3277c644458465f50deb6713d308309c" title=
"Returns the next entry in the backward direction and moves the iterator one place...">previous()
</a>.
355 <dl class=
"user" compact
><dt><b>Note:
</b></dt><dd>No copy is of this iterator is made.
</dd></dl>
359 <a class=
"anchor" name=
"3277c644458465f50deb6713d308309c"></a><!-- doxytag: member="Sylph::SylphIterator::previous" ref="3277c644458465f50deb6713d308309c" args="() const " -->
360 <div class=
"memitem">
361 <div class=
"memproto">
362 <div class=
"memtemplate">
363 template
<class Iter
> </div>
364 <table class=
"memname">
366 <td class=
"memname">virtual const Iter::reference
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::previous
</td>
368 <td class=
"paramname"> </td>
369 <td> )
</td>
370 <td> const
<code> [inline, virtual]
</code></td>
377 Returns the next entry in the backward direction and moves the iterator one place backward.
379 <dl compact
><dt><b>Exceptions:
</b></dt><dd>
380 <table border=
"0" cellspacing=
"2" cellpadding=
"0">
381 <tr><td valign=
"top"></td><td valign=
"top"><em><a class=
"el" href=
"class_sylph_1_1_exception.html" title=
"This class provides a ready-to-use interface for exception handling.">Exception
</a></em> </td><td>if there are no more entries.
</td></tr>
384 <dl class=
"return" compact
><dt><b>Returns:
</b></dt><dd>The previous entry
</dd></dl>
385 <dl class=
"user" compact
><dt><b>Note:
</b></dt><dd>This requires that the backing iterator is a bidirectional iterator.
</dd></dl>
389 <a class=
"anchor" name=
"9966f87c9c01a9a13523a34568989124"></a><!-- doxytag: member="Sylph::SylphIterator::previousIndex" ref="9966f87c9c01a9a13523a34568989124" args="() const " -->
390 <div class=
"memitem">
391 <div class=
"memproto">
392 <div class=
"memtemplate">
393 template
<class Iter
> </div>
394 <table class=
"memname">
396 <td class=
"memname">virtual std::idx_t
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::previousIndex
</td>
398 <td class=
"paramname"> </td>
399 <td> )
</td>
400 <td> const
<code> [inline, virtual]
</code></td>
407 Returns the next index of the Iterable in the backward direction.
409 <dl compact
><dt><b>Exceptions:
</b></dt><dd>
410 <table border=
"0" cellspacing=
"2" cellpadding=
"0">
411 <tr><td valign=
"top"></td><td valign=
"top"><em><a class=
"el" href=
"class_sylph_1_1_exception.html" title=
"This class provides a ready-to-use interface for exception handling.">Exception
</a></em> </td><td>if there are no more entries.
</td></tr>
414 <dl class=
"return" compact
><dt><b>Returns:
</b></dt><dd>The previous index in the Iterable
</dd></dl>
415 <dl class=
"user" compact
><dt><b>Note:
</b></dt><dd>This method requires the backing iterator to be a random-access iterator.
</dd></dl>
419 <a class=
"anchor" name=
"dea685b03c30249496bdd82f303323d5"></a><!-- doxytag: member="Sylph::SylphIterator::set" ref="dea685b03c30249496bdd82f303323d5" args="(typename Iter::reference t)" -->
420 <div class=
"memitem">
421 <div class=
"memproto">
422 <div class=
"memtemplate">
423 template
<class Iter
> </div>
424 <table class=
"memname">
426 <td class=
"memname">virtual void
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html">Sylph::SylphIterator
</a>< Iter
>::set
</td>
428 <td class=
"paramtype">typename Iter::reference
</td>
429 <td class=
"paramname"> <em>t
</em> </td>
430 <td> )
</td>
431 <td><code> [inline, virtual]
</code></td>
438 Replaces the last item returned by
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#5cafc479cfa2742212ed80b4e1b03a4e" title=
"Returns the next entry in the forward direction and moves the iterator one place...">next()
</a> or
<a class=
"el" href=
"class_sylph_1_1_sylph_iterator.html#3277c644458465f50deb6713d308309c" title=
"Returns the next entry in the backward direction and moves the iterator one place...">previous()
</a> with the given item.
440 <dl compact
><dt><b>Parameters:
</b></dt><dd>
441 <table border=
"0" cellspacing=
"2" cellpadding=
"0">
442 <tr><td valign=
"top"></td><td valign=
"top"><em>t
</em> </td><td>The item to replace the last returned item with.
</td></tr>
449 <hr size=
"1" class=
"unhidden"><address style=
"text-align: right;"><small>
450 Documentation for LibSylph by Doxygen