Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
XCAFDoc_AssemblyGraph::Iterator Class Reference

Graph iterator. More...

#include <XCAFDoc_AssemblyGraph.hxx>

Public Member Functions

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

Detailed Description

Graph iterator.

Constructor & Destructor Documentation

◆ Iterator()

XCAFDoc_AssemblyGraph::Iterator::Iterator ( const occ::handle< XCAFDoc_AssemblyGraph > & theGraph,
const int 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()

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

◆ More()

bool 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: