ContentAccess::CBitset Class Reference
class ContentAccess::CBitset : public CBase |
A container of bits.
The bits may be retrieved, set, and unset.
Constructor & Destructor Documentation
CBitset(const CBitset &)
CBitset | ( | const CBitset & | aSource | ) | [private] |
Member Functions Documentation
ConstructL(TInt)
void | ConstructL | ( | TInt | aMaxId | ) | [private] |
ConstructL(const CBitset &)
void | ConstructL | ( | const CBitset & | aSource | ) | [private] |
ExternalizeL(RWriteStream &)
Externalisation function that allows this object to be marshalled prior to being shipped over a client-server interface by related glue-code.
IdentifyBit(TInt, TInt &, TInt &)
void | IdentifyBit | ( | TInt | aBitId, |
| TInt & | aByte, |
| TInt & | aBitInByte |
| ) | const [private] |
Converts from a bit ID to a byte and bit within one of the bit-field sets.
Parameters
TInt aBitId | The bit ID being mapped. |
TInt & aByte | Modified to contain the resultant byte number. |
TInt & aBitInByte | Modified to contain the resultant bit number within the byte. |
InternalizeL(RReadStream &)
Internalisation function that allows this object to to be unmarshalled after transfer across a client-server interface.
Invert()
Inverts all bits in the set.
IsSet(TInt)
Queries the single bit of the set.
-
panic
- CafUtils 0 if aBit is out of range
Parameters
TInt aBit | The bit that requires testing. |
IsSetList(TInt, ...)
IMPORT_C TBool | IsSetList | ( | TInt | aItems, |
| ... | |
| ) | const |
Allows a caller to query multiple bits in the bitset.
Parameters
TInt aItems | The number of items following in the parameter list. |
... | |
MaxBits()
IMPORT_C TInt | MaxBits | ( | ) | const |
Gets the maximum number of settable/gettable bits.
NewL(TInt)
Constructs a new bitset object with a maximum number of bits.
Parameters
TInt aMaxBits | The maximum number of bits this object may contain. |
NewL(const CBitset &)
Parameters
const CBitset & aSource | The object to be copied from. |
Reset()
Resets the entire bitset to zero.
Set(TInt)
IMPORT_C void | Set | ( | TInt | aBit | ) | |
Sets the 'aBit'th bit of the set.
- panic
- CafUtils 0 if aBit is out of range
SetAll()
Sets all bits in the set to one.
SetListL(TInt, ...)
IMPORT_C void | SetListL | ( | TInt | aItems, |
| ... | |
| ) | |
Allows a caller to set multiple bits in the bitset by allowing a variable-length parameter list.
Parameters
TInt aItems | The number of items following in the parameter list. |
... | |
Unset(TInt)
IMPORT_C void | Unset | ( | TInt | aBit | ) | |
Clears the 'aBit'th bit of the set.
- panic
- CafUtils 0 if aBit is out of range
Parameters
TInt aBit | the bit to clear |
ValidBit(TInt)
TBool
| ValidBit | ( | TInt | aAttributeId | ) | const [private, inline] |
Tests whether the bit value is valid for this bitset.
Parameters
TInt aAttributeId | The ..... |
operator!=(const CBitset &)
operator=(const CBitset &)
Assignment of a bitset.
Note that an assignment of a longer bitset to a shorter bitset will result in the shorter bitset being expanded. This function may leave.
Parameters
const CBitset & aSource | The bitset ...... |
operator==(const CBitset &)
Allows comparisons of CBitsets.
Note that it is possible to compare a longer bitset with a shorter one. However, only the relevant (low-order) bits are compared.
Parameters
const CBitset & aSource | The bitset ..... |
Member Data Documentation
TInt
iMaxBits
The maximum number of bits in this bitset
TInt
iWidth
The number of bytes required to allow for maxbits
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.