Open CASCADE Technology 7.8.0
Public Member Functions
XCAFDoc_AssemblyGraph::Iterator Class Reference

Graph iterator. More...

#include <XCAFDoc_AssemblyGraph.hxx>

Public Member Functions

 Iterator (const Handle< XCAFDoc_AssemblyGraph > &theGraph, const Standard_Integer theNode=1)
 Accepting the assembly graph and starting node to iterate. Iteration starts from the specified node.
 
Standard_Boolean More () const
 Checks if there are more graph nodes to iterate.
 
Standard_Integer Current () const
 
void Next ()
 Moves iterator to the next position.
 

Detailed Description

Graph iterator.

Constructor & Destructor Documentation

◆ Iterator()

XCAFDoc_AssemblyGraph::Iterator::Iterator ( const Handle< XCAFDoc_AssemblyGraph > &  theGraph,
const Standard_Integer  theNode = 1 
)

Accepting the assembly graph and starting node to iterate. Iteration starts from the specified node.

Parameters
[in]theGraph- assembly graph to iterate.
[in]theNode- graph node ID.

Member Function Documentation

◆ Current()

Standard_Integer XCAFDoc_AssemblyGraph::Iterator::Current ( ) const
inline
Returns
1-based ID of the current node.

◆ More()

Standard_Boolean XCAFDoc_AssemblyGraph::Iterator::More ( ) const
inline

Checks if there are more graph nodes to iterate.

Returns
true/false.

◆ Next()

void XCAFDoc_AssemblyGraph::Iterator::Next ( )
inline

Moves iterator to the next position.


The documentation for this class was generated from the following file: