This class is used to iterate over multiple files, keeping track of the current file and current line number at all times.
More...
#include <MultipleFileIterator.hpp>
Inherits iterator< std::bidirectional_iterator_tag, char >.
|
typedef std::vector< std::pair< size_t, boost::spirit::classic::file_position > > | PosToFileMap |
| a map from a absolute iterator position to a file description.
|
|
This class is used to iterate over multiple files, keeping track of the current file and current line number at all times.
◆ MultipleFileIterator()
Constructor.
- Parameters
-
data | [in] vector of char data |
filedata | [in] data position to file info map |
◆ get_position()
boost::spirit::classic::file_position get_position |
( |
| ) |
const |
|
inline |
returns the position in the file that the iterator is currently at
- Returns
- the position of the iterator in the current file
◆ getDirectory()
std::string getDirectory |
( |
| ) |
|
|
inline |
returns the directory of the file that the iterator is currently iterating through
- Returns
- the current directory
◆ getFile()
returns the file that the iterator is currently iterating
- Returns
- filename of current file
◆ operator!=()
Tests whether the positions of two iterators are unequal.
- Parameters
-
other | [in] VectorIterator to compare with |
- Returns
- true if unequal
◆ operator==()
Tests whether the positions of two iterators are equal.
- Parameters
-
other | [in] VectorIterator to compare with |
- Returns
- true if equal
The documentation for this class was generated from the following file: