#include <TDF_ChildIterator.hxx>
Public Member Functions | |
void * | operator new (size_t, void *anAddress) |
void * | operator new (size_t size) |
void | operator delete (void *anAddress) |
Standard_EXPORT | TDF_ChildIterator () |
Creates an empty iterator object to explore the children of a label. . | |
Standard_EXPORT | TDF_ChildIterator (const TDF_Label &aLabel, const Standard_Boolean allLevels=Standard_False) |
Constructs the iterator object defined by the label aLabel. Iterates on the children of the given label. If <alllevels> option is set to true, it explores not only the first, but all the sub label levels. . | |
Standard_EXPORT void | Initialize (const TDF_Label &aLabel, const Standard_Boolean allLevels=Standard_False) |
Initializes the iteration on the children of the given label. If <alllevels> option is set to true, it explores not only the first, but all the sub label levels. If allLevels is false, only the first level of child labels is explored. In the example below, the label is iterated using Initialize, More and Next and its child labels dumped using TDF_Tool::Entry. Example void DumpChildren(const <br> TDF_Label& aLabel) { TDF_ChildIterator it; TCollection_AsciiString es; for (it.Initialize(aLabel,Standard_True); it.More(); it.Next()){ TDF_Tool::Entry(it.Value(),es); cout << as.ToCString() << endl; } } . | |
Standard_Boolean | More () const |
Returns true if a current label is found in the iteration process. . | |
Standard_EXPORT void | Next () |
Move the current iteration to the next Item. . | |
Standard_EXPORT void | NextBrother () |
Moves this iteration to the next brother label. A brother label is one with the same father as an initial label. Use this function when the non-empty constructor or Initialize has allLevels set to true. The result is that the iteration does not explore the children of the current label. This method is interesting only with "allLevels" behavior, because it avoids to explore the current label children. . | |
const TDF_Label | Value () const |
Returns the current label; or, if there is none, a null label. . | |
Private Attributes | |
TDF_LabelNodePtr | myNode |
Standard_Integer | myFirstLevel |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|