This class characterizes uniquely a position in the line buffer. More...
#include <ogdf/fileformats/LineBuffer.h>
Public Member Functions | |
| LineBufferPosition () | |
| Default Constructor. More... | |
| LineBufferPosition (int lineNumber, int lineUpdateCount, int linePosition) | |
| Constructor. More... | |
| LineBufferPosition (const LineBufferPosition &position) | |
| Copy Constructor. More... | |
| int | getLineNumber () const |
| Get the line number. More... | |
| int | getLinePosition () const |
| Get the position in the line. More... | |
| int | getLineUpdateCount () const |
| Get the update count of the line. More... | |
| void | incrementPosition () |
| Increments the position by 1. More... | |
| bool | operator!= (const LineBufferPosition &position) const |
| Test if inequal. More... | |
| LineBufferPosition & | operator= (const LineBufferPosition &position) |
| Assignment. More... | |
| void | set (int lineNumber, int lineUpdateCount, int linePosition) |
| Set all values. More... | |
Private Attributes | |
| int | m_lineNumber |
| Contains the lineNumber. More... | |
| int | m_linePosition |
| Contains the position in line m_lineNumber. More... | |
| int | m_lineUpdateCount |
| Contains the number of times line m_lineNumber has been overwritten by new data; Range [0 . More... | |
This class characterizes uniquely a position in the line buffer.
Note that the element m_lineUpdateCount allows to check if a position is obsolete, i.e. its content has already been overwritten.
Definition at line 48 of file LineBuffer.h.
|
inline |
Default Constructor.
Definition at line 66 of file LineBuffer.h.
| ogdf::LineBufferPosition::LineBufferPosition | ( | int | lineNumber, |
| int | lineUpdateCount, | ||
| int | linePosition | ||
| ) |
Constructor.
| ogdf::LineBufferPosition::LineBufferPosition | ( | const LineBufferPosition & | position | ) |
Copy Constructor.
|
inline |
Get the line number.
Definition at line 82 of file LineBuffer.h.
|
inline |
Get the position in the line.
Definition at line 92 of file LineBuffer.h.
|
inline |
Get the update count of the line.
Definition at line 87 of file LineBuffer.h.
| void ogdf::LineBufferPosition::incrementPosition | ( | ) |
Increments the position by 1.
| bool ogdf::LineBufferPosition::operator!= | ( | const LineBufferPosition & | position | ) | const |
Test if inequal.
| LineBufferPosition& ogdf::LineBufferPosition::operator= | ( | const LineBufferPosition & | position | ) |
Assignment.
| void ogdf::LineBufferPosition::set | ( | int | lineNumber, |
| int | lineUpdateCount, | ||
| int | linePosition | ||
| ) |
Set all values.
|
private |
Contains the lineNumber.
Definition at line 53 of file LineBuffer.h.
|
private |
Contains the position in line m_lineNumber.
Definition at line 61 of file LineBuffer.h.
|
private |
Contains the number of times line m_lineNumber has been overwritten by new data; Range [0 .
. ]
Definition at line 58 of file LineBuffer.h.