API Reference > OdDg Classes > OdDgElementIterator Class
OdDgElementIterator Class
OdDgElementIterator
Syntax
C++
class OdDgElementIterator : public OdRxObject;

DgElementIterator.h

This class defines bidirectional Iterator objects that traverse elements contained in complex elements. 

This class cannot be directly instantiated, but must be instantiated with the iterator creation methods of the class to be iterated through. 

Corresponding C++ library: TG_Db 

 

 
Name 
Description 
 
This is OdDgElementIterator, a member of class OdDgElementIterator. 
 
Name 
Description 
 
done 
Returns true if and only if the traversal by this Iterator element is complete. 
 
item 
Returns the Element ID of the entity currently referenced by this Iterator element. 
 
This is ODRX_DECLARE_MEMBERS, a member of class OdDgElementIterator. 
 
seek 
Positions this Iterator element at the specified record.  
 
Sets this Iterator element to reference the entity that it would normally return first. 
 
step 
Steps this Iterator element.
 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.