#include <ogdf/fileformats/DinoLineBuffer.h>
Public Member Functions | |
| DinoLineBufferPosition () | |
| DinoLineBufferPosition (int lineNumber, int lineUpdateCount, int linePosition) | |
| DinoLineBufferPosition (const DinoLineBufferPosition &position) | |
| int | getLineNumber () const |
| int | getLineUpdateCount () const |
| int | getLinePosition () const |
| void | set (int lineNumber, int lineUpdateCount, int linePosition) |
| void | incrementPosition () |
| bool | operator!= (const DinoLineBufferPosition &position) const |
| const DinoLineBufferPosition & | operator= (const DinoLineBufferPosition &position) |
Private Attributes | |
| int | m_lineNumber |
| int | m_lineUpdateCount |
| int | m_linePosition |
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 76 of file DinoLineBuffer.h.
| ogdf::DinoLineBufferPosition::DinoLineBufferPosition | ( | ) | [inline] |
Default Constructor
Definition at line 94 of file DinoLineBuffer.h.
| ogdf::DinoLineBufferPosition::DinoLineBufferPosition | ( | int | lineNumber, | |
| int | lineUpdateCount, | |||
| int | linePosition | |||
| ) |
Constructor
| ogdf::DinoLineBufferPosition::DinoLineBufferPosition | ( | const DinoLineBufferPosition & | position | ) |
Copy Constructor
| int ogdf::DinoLineBufferPosition::getLineNumber | ( | ) | const [inline] |
Get the line number
Definition at line 109 of file DinoLineBuffer.h.
| int ogdf::DinoLineBufferPosition::getLinePosition | ( | ) | const [inline] |
Get the position in the line
Definition at line 119 of file DinoLineBuffer.h.
| int ogdf::DinoLineBufferPosition::getLineUpdateCount | ( | ) | const [inline] |
Get the update count of the line
Definition at line 114 of file DinoLineBuffer.h.
| void ogdf::DinoLineBufferPosition::incrementPosition | ( | ) |
Increments the position by 1
| bool ogdf::DinoLineBufferPosition::operator!= | ( | const DinoLineBufferPosition & | position | ) | const |
Test if inequal
| const DinoLineBufferPosition& ogdf::DinoLineBufferPosition::operator= | ( | const DinoLineBufferPosition & | position | ) |
Assignment
| void ogdf::DinoLineBufferPosition::set | ( | int | lineNumber, | |
| int | lineUpdateCount, | |||
| int | linePosition | |||
| ) |
Set all values
int ogdf::DinoLineBufferPosition::m_lineNumber [private] |
Contains the lineNumber; Range [0 .. c_maxNoOfLines-1]
Definition at line 81 of file DinoLineBuffer.h.
int ogdf::DinoLineBufferPosition::m_linePosition [private] |
Contains the position in line m_lineNumber; Range [0 .. c_maxLineLength-1]
Definition at line 89 of file DinoLineBuffer.h.
int ogdf::DinoLineBufferPosition::m_lineUpdateCount [private] |
Contains the number of times line m_lineNumber has been overwritten by new data; Range [0 .. ]
Definition at line 86 of file DinoLineBuffer.h.