1 // File : SALOMEDSImpl_SComponentIterator.cxx
2 // Author : Sergey RUIN
6 #include "SALOMEDSImpl_SComponentIterator.hxx"
7 #include "SALOMEDSImpl_Study.hxx"
11 //============================================================================
12 /*! Function : constructor
15 //============================================================================
17 SALOMEDSImpl_SComponentIterator::SALOMEDSImpl_SComponentIterator(const Handle(TDocStd_Document)& theDocument)
19 _lab = theDocument->Main();
20 _it.Initialize (_lab);
23 //============================================================================
27 //============================================================================
28 void SALOMEDSImpl_SComponentIterator::Init()
30 _it.Initialize (_lab);
33 //============================================================================
37 //============================================================================
38 bool SALOMEDSImpl_SComponentIterator::More()
42 TDF_Label L = _it.Value();
43 if (SALOMEDSImpl_SComponent::IsA(L))
49 //============================================================================
52 //============================================================================
53 void SALOMEDSImpl_SComponentIterator::Next()
59 //============================================================================
63 //============================================================================
64 Handle(SALOMEDSImpl_SComponent) SALOMEDSImpl_SComponentIterator::Value()
66 return SALOMEDSImpl_Study::SComponent(_it.Value());