Forum archiveIssue archiveOther usage issues

Archived discussion

AIS_ListOfInteractive

Other usage issuesTue, 03/16/2004 - 11:091 reply

Browse this forum
QuestionAuthor

hi,

did somebody explains the use of an AIS_ListOfInteractive.
I put AIS_xxx with the "Append" method, but how can I do a loop from first to last element ?
Thanks for answers.
Best regards

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

You perform traversal of Open Cascade List objects with list iterators.
To traverse an AIS_ListOfInteractive object, use a AIS_ListIteratorOfListOfInteractive object :

AIS_ListOfInteractive list;
//fill the list ...
AIS_ListIteratorOfListOfInteractive it (list);
//iterate on list:
while (it.More ())
{
//do something with the current item : it.Value ()
it.Next ();
}