123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
- <title>GTL - Graph Template Library: symlist< T > Class Template Reference</title>
- <link href="doxygen.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <p class="links">
- <a href="../index.html">Home</a> |
- Documentation |
- <a href="../register.html">Download</a> |
- <a href="../platforms.html">Platforms</a> |
- <a href="../refer.html">Projects</a> |
- <a href="../lists.html">Mailing Lists</a> |
- <a href="../history.html">Version History</a>
- </p>
- <!-- Generated by Doxygen 1.5.3 -->
- <div class="tabs">
- <ul>
- <li><a href="index.html"><span>Main Page</span></a></li>
- <li class="current"><a href="classes.html"><span>Classes</span></a></li>
- <li><a href="files.html"><span>Files</span></a></li>
- <li><a href="pages.html"><span>Related Pages</span></a></li>
- </ul>
- </div>
- <div class="tabs">
- <ul>
- <li><a href="classes.html"><span>Alphabetical List</span></a></li>
- <li><a href="annotated.html"><span>Class List</span></a></li>
- <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
- <li><a href="functions.html"><span>Class Members</span></a></li>
- </ul>
- </div>
- <h1>symlist< T > Class Template Reference</h1><!-- doxytag: class="symlist" -->List which can be reversed in <img class="formulaInl" alt="$\mathcal{O}(1)$" src="form_7.png">.
- <a href="#_details">More...</a>
- <p>
- <p>
- <a href="a00204.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
- <tr><td></td></tr>
- <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="678dc0ddb02994195a2359a361ee0ea6"></a><!-- doxytag: member="symlist::symlist" ref="678dc0ddb02994195a2359a361ee0ea6" args="()" -->
- </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#678dc0ddb02994195a2359a361ee0ea6">symlist</a> ()</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates empty <a class="el" href="a00027.html" title="List which can be reversed in .">symlist</a>. <br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#5c17d54592dac03b2c4d940a10153797">symlist</a> (const <a class="el" href="a00027.html">symlist</a>< T > &li)</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Makes the created list a copy of <code>li</code>. <a href="#5c17d54592dac03b2c4d940a10153797"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00027.html">symlist</a>< T > & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#ab326eda0f6d3a78f193a249342670bc">operator=</a> (const <a class="el" href="a00027.html">symlist</a>< T > &li)</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Assignes <code>li</code> to this list. <a href="#ab326eda0f6d3a78f193a249342670bc"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="45c3a0b7f0e996998037fb876effefd4"></a><!-- doxytag: member="symlist::~symlist" ref="45c3a0b7f0e996998037fb876effefd4" args="()" -->
- </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#45c3a0b7f0e996998037fb876effefd4">~symlist</a> ()</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#a09d7b1edcb879524dd200cecf7f5f72">empty</a> () const </td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Checks whether list is empty. <a href="#a09d7b1edcb879524dd200cecf7f5f72"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">T & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#fd4b55616fc20033d4a47684551866e8">front</a> ()</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">First element in list. <a href="#fd4b55616fc20033d4a47684551866e8"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">T & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#bc0570ff78ded9210ac26865519d36e3">back</a> ()</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Last element in list. <a href="#bc0570ff78ded9210ac26865519d36e3"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#525b8d44af5d771fe15916372515cce0">begin</a> ()</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Start iteration through elements of list. <a href="#525b8d44af5d771fe15916372515cce0"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#7283589fa01f79d722f8256d7a6a7883">end</a> ()</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">End of iteration through elements of list. <a href="#7283589fa01f79d722f8256d7a6a7883"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">const_iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#7c714327f88430cb7caeb1ecd67afd95">begin</a> () const </td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Start iteration through elements of list. <a href="#7c714327f88430cb7caeb1ecd67afd95"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">const_iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#e7435efb58eeacee68c0268332ed1b0e">end</a> () const </td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">End of iteration through elements of list. <a href="#e7435efb58eeacee68c0268332ed1b0e"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#e5250e0c0c2bedee285f72584ddce29d">rbegin</a> ()</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Start iteration through element of list in reverse order. <a href="#e5250e0c0c2bedee285f72584ddce29d"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#421fc482e62f257a9081e9e1c29d66a6">rend</a> ()</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">End of iteration through elements of list in reverse order. <a href="#421fc482e62f257a9081e9e1c29d66a6"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">const_iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#52e8efa766be554f4a5a788758c8b2e9">rbegin</a> () const </td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Start iteration through element of list in reverse order. <a href="#52e8efa766be554f4a5a788758c8b2e9"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">const_iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#a33168957d1316726012faa6b01fb9d2">rend</a> () const </td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">End of iteration through elements of list in reverse order. <a href="#a33168957d1316726012faa6b01fb9d2"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#8a54cb9a00643d32c91a3b303140abb9">insert</a> (iterator pos, const T &data)</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Inserts <code>data</code> before <code>pos</code> in list. <a href="#8a54cb9a00643d32c91a3b303140abb9"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#c2bd4d9db62ea6a3282662c62a97c3b2">splice</a> (iterator pos, iterator it)</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Inserts the element <code>it</code> points to before <code>pos</code> into this list. <a href="#c2bd4d9db62ea6a3282662c62a97c3b2"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#27889c85e97c1e8dec7a871987a12b29">splice</a> (iterator pos, iterator it, iterator end)</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Inserts the elements <code>[it,end)</code> refers to before <code>pos</code> into this list. <a href="#27889c85e97c1e8dec7a871987a12b29"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#75fc1fc7db7b20cc430ddb8577608904">erase</a> (iterator pos)</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes element at position <code>pos</code> from list. <a href="#75fc1fc7db7b20cc430ddb8577608904"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#53128defa9aedb016affcfa27bf201da">erase</a> (iterator it, iterator end)</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes the elements <code>[it, end)</code> from list. <a href="#53128defa9aedb016affcfa27bf201da"></a><br></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#e22b65101604c694e96974cc9579ab78">reverse</a> ()</td></tr>
- <tr><td class="mdescLeft"> </td><td class="mdescRight">Change the direction of list. <a href="#e22b65101604c694e96974cc9579ab78"></a><br></td></tr>
- </table>
- <hr><a name="_details"></a><h2>Detailed Description</h2>
- <h3>template<class T><br>
- class symlist< T ></h3>
- List which can be reversed in <img class="formulaInl" alt="$\mathcal{O}(1)$" src="form_7.png">.
- <p>
- The problem with the STL class list - as with most doubly linked lists -- is that isn't possible to turn it in constant time, because each entry in the list contains next and prev pointer and turning the list means to switch these two in <em>each</em> element in the list. Another point is the splice operation in STL lists, which is constant time, but for the same reason as mentioned above it is not possible to splice a list in reverse order into another in constant time. <p>
- The problems arise from the fact that each element "knows" what its next and previous elements are. An element in a <a class="el" href="a00027.html" title="List which can be reversed in .">symlist</a> only knows what its neighbors are, what is next and what previous depends on the direction of iteration. This of course imposes some overhead in iteration (one if-statement) but allows reversion and a splice in reversed order in constant time. <hr><h2>Constructor & Destructor Documentation</h2>
- <a class="anchor" name="5c17d54592dac03b2c4d940a10153797"></a><!-- doxytag: member="symlist::symlist" ref="5c17d54592dac03b2c4d940a10153797" args="(const symlist< T > &li)" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="a00027.html">symlist</a>< T >::<a class="el" href="a00027.html">symlist</a> </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="a00027.html">symlist</a>< T > & </td>
- <td class="paramname"> <em>li</em> </td>
- <td> ) </td>
- <td width="100%"><code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Makes the created list a copy of <code>li</code>.
- <p>
- <dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>li</em> </td><td><a class="el" href="a00027.html" title="List which can be reversed in .">symlist</a>. </td></tr>
- </table>
- </dl>
- </div>
- </div><p>
- <hr><h2>Member Function Documentation</h2>
- <a class="anchor" name="ab326eda0f6d3a78f193a249342670bc"></a><!-- doxytag: member="symlist::operator=" ref="ab326eda0f6d3a78f193a249342670bc" args="(const symlist< T > &li)" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="a00027.html">symlist</a>< T > & <a class="el" href="a00027.html">symlist</a>< T >::operator= </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="a00027.html">symlist</a>< T > & </td>
- <td class="paramname"> <em>li</em> </td>
- <td> ) </td>
- <td width="100%"><code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Assignes <code>li</code> to this list.
- <p>
- <dl class="note" compact><dt><b>Note:</b></dt><dd>All elements in this list will be deleted.</dd></dl>
- <dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>li</em> </td><td></td></tr>
- </table>
- </dl>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>this list </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="a09d7b1edcb879524dd200cecf7f5f72"></a><!-- doxytag: member="symlist::empty" ref="a09d7b1edcb879524dd200cecf7f5f72" args="() const " -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">bool <a class="el" href="a00027.html">symlist</a>< T >::empty </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"> const<code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Checks whether list is empty.
- <p>
- Takes constant time.<p>
- <dl compact><dt><b>Return values:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>true</em> </td><td>iff list is empty </td></tr>
- </table>
- </dl>
- </div>
- </div><p>
- <a class="anchor" name="fd4b55616fc20033d4a47684551866e8"></a><!-- doxytag: member="symlist::front" ref="fd4b55616fc20033d4a47684551866e8" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">T& <a class="el" href="a00027.html">symlist</a>< T >::front </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"><code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- First element in list.
- <p>
- Assumes that list ins't empty.<p>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>first element </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="bc0570ff78ded9210ac26865519d36e3"></a><!-- doxytag: member="symlist::back" ref="bc0570ff78ded9210ac26865519d36e3" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">T& <a class="el" href="a00027.html">symlist</a>< T >::back </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"><code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Last element in list.
- <p>
- Assumes that list ins't empty.<p>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>last element </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="525b8d44af5d771fe15916372515cce0"></a><!-- doxytag: member="symlist::begin" ref="525b8d44af5d771fe15916372515cce0" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">iterator <a class="el" href="a00027.html">symlist</a>< T >::begin </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"><code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Start iteration through elements of list.
- <p>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>start iterator </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="7283589fa01f79d722f8256d7a6a7883"></a><!-- doxytag: member="symlist::end" ref="7283589fa01f79d722f8256d7a6a7883" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">iterator <a class="el" href="a00027.html">symlist</a>< T >::end </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"><code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- End of iteration through elements of list.
- <p>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>end iterator </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="7c714327f88430cb7caeb1ecd67afd95"></a><!-- doxytag: member="symlist::begin" ref="7c714327f88430cb7caeb1ecd67afd95" args="() const " -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">const_iterator <a class="el" href="a00027.html">symlist</a>< T >::begin </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"> const<code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Start iteration through elements of list.
- <p>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>start iterator </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="e7435efb58eeacee68c0268332ed1b0e"></a><!-- doxytag: member="symlist::end" ref="e7435efb58eeacee68c0268332ed1b0e" args="() const " -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">const_iterator <a class="el" href="a00027.html">symlist</a>< T >::end </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"> const<code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- End of iteration through elements of list.
- <p>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>end iterator </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="e5250e0c0c2bedee285f72584ddce29d"></a><!-- doxytag: member="symlist::rbegin" ref="e5250e0c0c2bedee285f72584ddce29d" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">iterator <a class="el" href="a00027.html">symlist</a>< T >::rbegin </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"><code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Start iteration through element of list in reverse order.
- <p>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>start iterator </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="421fc482e62f257a9081e9e1c29d66a6"></a><!-- doxytag: member="symlist::rend" ref="421fc482e62f257a9081e9e1c29d66a6" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">iterator <a class="el" href="a00027.html">symlist</a>< T >::rend </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"><code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- End of iteration through elements of list in reverse order.
- <p>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>end iterator </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="52e8efa766be554f4a5a788758c8b2e9"></a><!-- doxytag: member="symlist::rbegin" ref="52e8efa766be554f4a5a788758c8b2e9" args="() const " -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">const_iterator <a class="el" href="a00027.html">symlist</a>< T >::rbegin </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"> const<code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Start iteration through element of list in reverse order.
- <p>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>start iterator </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="a33168957d1316726012faa6b01fb9d2"></a><!-- doxytag: member="symlist::rend" ref="a33168957d1316726012faa6b01fb9d2" args="() const " -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">const_iterator <a class="el" href="a00027.html">symlist</a>< T >::rend </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"> const<code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- End of iteration through elements of list in reverse order.
- <p>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>end iterator </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="8a54cb9a00643d32c91a3b303140abb9"></a><!-- doxytag: member="symlist::insert" ref="8a54cb9a00643d32c91a3b303140abb9" args="(iterator pos, const T &data)" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">iterator <a class="el" href="a00027.html">symlist</a>< T >::insert </td>
- <td>(</td>
- <td class="paramtype">iterator </td>
- <td class="paramname"> <em>pos</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const T & </td>
- <td class="paramname"> <em>data</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td width="100%"></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Inserts <code>data</code> before <code>pos</code> in list.
- <p>
- <dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>pos</em> </td><td>position </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>element to be inserted</td></tr>
- </table>
- </dl>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>position of insertion </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="c2bd4d9db62ea6a3282662c62a97c3b2"></a><!-- doxytag: member="symlist::splice" ref="c2bd4d9db62ea6a3282662c62a97c3b2" args="(iterator pos, iterator it)" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">void <a class="el" href="a00027.html">symlist</a>< T >::splice </td>
- <td>(</td>
- <td class="paramtype">iterator </td>
- <td class="paramname"> <em>pos</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">iterator </td>
- <td class="paramname"> <em>it</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td width="100%"></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Inserts the element <code>it</code> points to before <code>pos</code> into this list.
- <p>
- It is assumed that the element <code>it</code> refers lies in a different list. All iterators to elements in either of the two lists stay valid. Takes constant time.<p>
- <dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>pos</em> </td><td>position </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>it</em> </td><td>position of element to be inserted </td></tr>
- </table>
- </dl>
- </div>
- </div><p>
- <a class="anchor" name="27889c85e97c1e8dec7a871987a12b29"></a><!-- doxytag: member="symlist::splice" ref="27889c85e97c1e8dec7a871987a12b29" args="(iterator pos, iterator it, iterator end)" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">void <a class="el" href="a00027.html">symlist</a>< T >::splice </td>
- <td>(</td>
- <td class="paramtype">iterator </td>
- <td class="paramname"> <em>pos</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">iterator </td>
- <td class="paramname"> <em>it</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">iterator </td>
- <td class="paramname"> <em>end</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td width="100%"></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Inserts the elements <code>[it,end)</code> refers to before <code>pos</code> into this list.
- <p>
- It is assumed that <code>[it,end)</code> lies in a different list. All iterators to elements in either of the two lists stay valid. Takes constant time.<p>
- <dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>pos</em> </td><td>position </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>it</em> </td><td>position of first element to be inserted </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>end</em> </td><td>position of one-past the last element to be inserted </td></tr>
- </table>
- </dl>
- </div>
- </div><p>
- <a class="anchor" name="75fc1fc7db7b20cc430ddb8577608904"></a><!-- doxytag: member="symlist::erase" ref="75fc1fc7db7b20cc430ddb8577608904" args="(iterator pos)" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">iterator <a class="el" href="a00027.html">symlist</a>< T >::erase </td>
- <td>(</td>
- <td class="paramtype">iterator </td>
- <td class="paramname"> <em>pos</em> </td>
- <td> ) </td>
- <td width="100%"></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Deletes element at position <code>pos</code> from list.
- <p>
- <dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>pos</em> </td><td>position to be deleted</td></tr>
- </table>
- </dl>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>position of next element </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="53128defa9aedb016affcfa27bf201da"></a><!-- doxytag: member="symlist::erase" ref="53128defa9aedb016affcfa27bf201da" args="(iterator it, iterator end)" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">iterator <a class="el" href="a00027.html">symlist</a>< T >::erase </td>
- <td>(</td>
- <td class="paramtype">iterator </td>
- <td class="paramname"> <em>it</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">iterator </td>
- <td class="paramname"> <em>end</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td width="100%"></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Deletes the elements <code>[it, end)</code> from list.
- <p>
- <dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>it</em> </td><td>first position to be deleted </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>end</em> </td><td>one-past the last position to be deleted</td></tr>
- </table>
- </dl>
- <dl class="return" compact><dt><b>Returns:</b></dt><dd>position of next element. </dd></dl>
- </div>
- </div><p>
- <a class="anchor" name="e22b65101604c694e96974cc9579ab78"></a><!-- doxytag: member="symlist::reverse" ref="e22b65101604c694e96974cc9579ab78" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class T> </div>
- <table class="memname">
- <tr>
- <td class="memname">void <a class="el" href="a00027.html">symlist</a>< T >::reverse </td>
- <td>(</td>
- <td class="paramname"> </td>
- <td> ) </td>
- <td width="100%"><code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>
- Change the direction of list.
- <p>
- Takes constant time.
- </div>
- </div><p>
- <p class="links">
- <a href="http://www.uni-passau.de/">University of Passau</a>
- -
- <a href="http://www.fmi.uni-passau.de/">FMI</a>
- -
- <a href="http://www.fmi.uni-passau.de/fmi/lehrstuehle/brandenburg/">Theoretical
- Computer Science</a>
- </p>
- <div class="copyright">
- Design © 2002, 2003 <a href="mailto:raitner@fmi.uni-passau.de">Marcus Raitner</a>, University of Passau
- </div>
- </body>
- </html>
|