iterator

virtual class iterator #(type T =  int)

virtual Defines a uniform way of accessing collection elements sequentially.

Summary
iteratorvirtual Defines a uniform way of accessing collection elements sequentially.
Functions
has_nextpure virtual Returns 1 if the iteration has more elements.
nextpure virtual Returns the next element in the iteration.
removepure virtual Removes the last element returned by the iterator.

Functions

has_next

pure virtual function bit has_next()

pure virtual Returns 1 if the iteration has more elements.

next

pure virtual function T next()

pure virtual Returns the next element in the iteration.

remove

pure virtual function void remove()

pure virtual Removes the last element returned by the iterator.

virtual class iterator #(type T =  int)
virtual Defines a uniform way of accessing collection elements sequentially.
pure virtual function bit has_next()
pure virtual Returns 1 if the iteration has more elements.
pure virtual function T next()
pure virtual Returns the next element in the iteration.
pure virtual function void remove()
pure virtual Removes the last element returned by the iterator.