|
||
class TRangeRef;
Identifies a range of cells by start and end cell references. The range is inclusive of both the start and end cells.
Defined in TRangeRef
:
Contains(const TCellRef &)const
Tests whether the specified cell is contained within the range.ExternalizeL(RWriteStream &)const
Externalises an object of this class to a write stream.InternalizeL(RReadStream &)
Internalises an object of this class from a read stream.NoCells()const
Gets the number of cells represented by the range.NoCols()const
Gets the number of columns represented by the range.NoRows()const
Gets the number of rows represented by the range.SetRange(TInt,TInt,TInt,TInt)
Sets the cell range to the specified start row and column, and end row and colum...SetRange(const TCellRef &,const TCellRef &)
Sets the cell range to the specified cells.TIter
TRangeRef()
Default constructor.TRangeRef(TInt,TInt,TInt,TInt)
Constructor taking a start row and start column number, and an end row and end c...TRangeRef(const TCellRef &,const TCellRef &)
Constructor taking a start and end cell.iFrom
The start cell. iTo
The end cell. operator!=(const TRangeRef &)const
Compares this cell range with the specified cell range for inequality.operator==(const TRangeRef &)const
Compares this cell range with the specified cell range for equality.TCellRef
Identifies a cell by row and column number. inline TRangeRef();
Default constructor.
The object's start cell and end cell are undefined.
inline TRangeRef(const TCellRef &aFrom, const TCellRef &aTo);
Constructor taking a start and end cell.
|
inline TRangeRef(TInt aFromRow, TInt aFromCol, TInt aToRow, TInt aToCol);
Constructor taking a start row and start column number, and an end row and end column number.
|
IMPORT_C TBool operator==(const TRangeRef &aRange) const;
Compares this cell range with the specified cell range for equality.
|
|
inline TBool operator!=(const TRangeRef &aRange) const;
Compares this cell range with the specified cell range for inequality.
|
|
inline void SetRange(const TCellRef &aFrom, const TCellRef &aTo);
Sets the cell range to the specified cells.
|
inline void SetRange(TInt aFromRow, TInt aFromCol, TInt aToRow, TInt aToCol);
Sets the cell range to the specified start row and column, and end row and column.
|
inline TInt NoRows() const;
Gets the number of rows represented by the range.
|
inline TInt NoCols() const;
Gets the number of columns represented by the range.
|
IMPORT_C TInt NoCells() const;
Gets the number of cells represented by the range.
|
IMPORT_C TBool Contains(const TCellRef &aCell) const;
Tests whether the specified cell is contained within the range.
A range includes its outer perimeter.
|
|
IMPORT_C void InternalizeL(RReadStream &aStream);
Internalises an object of this class from a read stream.
The presence of this function means that the standard templated operator>>(RReadStream &,T &)
can be used to internalise objects of this class.
Note that the function has assignment semantics. It replaces the old value of the object with a new value read from the read stream.
|
IMPORT_C void ExternalizeL(RWriteStream &aStream) const;
Externalises an object of this class to a write stream.
The presence of this function means that the standard templated operator<<(RWriteStream &,const T &)
can be used to externalise objects of this class.
|
class TIter;
Defined in TRangeRef::TIter
:
TIter(const TRangeRef &)
IMPORT_C TIter(const TRangeRef &aRangeRef);
|
operator++()
IMPORT_C TBool operator++();
|
InRange()const
inline TBool InRange() const;
|
iCurrent
TCellRef iCurrent;
TCellRef iTo;
The end cell.