NameGroupIter Class Reference

Base classes for iterations and searches over all groups and all items in the name gallery. More...

#include <ngiter.h>

Inheritance diagram for NameGroupIter:

CreateDisplayScan::CreateItems CreateDisplayScan::FoldGroupIfEmpty List of all members.

Public Member Functions

virtual ~NameGroupIter ()
virtual SGNameGroupForEach ()
 Calls NameGroupIter::Do for every group in the name gallery.

Private Member Functions

virtual BOOL Do (SGNameGroup *pGroup)=0

Detailed Description

Base classes for iterations and searches over all groups and all items in the name gallery.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/7/99

Definition at line 327 of file ngiter.h.


Constructor & Destructor Documentation

virtual NameGroupIter::~NameGroupIter  )  [inline, virtual]
 

Definition at line 330 of file ngiter.h.

00330 { }


Member Function Documentation

virtual BOOL NameGroupIter::Do SGNameGroup pGroup  )  [private, pure virtual]
 

Implemented in CreateDisplayScan::CreateItems, and CreateDisplayScan::FoldGroupIfEmpty.

SGNameGroup * NameGroupIter::ForEach  )  [virtual]
 

Calls NameGroupIter::Do for every group in the name gallery.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/7/99
Returns:
Null if all Do() calls succeed, a pointer to the failing group if a Do() call fails.
See also:
NodeScan

Definition at line 553 of file ngiter.cpp.

00554 {
00555     PORTNOTETRACE("other","NameGroupIter::ForEach - do nothing");
00556 #ifndef EXCLUDE_FROM_XARALX
00557     SGNameGroup* pGroup = NameGallery::Instance()->GetFirstGroup();
00558     while (pGroup != 0)
00559     {
00560         SGNameGroup* pNextGroup = (SGNameGroup*) pGroup->GetNext();
00561         if (!Do(pGroup)) return pGroup;
00562         pGroup = pNextGroup;
00563     }
00564 #endif
00565     return NULL;
00566 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:56:25 2007 for Camelot by  doxygen 1.4.4