Q3GroupIterator


Abstract

Class to simplify iterating through a Quesa group.

Discussion

Example:


Q3GroupIterator		iter( aGroup, kQ3ShapeTypeGeometry );
CQ3ObjectRef	theItem;
while ( (theItem = iter.NextObject()).isvalid() )
{
// do something with theItem...
}


Member Functions


NextObject


Get a reference to the next member of the group.
public:

CQ3ObjectRef NextObject (void);
function result
A reference to a member object, or NULL if done.

Q3GroupIterator


Constructor.
public:

Q3GroupIterator (     TQ3GroupObject inGroup,     TQ3ObjectType inType = kQ3ObjectTypeShared );
Parameter Descriptions
inGroup
A group object.
inType
A type of object to iterate over. Optional, defaults to kQ3ObjectTypeShared.

© 1999-2008 Quesa Developers (Last Updated 5/10/2008)