Location:
BACELL.H
Link against: bafl.lib
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()
, ExternalizeL()
, InternalizeL()
, NoCells()
, NoCols()
, NoRows()
, SetRange()
, SetRange()
, TIter
, TRangeRef()
, TRangeRef()
, TRangeRef()
, iFrom
, iTo
, operator!=()
, operator==()
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>>()
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<<()
can be used to externalise objects of this class.
|
class TIter;
Defined in TRangeRef::TIter
:
InRange()
, TIter()
, iCurrent
, operator++()
TIter()
IMPORT_C TIter(const TRangeRef &aRangeRef);
|
operator++()
IMPORT_C TBool operator++();
|
InRange()
inline TBool InRange() const;
|
iCurrent
TCellRef iCurrent;
TCellRef iTo;
The end cell.