TridSketchListItr Class Reference

#include <TridSketchList.h>

List of all members.

Public Member Functions

 TridSketchListItr (TridSketchList &list)
 ~TridSketchListItr ()
TridSketchFirst ()
TridSketchNext ()
void Reset ()

Private Attributes

std::map< unsigned int,
TridSketch * >::iterator 
fIt
std::map< unsigned int,
TridSketch * > * 
fMap

Detailed Description

Definition at line 61 of file TridSketchList.h.


Constructor & Destructor Documentation

TridSketchListItr::TridSketchListItr ( TridSketchList list  )  [inline]

Definition at line 64 of file TridSketchList.h.

References fIt, TridSketchList::fMap, and fMap.

00064 {fMap = &(list.fMap); fIt=fMap->begin(); };

TridSketchListItr::~TridSketchListItr (  )  [inline]

Definition at line 65 of file TridSketchList.h.

00065 {};


Member Function Documentation

TridSketch * TridSketchListItr::First ( void   ) 

Definition at line 83 of file TridSketchList.cxx.

References fIt, fMap, and Next().

00084 {
00085   fIt = fMap->begin();
00086   return Next();
00087 }

TridSketch * TridSketchListItr::Next (  ) 

Definition at line 89 of file TridSketchList.cxx.

References fIt, and fMap.

Referenced by TridGLFrame::DrawObjects(), TridFlatGLFrame::DrawObjects(), First(), TridUVPage::ModifySketches(), TridPageSlice::ModifySketches(), TridPageDetector::ModifySketches(), TridPage::ModifySketches(), and TridPage::SetupFrame().

00090 {
00091   TridSketch* sk = NULL;
00092   if(fIt == fMap->end()) return NULL; 
00093   sk = fIt->second;
00094   fIt++; 
00095   return sk;
00096 }

void TridSketchListItr::Reset ( void   )  [inline]

Definition at line 69 of file TridSketchList.h.

References fIt, and fMap.

Referenced by TridGLFrame::DrawObjects(), and TridFlatGLFrame::DrawObjects().

00069 {fIt=fMap->begin();};


Member Data Documentation

std::map<unsigned int,TridSketch*>::iterator TridSketchListItr::fIt [private]

Definition at line 69 of file TridSketchList.h.

Referenced by First(), Next(), Reset(), and TridSketchListItr().

std::map<unsigned int,TridSketch*>* TridSketchListItr::fMap [private]

Definition at line 73 of file TridSketchList.h.

Referenced by First(), Next(), Reset(), and TridSketchListItr().


The documentation for this class was generated from the following files:

Generated on 19 Jan 2018 for loon by  doxygen 1.6.1