88 return m_lineUpdateCount;
93 return m_linePosition;
97 void set(
int lineNumber,
int lineUpdateCount,
int linePosition);
100 void incrementPosition();
150 return m_currentPosition;
164 return m_inputFileLineCounter;
173 char moveToNextCharacter();
200 string &targetString);
int getInputFileLineCounter() const
Returns line number of the most recently read line of the input file.
ArrayBuffer< string > m_linBuf
Pointer to the line buffer.
static void skipWhitespace(B &in)
int m_inputFileLineCounter
Contains the current line number of the input file;.
This class maintains the input file and provides a convenient interface to handle it...
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Declaration and implementation of ArrayBuffer class.
int getLineNumber() const
Get the line number.
LineBufferPosition()
Default Constructor.
int getLineUpdateCount() const
Get the update count of the line.
int m_lineUpdateCount
Contains the number of times line m_lineNumber has been overwritten by new data; Range [0 ...
int m_lineNumber
Contains the lineNumber.
ArrayBuffer< int > m_lineUpdateCountArray
Contains for each line of the line buffer its update count.
istream * m_pIs
Handle to the input file.
int m_linePosition
Contains the position in line m_lineNumber.
LineBufferPosition m_currentPosition
The current position in m_linBuf.
int getLinePosition() const
Get the position in the line.
int m_numberOfMostRecentlyReadLine
The line which has been read from the file most recently; this does not have to be equal to m_current...
This class characterizes uniquely a position in the line buffer.
INDEX size() const
Returns number of elements in the buffer.
Basic declarations, included by all source files.
LineBufferPosition getCurrentPosition() const
Returns the current position (as a copy)
The namespace for all OGDF objects.
char getCurrentCharacter() const
Returns the character which is currently pointed to.
bool operator!=(const Tuple2< E1, E2 > &t1, const Tuple2< E1, E2 > &t2)
Inequality operator for 2-tuples.