[692] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <title>OgreIteratorWrappers.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
| 4 | <link type="text/css" rel="stylesheet" href="style.css"> |
---|
| 5 | </head> |
---|
| 6 | |
---|
| 7 | <body> |
---|
| 8 | <!-- Generated by Doxygen 1.3.6 --> |
---|
| 9 | <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
---|
| 10 | <h1>OgreIteratorWrappers.h</h1><a href="OgreIteratorWrappers_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> |
---|
| 11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
| 12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
| 13 | 00004 <span class="comment"> (Object-oriented Graphics Rendering Engine)</span> |
---|
| 14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
| 15 | 00006 <span class="comment"></span> |
---|
| 16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
| 17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
| 18 | 00009 <span class="comment"></span> |
---|
| 19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
| 20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
| 21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
| 22 | 00013 <span class="comment">version.</span> |
---|
| 23 | 00014 <span class="comment"></span> |
---|
| 24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
| 25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
| 26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
| 27 | 00018 <span class="comment"></span> |
---|
| 28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
| 29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
| 30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
| 31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
| 32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
| 33 | 00024 <span class="comment">*/</span> |
---|
| 34 | 00025 <span class="preprocessor">#ifndef __IteratorWrappers_H__</span> |
---|
| 35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define __IteratorWrappers_H__</span> |
---|
| 36 | 00027 <span class="preprocessor"></span> |
---|
| 37 | 00028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
| 38 | 00029 |
---|
| 39 | 00030 <span class="keyword">namespace </span>Ogre { |
---|
| 40 | 00031 |
---|
| 41 | 00046 <span class="keyword">template</span> <<span class="keyword">class</span> T> |
---|
| 42 | <a name="l00047"></a><a class="code" href="classOgre_1_1VectorIterator.html">00047</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1VectorIterator.html">VectorIterator</a> |
---|
| 43 | 00048 { |
---|
| 44 | 00049 <span class="keyword">private</span>: |
---|
| 45 | <a name="l00050"></a><a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratorr0">00050</a> <span class="keyword">typename</span> T::iterator <a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratorr0">mCurrent</a>; |
---|
| 46 | <a name="l00051"></a><a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratorr1">00051</a> <span class="keyword">typename</span> T::iterator mEnd; |
---|
| 47 | <a name="l00053"></a><a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratord0">00053</a> <a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratord0">VectorIterator</a>() {}; |
---|
| 48 | 00054 <span class="keyword">public</span>: |
---|
| 49 | <a name="l00055"></a><a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratorw0">00055</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> T::value_type <a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratorw0">ValueType</a>; |
---|
| 50 | 00056 |
---|
| 51 | <a name="l00061"></a><a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratora0">00061</a> <a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratord0">VectorIterator</a>(<span class="keyword">typename</span> T::iterator start, <span class="keyword">typename</span> T::iterator end) |
---|
| 52 | 00062 : <a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratorr0">mCurrent</a>(start), mEnd(end) |
---|
| 53 | 00063 { |
---|
| 54 | 00064 } |
---|
| 55 | 00065 |
---|
| 56 | <a name="l00067"></a><a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratora1">00067</a> <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratora1">hasMoreElements</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
| 57 | 00068 <span class="keyword"> </span>{ |
---|
| 58 | 00069 <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratorr0">mCurrent</a> != mEnd; |
---|
| 59 | 00070 } |
---|
| 60 | 00071 |
---|
| 61 | <a name="l00073"></a><a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratora2">00073</a> <span class="keyword">typename</span> T::value_type <a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratora2">getNext</a>(<span class="keywordtype">void</span>) |
---|
| 62 | 00074 { |
---|
| 63 | 00075 <span class="keywordflow">return</span> *<a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratorr0">mCurrent</a>++; |
---|
| 64 | 00076 } |
---|
| 65 | <a name="l00078"></a><a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratora3">00078</a> <span class="keyword">typename</span> T::value_type <a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratora3">peekNext</a>(<span class="keywordtype">void</span>) |
---|
| 66 | 00079 { |
---|
| 67 | 00080 <span class="keywordflow">return</span> *<a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratorr0">mCurrent</a>; |
---|
| 68 | 00081 } |
---|
| 69 | <a name="l00083"></a><a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratora4">00083</a> <span class="keyword">typename</span> T::pointer <a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratora4">peekNextPtr</a>(<span class="keywordtype">void</span>) |
---|
| 70 | 00084 { |
---|
| 71 | 00085 <span class="keywordflow">return</span> &(*mCurrent); |
---|
| 72 | 00086 } |
---|
| 73 | <a name="l00088"></a><a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratora5">00088</a> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratora5">moveNext</a>(<span class="keywordtype">void</span>) |
---|
| 74 | 00089 { |
---|
| 75 | 00090 ++<a class="code" href="classOgre_1_1VectorIterator.html#Ogre_1_1VectorIteratorr0">mCurrent</a>; |
---|
| 76 | 00091 } |
---|
| 77 | 00092 |
---|
| 78 | 00093 |
---|
| 79 | 00094 |
---|
| 80 | 00095 }; |
---|
| 81 | 00096 |
---|
| 82 | 00111 <span class="keyword">template</span> <<span class="keyword">class</span> T> |
---|
| 83 | <a name="l00112"></a><a class="code" href="classOgre_1_1MapIterator.html">00112</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1MapIterator.html">MapIterator</a> |
---|
| 84 | 00113 { |
---|
| 85 | 00114 <span class="keyword">private</span>: |
---|
| 86 | <a name="l00115"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratorr0">00115</a> <span class="keyword">typename</span> T::iterator mCurrent; |
---|
| 87 | <a name="l00116"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratorr1">00116</a> <span class="keyword">typename</span> T::iterator mEnd; |
---|
| 88 | <a name="l00118"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratord0">00118</a> <a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratord0">MapIterator</a>() {}; |
---|
| 89 | 00119 <span class="keyword">public</span>: |
---|
| 90 | <a name="l00120"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratorw0">00120</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> T::mapped_type <a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratorw0">MappedType</a>; |
---|
| 91 | <a name="l00121"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratorw1">00121</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> T::key_type <a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratorw1">KeyType</a>; |
---|
| 92 | 00122 |
---|
| 93 | <a name="l00127"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora0">00127</a> <a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratord0">MapIterator</a>(<span class="keyword">typename</span> T::iterator start, <span class="keyword">typename</span> T::iterator end) |
---|
| 94 | 00128 : mCurrent(start), mEnd(end) |
---|
| 95 | 00129 { |
---|
| 96 | 00130 } |
---|
| 97 | 00131 |
---|
| 98 | <a name="l00133"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora1">00133</a> <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora1">hasMoreElements</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
| 99 | 00134 <span class="keyword"> </span>{ |
---|
| 100 | 00135 <span class="keywordflow">return</span> mCurrent != mEnd; |
---|
| 101 | 00136 } |
---|
| 102 | 00137 |
---|
| 103 | <a name="l00139"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora2">00139</a> <span class="keyword">typename</span> T::mapped_type <a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora2">getNext</a>(<span class="keywordtype">void</span>) |
---|
| 104 | 00140 { |
---|
| 105 | 00141 <span class="keywordflow">return</span> (mCurrent++)->second; |
---|
| 106 | 00142 } |
---|
| 107 | <a name="l00144"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora3">00144</a> <span class="keyword">typename</span> T::mapped_type <a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora3">peekNextValue</a>(<span class="keywordtype">void</span>) |
---|
| 108 | 00145 { |
---|
| 109 | 00146 <span class="keywordflow">return</span> mCurrent->second; |
---|
| 110 | 00147 } |
---|
| 111 | <a name="l00149"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora4">00149</a> <span class="keyword">typename</span> T::key_type <a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora4">peekNextKey</a>(<span class="keywordtype">void</span>) |
---|
| 112 | 00150 { |
---|
| 113 | 00151 <span class="keywordflow">return</span> mCurrent->first; |
---|
| 114 | 00152 } |
---|
| 115 | <a name="l00154"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora5">00154</a> <a class="code" href="classOgre_1_1MapIterator.html">MapIterator<T></a> & <a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora5">operator=</a>( <a class="code" href="classOgre_1_1MapIterator.html">MapIterator<T></a> &rhs ) |
---|
| 116 | 00155 { |
---|
| 117 | 00156 mCurrent = rhs.<a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratorr0">mCurrent</a>; |
---|
| 118 | 00157 mEnd = rhs.<a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratorr1">mEnd</a>; |
---|
| 119 | 00158 <span class="keywordflow">return</span> *<span class="keyword">this</span>; |
---|
| 120 | 00159 } |
---|
| 121 | <a name="l00162"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora6">00162</a> <span class="keyword">typename</span> T::pointer <a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora6">peekNextValuePtr</a>(<span class="keywordtype">void</span>) |
---|
| 122 | 00163 { |
---|
| 123 | 00164 <span class="keywordflow">return</span> &(mCurrent->second); |
---|
| 124 | 00165 } |
---|
| 125 | <a name="l00167"></a><a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora7">00167</a> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratora7">moveNext</a>(<span class="keywordtype">void</span>) |
---|
| 126 | 00168 { |
---|
| 127 | 00169 ++mCurrent; |
---|
| 128 | 00170 } |
---|
| 129 | 00171 |
---|
| 130 | 00172 |
---|
| 131 | 00173 |
---|
| 132 | 00174 }; |
---|
| 133 | 00189 <span class="keyword">template</span> <<span class="keyword">class</span> T> |
---|
| 134 | <a name="l00190"></a><a class="code" href="classOgre_1_1ConstVectorIterator.html">00190</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1ConstVectorIterator.html">ConstVectorIterator</a> |
---|
| 135 | 00191 { |
---|
| 136 | 00192 <span class="keyword">private</span>: |
---|
| 137 | <a name="l00193"></a><a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratorr0">00193</a> <span class="keyword">mutable</span> <span class="keyword">typename</span> T::const_iterator mCurrent; |
---|
| 138 | <a name="l00194"></a><a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratorr1">00194</a> <span class="keyword">typename</span> T::const_iterator mEnd; |
---|
| 139 | <a name="l00196"></a><a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratord0">00196</a> <a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratord0">ConstVectorIterator</a>() {}; |
---|
| 140 | 00197 <span class="keyword">public</span>: |
---|
| 141 | <a name="l00198"></a><a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratorw0">00198</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> T::value_type ValueType; |
---|
| 142 | 00199 |
---|
| 143 | <a name="l00204"></a><a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratora0">00204</a> <a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratord0">ConstVectorIterator</a>(<span class="keyword">typename</span> T::const_iterator start, <span class="keyword">typename</span> T::const_iterator end) |
---|
| 144 | 00205 : mCurrent(start), mEnd(end) |
---|
| 145 | 00206 { |
---|
| 146 | 00207 } |
---|
| 147 | 00208 |
---|
| 148 | <a name="l00210"></a><a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratora1">00210</a> <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratora1">hasMoreElements</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
| 149 | 00211 <span class="keyword"> </span>{ |
---|
| 150 | 00212 <span class="keywordflow">return</span> mCurrent != mEnd; |
---|
| 151 | 00213 } |
---|
| 152 | 00214 |
---|
| 153 | <a name="l00216"></a><a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratora2">00216</a> <span class="keyword">typename</span> T::value_type <a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratora2">getNext</a>(<span class="keywordtype">void</span>) |
---|
| 154 | 00217 { |
---|
| 155 | 00218 <span class="keywordflow">return</span> *mCurrent++; |
---|
| 156 | 00219 } |
---|
| 157 | <a name="l00221"></a><a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratora3">00221</a> <span class="keyword">typename</span> T::value_type <a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratora3">peekNext</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
| 158 | 00222 <span class="keyword"> </span>{ |
---|
| 159 | 00223 <span class="keywordflow">return</span> *mCurrent; |
---|
| 160 | 00224 } |
---|
| 161 | <a name="l00226"></a><a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratora4">00226</a> <span class="keyword">typename</span> T::const_pointer <a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratora4">peekNextPtr</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
| 162 | 00227 <span class="keyword"> </span>{ |
---|
| 163 | 00228 <span class="keywordflow">return</span> &(*mCurrent); |
---|
| 164 | 00229 } |
---|
| 165 | <a name="l00231"></a><a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratora5">00231</a> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1ConstVectorIterator.html#Ogre_1_1ConstVectorIteratora5">moveNext</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
| 166 | 00232 <span class="keyword"> </span>{ |
---|
| 167 | 00233 ++mCurrent; |
---|
| 168 | 00234 } |
---|
| 169 | 00235 |
---|
| 170 | 00236 |
---|
| 171 | 00237 |
---|
| 172 | 00238 }; |
---|
| 173 | 00239 |
---|
| 174 | 00254 <span class="keyword">template</span> <<span class="keyword">class</span> T> |
---|
| 175 | <a name="l00255"></a><a class="code" href="classOgre_1_1ConstMapIterator.html">00255</a> <span class="keyword">class </span><a class="code" href="classOgre_1_1ConstMapIterator.html">ConstMapIterator</a> |
---|
| 176 | 00256 { |
---|
| 177 | 00257 <span class="keyword">private</span>: |
---|
| 178 | <a name="l00258"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratorr0">00258</a> <span class="keyword">mutable</span> <span class="keyword">typename</span> T::const_iterator mCurrent; |
---|
| 179 | <a name="l00259"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratorr1">00259</a> <span class="keyword">typename</span> T::const_iterator mEnd; |
---|
| 180 | <a name="l00261"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratord0">00261</a> <a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratord0">ConstMapIterator</a>() {}; |
---|
| 181 | 00262 <span class="keyword">public</span>: |
---|
| 182 | <a name="l00263"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratorw0">00263</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> T::mapped_type MappedType; |
---|
| 183 | <a name="l00264"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratorw1">00264</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> T::key_type KeyType; |
---|
| 184 | 00265 |
---|
| 185 | <a name="l00270"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora0">00270</a> <a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratord0">ConstMapIterator</a>(<span class="keyword">typename</span> T::const_iterator start, <span class="keyword">typename</span> T::const_iterator end) |
---|
| 186 | 00271 : mCurrent(start), mEnd(end) |
---|
| 187 | 00272 { |
---|
| 188 | 00273 } |
---|
| 189 | 00274 |
---|
| 190 | <a name="l00276"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora1">00276</a> <span class="keywordtype">bool</span> <a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora1">hasMoreElements</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
| 191 | 00277 <span class="keyword"> </span>{ |
---|
| 192 | 00278 <span class="keywordflow">return</span> mCurrent != mEnd; |
---|
| 193 | 00279 } |
---|
| 194 | 00280 |
---|
| 195 | <a name="l00282"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora2">00282</a> <span class="keyword">typename</span> T::mapped_type <a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora2">getNext</a>(<span class="keywordtype">void</span>) |
---|
| 196 | 00283 { |
---|
| 197 | 00284 <span class="keywordflow">return</span> (mCurrent++)->second; |
---|
| 198 | 00285 } |
---|
| 199 | <a name="l00287"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora3">00287</a> <span class="keyword">typename</span> T::mapped_type <a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora3">peekNextValue</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
| 200 | 00288 <span class="keyword"> </span>{ |
---|
| 201 | 00289 <span class="keywordflow">return</span> mCurrent->second; |
---|
| 202 | 00290 } |
---|
| 203 | <a name="l00292"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora4">00292</a> <span class="keyword">typename</span> T::key_type <a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora4">peekNextKey</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
| 204 | 00293 <span class="keyword"> </span>{ |
---|
| 205 | 00294 <span class="keywordflow">return</span> mCurrent->first; |
---|
| 206 | 00295 } |
---|
| 207 | <a name="l00297"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora5">00297</a> <a class="code" href="classOgre_1_1MapIterator.html">MapIterator<T></a> & <a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora5">operator=</a>( <a class="code" href="classOgre_1_1MapIterator.html">MapIterator<T></a> &rhs ) |
---|
| 208 | 00298 { |
---|
| 209 | 00299 mCurrent = rhs.<a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratorr0">mCurrent</a>; |
---|
| 210 | 00300 mEnd = rhs.<a class="code" href="classOgre_1_1MapIterator.html#Ogre_1_1MapIteratorr1">mEnd</a>; |
---|
| 211 | 00301 <span class="keywordflow">return</span> *<span class="keyword">this</span>; |
---|
| 212 | 00302 } |
---|
| 213 | <a name="l00305"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora6">00305</a> <span class="keyword">typename</span> T::const_pointer <a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora6">peekNextValuePtr</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
| 214 | 00306 <span class="keyword"> </span>{ |
---|
| 215 | 00307 <span class="keywordflow">return</span> &(mCurrent->second); |
---|
| 216 | 00308 } |
---|
| 217 | <a name="l00310"></a><a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora7">00310</a> <span class="keywordtype">void</span> <a class="code" href="classOgre_1_1ConstMapIterator.html#Ogre_1_1ConstMapIteratora7">moveNext</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span> |
---|
| 218 | 00311 <span class="keyword"> </span>{ |
---|
| 219 | 00312 ++mCurrent; |
---|
| 220 | 00313 } |
---|
| 221 | 00314 |
---|
| 222 | 00315 |
---|
| 223 | 00316 |
---|
| 224 | 00317 }; |
---|
| 225 | 00318 } |
---|
| 226 | 00319 <span class="preprocessor">#endif</span> |
---|
| 227 | </pre></div><hr> |
---|
| 228 | <p> |
---|
| 229 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
| 230 | <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/> |
---|
| 231 | This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/> |
---|
| 232 | <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
---|
| 233 | <Work rdf:about=""> |
---|
| 234 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
| 235 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
| 236 | </Work> |
---|
| 237 | <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> --> |
---|
| 238 | |
---|
| 239 | Last modified Sun Mar 12 14:37:43 2006 |
---|
| 240 | </p> |
---|
| 241 | </body> |
---|
| 242 | </html> |
---|