Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::LineBufferPosition Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LineBufferPosition() [1/3]

ogdf::LineBufferPosition::LineBufferPosition ( )
inline

Default Constructor.

Definition at line 66 of file LineBuffer.h.

◆ LineBufferPosition() [2/3]

ogdf::LineBufferPosition::LineBufferPosition ( int  lineNumber,
int  lineUpdateCount,
int  linePosition 
)

Constructor.

◆ LineBufferPosition() [3/3]

ogdf::LineBufferPosition::LineBufferPosition ( const LineBufferPosition &  position)

Copy Constructor.

Member Function Documentation

◆ getLineNumber()

int ogdf::LineBufferPosition::getLineNumber ( ) const
inline

Get the line number.

Definition at line 82 of file LineBuffer.h.

◆ getLinePosition()

int ogdf::LineBufferPosition::getLinePosition ( ) const
inline

Get the position in the line.

Definition at line 92 of file LineBuffer.h.

◆ getLineUpdateCount()

int ogdf::LineBufferPosition::getLineUpdateCount ( ) const
inline

Get the update count of the line.

Definition at line 87 of file LineBuffer.h.

◆ incrementPosition()

void ogdf::LineBufferPosition::incrementPosition ( )

Increments the position by 1.

◆ operator!=()

bool ogdf::LineBufferPosition::operator!= ( const LineBufferPosition &  position) const

Test if inequal.

◆ operator=()

LineBufferPosition& ogdf::LineBufferPosition::operator= ( const LineBufferPosition &  position)

Assignment.

◆ set()

void ogdf::LineBufferPosition::set ( int  lineNumber,
int  lineUpdateCount,
int  linePosition 
)

Set all values.

Member Data Documentation

◆ m_lineNumber

int ogdf::LineBufferPosition::m_lineNumber
private

Contains the lineNumber.

Definition at line 53 of file LineBuffer.h.

◆ m_linePosition

int ogdf::LineBufferPosition::m_linePosition
private

Contains the position in line m_lineNumber.

Definition at line 61 of file LineBuffer.h.

◆ m_lineUpdateCount

int ogdf::LineBufferPosition::m_lineUpdateCount
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.


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