return theRoot.FindChild(theKind);
}
-HYDROData_Iterator::HYDROData_Iterator(Handle(HYDROData_Document) theDoc, ObjectKind theKind)
- : myIter(GetLabelByKind(theDoc->LabelOfObjects(), theKind),
- TDataStd_Name::GetID(), theKind == KIND_UNKNOWN) // iterate all sub-objects for unknown kind
+HYDROData_Iterator::HYDROData_Iterator( const Handle(HYDROData_Document)& theDoc,
+ const ObjectKind theKind )
+: myIter( GetLabelByKind( theDoc->LabelOfObjects(), theKind ),
+ TDataStd_Name::GetID(), theKind == KIND_UNKNOWN ) // iterate all sub-objects for unknown kind
{
}
* \param theDoc document to iterate
* \param theKind kind of the iterated object, can be UNKNOWN: to iterate all objects
*/
- HYDRODATA_EXPORT HYDROData_Iterator(Handle(HYDROData_Document) theDoc,
- ObjectKind theKind = KIND_UNKNOWN);
+ HYDRODATA_EXPORT HYDROData_Iterator( const Handle(HYDROData_Document)& theDoc,
+ const ObjectKind theKind = KIND_UNKNOWN);
/**
* Iterates to the next object