CCellRange Class Reference

#include <CellRange.h>

List of all members.

Public Member Functions

 CCellRange (int nMinRow=-1, int nMinCol=-1, int nMaxRow=-1, int nMaxCol=-1)
void Set (int nMinRow=-1, int nMinCol=-1, int nMaxRow=-1, int nMaxCol=-1)
int IsValid () const
int InRange (int row, int col) const
int InRange (const CCellID &cellID) const
int Count ()
CCellID GetTopLeft () const
CCellRange Intersect (const CCellRange &rhs) const
int GetMinRow () const
void SetMinRow (int minRow)
int GetMinCol () const
void SetMinCol (int minCol)
int GetMaxRow () const
void SetMaxRow (int maxRow)
int GetMaxCol () const
void SetMaxCol (int maxCol)
int GetRowSpan () const
int GetColSpan () const
void operator= (const CCellRange &rhs)
int operator== (const CCellRange &rhs)
int operator!= (const CCellRange &rhs)

Protected Attributes

int m_nMinRow
int m_nMinCol
int m_nMaxRow
int m_nMaxCol

Detailed Description

Definition at line 52 of file CellRange.h.


Constructor & Destructor Documentation

CCellRange::CCellRange ( int  nMinRow = -1,
int  nMinCol = -1,
int  nMaxRow = -1,
int  nMaxCol = -1 
) [inline]

Definition at line 56 of file CellRange.h.


Member Function Documentation

int CCellRange::Count (  )  [inline]

Definition at line 66 of file CellRange.h.

int CCellRange::GetColSpan (  )  const [inline]

Definition at line 84 of file CellRange.h.

int CCellRange::GetMaxCol (  )  const [inline]

Definition at line 80 of file CellRange.h.

int CCellRange::GetMaxRow (  )  const [inline]

Definition at line 77 of file CellRange.h.

int CCellRange::GetMinCol (  )  const [inline]

Definition at line 74 of file CellRange.h.

int CCellRange::GetMinRow (  )  const [inline]

Definition at line 71 of file CellRange.h.

int CCellRange::GetRowSpan (  )  const [inline]

Definition at line 83 of file CellRange.h.

CCellID CCellRange::GetTopLeft (  )  const [inline]

Definition at line 137 of file CellRange.h.

int CCellRange::InRange ( const CCellID cellID  )  const [inline]

Definition at line 132 of file CellRange.h.

int CCellRange::InRange ( int  row,
int  col 
) const [inline]

Definition at line 127 of file CellRange.h.

CCellRange CCellRange::Intersect ( const CCellRange rhs  )  const [inline]

Definition at line 142 of file CellRange.h.

int CCellRange::IsValid (  )  const [inline]

Definition at line 121 of file CellRange.h.

int CCellRange::operator!= ( const CCellRange rhs  )  [inline]

Definition at line 116 of file CellRange.h.

void CCellRange::operator= ( const CCellRange rhs  )  [inline]

Definition at line 105 of file CellRange.h.

int CCellRange::operator== ( const CCellRange rhs  )  [inline]

Definition at line 110 of file CellRange.h.

void CCellRange::Set ( int  nMinRow = -1,
int  nMinCol = -1,
int  nMaxRow = -1,
int  nMaxCol = -1 
) [inline]

Definition at line 97 of file CellRange.h.

void CCellRange::SetMaxCol ( int  maxCol  )  [inline]

Definition at line 81 of file CellRange.h.

void CCellRange::SetMaxRow ( int  maxRow  )  [inline]

Definition at line 78 of file CellRange.h.

void CCellRange::SetMinCol ( int  minCol  )  [inline]

Definition at line 75 of file CellRange.h.

void CCellRange::SetMinRow ( int  minRow  )  [inline]

Definition at line 72 of file CellRange.h.


Member Data Documentation

int CCellRange::m_nMaxCol [protected]

Definition at line 94 of file CellRange.h.

int CCellRange::m_nMaxRow [protected]

Definition at line 93 of file CellRange.h.

int CCellRange::m_nMinCol [protected]

Definition at line 92 of file CellRange.h.

int CCellRange::m_nMinRow [protected]

Definition at line 91 of file CellRange.h.


The documentation for this class was generated from the following file:
Generated on Thu May 30 15:47:01 2013 for GME by  doxygen 1.6.3