App::CellAddress Struct Reference

#include <Range.h>

Public Types

enum class  Cell {
  Absolute = 1 , ShowRow = 2 , ShowColumn = 4 , ShowRowColumn = ShowRow | ShowColumn ,
  ShowFull = Absolute | ShowRow | ShowColumn
}
 

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 operator> (const CellAddress &other) const
 
bool parseAbsoluteAddress (const char *txt)
 
int row () const
 
void setCol (int c, bool clip=false)
 
void setRow (int r, bool clip=false)
 
std::string toString (Cell=Cell::ShowFull) 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
 

Member Enumeration Documentation

◆ Cell

enum class App::CellAddress::Cell
strong
Enumerator
Absolute 
ShowRow 
ShowColumn 
ShowRowColumn 
ShowFull 

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)

◆ CellAddress() [3/3]

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

Member Function Documentation

◆ asInt()

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

◆ col()

◆ isAbsoluteCol()

bool App::CellAddress::isAbsoluteCol ( ) const

◆ isAbsoluteRow()

bool App::CellAddress::isAbsoluteRow ( ) const

◆ isValid()

◆ operator!=()

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

References asInt().

◆ operator<()

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

References asInt().

◆ operator==()

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

References asInt().

◆ operator>()

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

References asInt().

◆ parseAbsoluteAddress()

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

◆ row()

◆ setCol()

void App::CellAddress::setCol ( int  c,
bool  clip = false 
)

◆ setRow()

◆ 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: