#include <ngiter.h>
Inheritance diagram for RangeSource:
Public Member Functions | |
RangeSource (Range *pRange=0) | |
Constructs a RangeSource object. | |
Protected Member Functions | |
virtual Node * | GetFirst () |
virtual Node * | GetNext (Node *) |
Protected Attributes | |
Range * | m_pRange |
Definition at line 226 of file ngiter.h.
|
Constructs a RangeSource object.
Definition at line 358 of file ngiter.cpp. 00359 : m_pRange(pRange) 00360 { 00361 // Empty. 00362 }
|
|
Implements NodeScan::Source. Reimplemented in SelectObjSource. Definition at line 375 of file ngiter.cpp. 00376 { 00377 ERROR3IF(m_pRange == 0, "RangeSource::GetFirst: no range"); 00378 00379 Node* pNode = m_pRange->FindFirst(); 00380 if (pNode != 0 && !pNode->IsSetCandidate()) pNode = GetNext(pNode); 00381 return pNode; 00382 }
|
|
Implements NodeScan::Source. Definition at line 395 of file ngiter.cpp. 00396 { 00397 for (pNode = m_pRange->FindNext(pNode); 00398 pNode != 0 && !pNode->IsSetCandidate(); 00399 pNode = m_pRange->FindNext(pNode)) 00400 /* empty */ ; 00401 00402 return pNode; 00403 }
|
|
|