Quark  0.1
DiffRange Class Reference

TODO: rewrite comment A range of elements in a DiffSequence. More...

#include <DiffRange.h++>

Public Member Functions

 DiffRange ()
 
 DiffRange (int startIndex, int length)
 
 ~DiffRange ()
 
void setRange (int startIndex, int length)
 
int startIndex () const
 
int endIndex () const
 
void setLength (int length)
 
int length () const
 
bool isEmpty () const
 
bool isValid () const
 
bool containsIndex (int index) const
 

Detailed Description

TODO: rewrite comment A range of elements in a DiffSequence.

All indices are 1-based. A range has a start index and a length. If the length is 0, the range is "empty" and represents an insertion or deletion point.

Constructor & Destructor Documentation

◆ DiffRange() [1/2]

DiffRange ( )
inline

◆ DiffRange() [2/2]

DiffRange ( int  startIndex,
int  length 
)
inline

◆ ~DiffRange()

~DiffRange ( )
inline

Member Function Documentation

◆ containsIndex()

bool containsIndex ( int  index) const
inline

◆ endIndex()

int endIndex ( ) const
inline

◆ isEmpty()

bool isEmpty ( ) const
inline

◆ isValid()

bool isValid ( ) const
inline

◆ length()

int length ( ) const
inline

◆ setLength()

void setLength ( int  length)
inline

◆ setRange()

void setRange ( int  startIndex,
int  length 
)
inline

◆ startIndex()

int startIndex ( ) const
inline

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