StanfordCPPLib
Classes | Public Member Functions | List of all members
GridLocationRange Class Reference

#include "gridlocation.h"

Public Member Functions

 GridLocationRange(int startRow=0, int startCol=0, int endRow=0, int endCol=0, bool isRowMajor=true)
 
 GridLocationRange(const GridLocation &startLoc, const GridLocation &endLoc, bool isRowMajor=true)
 
GridLocationRangeIterator begin() const
 
bool contains(const GridLocation &loc) const
 
GridLocationRangeIterator end() const
 
int endCol() const
 
const GridLocationendLocation() const
 
int endRow() const
 
bool isEmpty() const
 
bool isRowMajor() const
 
int startCol() const
 
const GridLocationstartLocation() const
 
int startRow() const
 
string toString() const
 

Constructor & Destructor Documentation

◆ GridLocationRange() [1/2]

GridLocationRange ( int  startRow = 0,
int  startCol = 0,
int  endRow = 0,
int  endCol = 0,
bool  isRowMajor = true 
)

◆ GridLocationRange() [2/2]

GridLocationRange ( const GridLocation startLoc,
const GridLocation endLoc,
bool  isRowMajor = true 
)

Member Function Documentation

◆ begin()

GridLocationRange::GridLocationRangeIterator begin ( ) const

◆ contains()

bool contains ( const GridLocation loc) const

◆ end()

GridLocationRange::GridLocationRangeIterator end ( ) const

◆ endCol()

int endCol ( ) const

◆ endLocation()

const GridLocation & endLocation ( ) const

◆ endRow()

int endRow ( ) const

◆ isEmpty()

bool isEmpty ( ) const

◆ isRowMajor()

bool isRowMajor ( ) const

◆ startCol()

int startCol ( ) const

◆ startLocation()

const GridLocation & startLocation ( ) const

◆ startRow()

int startRow ( ) const

◆ toString()

string toString ( ) const