#include <uielem.h>
Public Member Functions | |
VisibleListIterator & | operator++ () |
Moves on the iterator to the next entry in the VisibleList. | |
VisibleListIterator & | operator-- () |
Moves the iterator to the previous entry in the VisibleList. | |
VisibleListItem & | operator * () |
Allows us to get at the VisibleListItem pointed to by this iterator. | |
BOOL | operator!= (const VisibleListIterator &Other) |
Enables us to determine when an iteration has finished, a la while (Iterator != Container.End()). | |
VisibleListIterator (List &Container, VisibleListItemPtr *const pPointer, INT32 *IndexesOfItemsToReturn=NULL) | |
This constructor provides two variants of a VisibleListIterator: 1. Returns all entries in the given list. 2. Returns only those items whose indexes are contained in the given INT32 array. (These should probably be two separate classes). | |
~VisibleListIterator () | |
Provides a destructor to delete any array given in the constructor. | |
VisibleListIterator (const VisibleListIterator &Other) | |
Warns that these have not been implemented (but a destructor has). | |
const VisibleListIterator & | operator= (const VisibleListIterator &Other) |
Private Attributes | |
VisibleListItemPtr * | m_VisibleListItemPtr |
List & | m_Container |
INT32 * | m_IndexesOfItemsToReturn |
UINT32 | m_IndexInIndex |
Definition at line 176 of file uielem.h.
|
This constructor provides two variants of a VisibleListIterator: 1. Returns all entries in the given list. 2. Returns only those items whose indexes are contained in the given INT32 array. (These should probably be two separate classes).
Definition at line 175 of file uielem.cpp. 00176 : 00177 m_VisibleListItemPtr(pPointer), 00178 m_Container(Container), 00179 m_IndexesOfItemsToReturn(IndexesOfItemsToReturn), 00180 m_IndexInIndex(0) 00181 { 00182 if (IndexesOfItemsToReturn != NULL) 00183 { 00184 m_VisibleListItemPtr = (VisibleListItemPtr*)m_Container.FindItem(LISTPOS(m_IndexesOfItemsToReturn[0])); 00185 } 00186 }
|
|
Provides a destructor to delete any array given in the constructor.
Definition at line 199 of file uielem.cpp. 00200 { 00201 if (m_IndexesOfItemsToReturn != NULL) 00202 { 00203 delete [] m_IndexesOfItemsToReturn; 00204 } 00205 }
|
|
Warns that these have not been implemented (but a destructor has).
Definition at line 220 of file uielem.cpp. 00220 : 00221 m_Container(Other.m_Container) 00222 { 00223 ERROR3("VisibleListIterator - copy constructor unimplemented\n"); 00224 }
|
|
Allows us to get at the VisibleListItem pointed to by this iterator.
Definition at line 339 of file uielem.cpp. 00340 { 00341 ERROR3IF(m_VisibleListItemPtr == NULL, "NULL Member"); 00342 00343 return m_VisibleListItemPtr->GetEntry(); 00344 }
|
|
Enables us to determine when an iteration has finished, a la while (Iterator != Container.End()).
Definition at line 319 of file uielem.cpp. 00320 { 00321 return m_VisibleListItemPtr != Other.m_VisibleListItemPtr; 00322 }
|
|
Moves on the iterator to the next entry in the VisibleList.
Definition at line 247 of file uielem.cpp. 00248 { 00249 if (m_IndexesOfItemsToReturn == NULL) 00250 { 00251 m_VisibleListItemPtr = (VisibleListItemPtr*)m_Container.GetNext(m_VisibleListItemPtr); 00252 } 00253 else 00254 { 00255 ++m_IndexInIndex; 00256 if (m_IndexesOfItemsToReturn[m_IndexInIndex] == -1) 00257 { 00258 m_VisibleListItemPtr = NULL; 00259 } 00260 else 00261 { 00262 m_VisibleListItemPtr = (VisibleListItemPtr*)m_Container.FindItem(LISTPOS(m_IndexesOfItemsToReturn[m_IndexInIndex])); 00263 } 00264 } 00265 00266 return *this; 00267 }
|
|
Moves the iterator to the previous entry in the VisibleList.
Definition at line 282 of file uielem.cpp. 00283 { 00284 if (m_IndexesOfItemsToReturn == NULL) 00285 { 00286 m_VisibleListItemPtr = (VisibleListItemPtr*)m_Container.GetPrev(m_VisibleListItemPtr); 00287 } 00288 else 00289 { 00290 if (m_IndexInIndex == 0) 00291 { 00292 m_VisibleListItemPtr = NULL; 00293 } 00294 else 00295 { 00296 --m_IndexInIndex; 00297 m_VisibleListItemPtr = (VisibleListItemPtr*)m_Container.FindItem(LISTPOS(m_IndexesOfItemsToReturn[m_IndexInIndex])); 00298 } 00299 } 00300 00301 return *this; 00302 }
|
|
Definition at line 227 of file uielem.cpp. 00228 { 00229 ERROR3("VisibleListIterator - assignment operator not implemented\n"); 00230 00231 return *this; 00232 }
|
|
|
|
|
|
|
|
|