struct TAttrRange |
A range of attribute ID values.
This class is used in an attribute list, CSdpAttrIdMatchList, so that all attributes with IDs in the specified range are considered.
Public Member Functions | |
---|---|
TAttrRange() | |
TAttrRange(TSdpAttributeID) | |
TAttrRange(TSdpAttributeID, TSdpAttributeID) | |
IMPORT_C TBool | IsContiguousWith(TSdpAttributeID) |
IMPORT_C TBool | IsContiguousWith(TAttrRange) |
IMPORT_C TBool | IsInRange(TSdpAttributeID) |
Public Attributes | |
---|---|
TSdpAttributeID | iEnd |
TSdpAttributeID | iStart |
Private Attributes | |
---|---|
TUint32 | iPadding1 |
TUint32 | iPadding2 |
IMPORT_C | TAttrRange | ( | TSdpAttributeID | aAttrId | ) |
Constructor with single ID.
TSdpAttributeID aAttrId | The start and the end of the range are both set to aAttrId |
IMPORT_C | TAttrRange | ( | TSdpAttributeID | aStart, |
TSdpAttributeID | aEnd | |||
) |
Constructor with start and end IDs.
TSdpAttributeID aStart | ID for the start of the range |
TSdpAttributeID aEnd | ID for the end of the range |
IMPORT_C TBool | IsContiguousWith | ( | TSdpAttributeID | aAttrId | ) | const |
Tests if the specified ID is either within the range, is one less than the lower bound, or one more than the upper bound.
True if contiguous, else false
TSdpAttributeID aAttrId | ID to test |
IMPORT_C TBool | IsContiguousWith | ( | TAttrRange | aRange | ) | const |
Tests if the specified range is contiguous with the range.
True if contiguous, else false
TAttrRange aRange | Range to test |
IMPORT_C TBool | IsInRange | ( | TSdpAttributeID | aAttrId | ) | const |
Tests if the specified ID is either within the range.
True if in range, else false
TSdpAttributeID aAttrId | ID to test |