creativity  v1.3.0
Agent-based model of creativity and piracy
Public Member Functions | Friends | List of all members
creativity::data::CSVParser::iterator Class Referencefinal

Iterator class that allows iterating through the file. More...

#include <creativity/data/CSVParser.hpp>

Public Member Functions

reference operator* ()
 Dereferences the iterator, returning the current CSVParser row.
 
pointer operator-> ()
 Dereferences the iterator, returning the current CSVParser row pointer.
 
iteratoroperator++ ()
 Increments the iterator, reading the next row of the file. More...
 
bool operator== (const iterator &other)
 Return true if the given object is a reference to the current object, or if the current object is at the end of file and the given object is a special end iterator for the same CSVParser object.
 
bool operator!= (const iterator &other)
 Returns the negation of the == operator. More...
 

Friends

class CSVParser
 

Detailed Description

Iterator class that allows iterating through the file.

The iterator satisfies the requirements of a ForwardIterator.

Member Function Documentation

§ operator!=()

bool creativity::data::CSVParser::iterator::operator!= ( const iterator other)
inline

Returns the negation of the == operator.

§ operator++()

iterator& creativity::data::CSVParser::iterator::operator++ ( )
inline

Increments the iterator, reading the next row of the file.

Previous iterators are invalidated.

Inheritance diagram for creativity::data::CSVParser::iterator:
[legend]
Collaboration diagram for creativity::data::CSVParser::iterator:
[legend]

The documentation for this class was generated from the following file: