Overview | Group | Tree | Graph | Index | Concepts |
LineIterator
is a nested class of the class
IloCsvReader
.
It is to be used only with csv reader objects built to read a unique-table
data file.
IloCsvReader::LineIterator
allows you to step through all
the lines of the csv data file (except blank lines and commented lines) on
which the csv reader was created.
Constructor and Destructor Summary | |
---|---|
public | LineIterator() |
public | LineIterator(IloCsvReader) |
Method Summary | |
---|---|
public IloBool | ok() |
public IloCsvLine | operator *() |
public LineIterator & | operator++() |
Constructor and Destructor Detail |
---|
This constructor creates an empty LineIterator
object. This
object must be assigned before it can be used.
This constructor creates an iterator to traverse all the lines in the
csv data file on which the csv reader csv
was created.
The iterator does not traverse blank lines and commented lines.
Method Detail |
---|
This member function returns IloTrue
if the current position
of the iterator is a valid one.
It returns IloFalse
if the iterator reaches the end of the
table.
This operator returns the current instance of IloCsvLine
(representing the current line in the csv file); the one to which the
invoking iterator points.
This left-increment operator shifts the current position of the iterator
to the next instance of IloCsvLine
representing the next
line in the file.