#include <bacell.h>
class TRangeRef |
Public Attributes | |
---|---|
TCellRef | iFrom |
TCellRef | iTo |
Public Member Functions | |
---|---|
TRangeRef() | |
TRangeRef(const TCellRef &, const TCellRef &) | |
TRangeRef(TInt, TInt, TInt, TInt) | |
IMPORT_C TBool | Contains(const TCellRef &) |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TInt | NoCells() |
TInt | NoCols() |
TInt | NoRows() |
void | SetRange(const TCellRef &, const TCellRef &) |
void | SetRange(TInt, TInt, TInt, TInt) |
TBool | operator!=(const TRangeRef &) |
IMPORT_C TBool | operator==(const TRangeRef &) |
Identifies a range of cells by start and end cell references. The range is inclusive of both the start and end cells.
See also: TCellRef
TRangeRef | ( | ) | [inline] |
Default constructor.
The object's start cell and end cell are undefined.
Constructor taking a start row and start column number, and an end row and end column number.
Parameter | Description |
---|---|
aFromRow | The start row number. |
aFromCol | The start column number. |
aToRow | The end row number. |
aToCol | The end column number. |
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.
Parameter | Description |
---|---|
aStream | Stream to which the object should be externalised. |
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.
Parameter | Description |
---|---|
aStream | Stream from which the object is to be internalised. |
IMPORT_C TInt | NoCells | ( | ) | const |
Gets the number of cells represented by the range.
Returns: The number of cells.
TInt | NoCols | ( | ) | const [inline] |
Gets the number of columns represented by the range.
Returns: The number of columns.
TInt | NoRows | ( | ) | const [inline] |
Gets the number of rows represented by the range.
Returns: The number of rows.