📄 todoiterator.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopiapim/todoaccess.cpp:151 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>TodoIterator Class</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font> <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="137"> <tr> <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td> <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td> </tr> </table></td></tr></table><h1 align=center>TodoIterator Class Reference<br><small>[<a href="qpepim.html">qpepim module</a>]</small></h1><p>The TodoIterator class provides iterators of TodoAccess.<a href="#details">More...</a><p><tt>#include <<a href="todoaccess-h.html">todoaccess.h</a>></tt><p><a href="todoiterator-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#TodoIterator-3"><b>TodoIterator</b></a> ( const TodoAccess & taskaccess )</div></li><li><div class=fn><a href="#TodoIterator-4"><b>TodoIterator</b></a> ( const TodoIterator & it )</div></li><li><div class=fn>TodoIterator & <a href="#operator-eq"><b>operator=</b></a> ( const TodoIterator & other )</div></li><li><div class=fn><a href="#~TodoIterator"><b>~TodoIterator</b></a> ()</div></li><li><div class=fn>bool <a href="#atFirst"><b>atFirst</b></a> () const</div></li><li><div class=fn>bool <a href="#atLast"><b>atLast</b></a> () const</div></li><li><div class=fn>const PimTask * <a href="#toFirst"><b>toFirst</b></a> ()</div></li><li><div class=fn>const PimTask * <a href="#toLast"><b>toLast</b></a> ()</div></li><li><div class=fn>const PimTask * <a href="#operator++"><b>operator++</b></a> ()</div></li><li><div class=fn>const PimTask * <a href="#operator*"><b>operator*</b></a> () const</div></li><li><div class=fn>const PimTask * <a href="#current"><b>current</b></a> () const</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2> The TodoIterator class provides iterators of <a href="todoaccess.html">TodoAccess</a>.<p> The only way to traverse the data of an TodoAccess is with anTodoIterator.<p>See also <a href="qpepim.html">Qtopia PIM Library</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="TodoIterator-3"></a>TodoIterator::TodoIterator ( const <a href="todoaccess.html">TodoAccess</a> & taskaccess )</h3>Constructs a new TodoIterator pointing to the start of the data in <em>taskaccess</em>.<h3 class=fn><a name="TodoIterator-4"></a>TodoIterator::TodoIterator ( const <a href="todoiterator.html">TodoIterator</a> & it )</h3>Constructs a copy of the iterator <em>it</em>.<h3 class=fn><a name="~TodoIterator"></a>TodoIterator::~TodoIterator ()</h3>Destroys the iterator<h3 class=fn>bool <a name="atFirst"></a>TodoIterator::atFirst () const</h3>Returns TRUE if the iterator is at the first item of the data.Otherwise returns FALSE.<h3 class=fn>bool <a name="atLast"></a>TodoIterator::atLast () const</h3>Returns TRUE if the iterator is at the last item of the data.Otherwise returns FALSE.<h3 class=fn>const <a href="pimtask.html">PimTask</a> * <a name="current"></a>TodoIterator::current () const</h3>If the iterator is at a valid <a href="pimtask.html">PimTask</a> returns a const pointer tothe current PimTask. Otherwise returns 0.<h3 class=fn>const <a href="pimtask.html">PimTask</a> * <a name="operator*"></a>TodoIterator::operator* () const</h3>If the iterator is at a valid <a href="pimtask.html">PimTask</a> returns a const pointer tothe current PimTask. Otherwise returns 0.<h3 class=fn>const <a href="pimtask.html">PimTask</a> * <a name="operator++"></a>TodoIterator::operator++ ()</h3>Sets the iterator to the next item of the data.If the iterator is moved pass the end of the list returns 0.Otherwise returns a const pointer to the current <a href="pimtask.html">PimTask</a>.<h3 class=fn><a href="todoiterator.html">TodoIterator</a> & <a name="operator-eq"></a>TodoIterator::operator= ( const <a href="todoiterator.html">TodoIterator</a> & other )</h3>Sets the iterator to be a copy of <em>other</em>.<h3 class=fn>const <a href="pimtask.html">PimTask</a> * <a name="toFirst"></a>TodoIterator::toFirst ()</h3>Sets the iterator to the first item of the data.If a <a href="pimtask.html">PimTask</a> exists in the data will return a const pointer to thePimTask. Otherwise returns 0.<h3 class=fn>const <a href="pimtask.html">PimTask</a> * <a name="toLast"></a>TodoIterator::toLast ()</h3>Sets the iterator to the last item of the data.If a <a href="pimtask.html">PimTask</a> exists in the data will return a const pointer to thePimTask. Otherwise returns 0.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright © 1995-2004<a href="http://www.trolltech.com/">Trolltech</a>, all rights reserved.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright © 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -