#include <Range.h>

Public Member Functions

 CellAddress (const char *address)
 
 CellAddress (const std::string &address)
 
 CellAddress (int row=-1, int col=-1, bool absRow=false, bool absCol=false)
 
int col () const
 
bool isAbsoluteCol () const
 
bool isAbsoluteRow () const
 
bool isValid ()
 
bool operator!= (const CellAddress &other) const
 
bool operator< (const CellAddress &other) const
 
bool operator== (const CellAddress &other) const
 
bool parseAbsoluteAddress (const char *txt)
 
int row () const
 
void setCol (int c)
 
void setRow (int r)
 
std::string toString (bool noAbsolute=false) const
 Convert given cell address into its string representation. More...
 

Static Public Attributes

static const int MAX_COLUMNS = 26 * 26 + 26
 
static const int MAX_ROWS = 16384
 

Protected Member Functions

unsigned int asInt () const
 

Constructor & Destructor Documentation

◆ CellAddress() [1/3]

App::CellAddress::CellAddress ( int  row = -1,
int  col = -1,
bool  absRow = false,
bool  absCol = false 
)

◆ CellAddress() [2/3]

App::CellAddress::CellAddress ( const char *  address)

References asInt().

◆ CellAddress() [3/3]

App::CellAddress::CellAddress ( const std::string &  address)

Member Function Documentation

◆ asInt()

unsigned int App::CellAddress::asInt ( ) const
protected

Referenced by CellAddress().

◆ col()

◆ isAbsoluteCol()

bool App::CellAddress::isAbsoluteCol ( ) const

◆ isAbsoluteRow()

bool App::CellAddress::isAbsoluteRow ( ) const

◆ isValid()

bool App::CellAddress::isValid ( )

◆ operator!=()

bool App::CellAddress::operator!= ( const CellAddress other) const

◆ operator<()

bool App::CellAddress::operator< ( const CellAddress other) const

◆ operator==()

bool App::CellAddress::operator== ( const CellAddress other) const

◆ parseAbsoluteAddress()

bool App::CellAddress::parseAbsoluteAddress ( const char *  txt)

◆ row()

◆ setCol()

void App::CellAddress::setCol ( int  c)

◆ setRow()

void App::CellAddress::setRow ( int  r)

◆ toString()

Member Data Documentation

◆ MAX_COLUMNS

const int App::CellAddress::MAX_COLUMNS = 26 * 26 + 26
static

◆ MAX_ROWS

const int App::CellAddress::MAX_ROWS = 16384
static

Referenced by App::validRow().


The documentation for this struct was generated from the following files:
  • src/App/Range.h
  • src/App/Range.cpp