1 // File : SALOMEDSImpl_ChildIterator.cxx
2 // Author : Sergey RUIN
6 #include "SALOMEDSImpl_ChildIterator.hxx"
7 #include "SALOMEDSImpl_Study.hxx"
9 IMPLEMENT_STANDARD_HANDLE( SALOMEDSImpl_ChildIterator, MMgt_TShared )
10 IMPLEMENT_STANDARD_RTTIEXT( SALOMEDSImpl_ChildIterator, MMgt_TShared )
12 SALOMEDSImpl_ChildIterator::SALOMEDSImpl_ChildIterator(const Handle(SALOMEDSImpl_SObject)& theSO)
15 _it = TDF_ChildIterator(_so->GetLabel());
18 SALOMEDSImpl_ChildIterator::SALOMEDSImpl_ChildIterator(const TDF_Label& theLabel)
20 _so = SALOMEDSImpl_Study::SObject(theLabel);
21 _it = TDF_ChildIterator(theLabel);
24 void SALOMEDSImpl_ChildIterator::Init()
26 _it.Initialize(_so->GetLabel(), Standard_False);
29 void SALOMEDSImpl_ChildIterator::Init(const TDF_Label& theLabel)
31 _it.Initialize(theLabel, Standard_False);
34 void SALOMEDSImpl_ChildIterator::InitEx(bool theAllLevels)
36 _it.Initialize(_so->GetLabel(), theAllLevels);
39 void SALOMEDSImpl_ChildIterator::InitEx(const TDF_Label& theLabel, bool theAllLevels)
41 _it.Initialize(theLabel, theAllLevels);
44 bool SALOMEDSImpl_ChildIterator::More()
49 void SALOMEDSImpl_ChildIterator::Next()
54 Handle(SALOMEDSImpl_SObject) SALOMEDSImpl_ChildIterator::Value()
56 return SALOMEDSImpl_Study::SObject(_it.Value());
59 TDF_Label SALOMEDSImpl_ChildIterator::Label()