StyleIterator Class Reference

Returns entries in a visible list. More...

#include <styles.h>

List of all members.

Public Member Functions

StyleIteratoroperator++ ()
Styleoperator * ()
BOOL operator!= (const StyleIterator &Other)
 StyleIterator (StyleContainer &Container, StyleContainerItem *const pPosition)

Private Attributes

StyleContainerItemm_CurrentItem
StyleContainerm_Container


Detailed Description

Returns entries in a visible list.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/07/97
See Also: VisibleList::Begin(), End()

Definition at line 156 of file styles.h.


Constructor & Destructor Documentation

StyleIterator::StyleIterator StyleContainer Container,
StyleContainerItem *const   pPosition
 

Definition at line 308 of file styles.cpp.

00308                                                                                            :
00309     m_CurrentItem(pPosition),
00310     m_Container(Container)
00311 {
00312 }


Member Function Documentation

Style & StyleIterator::operator *  ) 
 

Definition at line 330 of file styles.cpp.

00331 {
00332     ASSERT(m_CurrentItem != NULL);
00333 
00334     return m_CurrentItem->GetStyle();
00335 }

BOOL StyleIterator::operator!= const StyleIterator Other  ) 
 

Definition at line 324 of file styles.cpp.

00325 {
00326     return m_CurrentItem != Other.m_CurrentItem;
00327 }

StyleIterator & StyleIterator::operator++  ) 
 

Definition at line 316 of file styles.cpp.

00317 {
00318     m_CurrentItem = (StyleContainerItem*)m_Container.GetNext(m_CurrentItem);
00319 
00320     return *this;
00321 }


Member Data Documentation

StyleContainer& StyleIterator::m_Container [private]
 

Definition at line 167 of file styles.h.

StyleContainerItem* StyleIterator::m_CurrentItem [private]
 

Definition at line 166 of file styles.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:01:34 2007 for Camelot by  doxygen 1.4.4