#include <xsi_hardwareattribute.h>
The CHardwareAttributeArray is an uni-dimensional array of CHardwareAttribute.
The array is zero-based, which means that the first item index is 0 and the larger index is one less that the number of elements contained in the array.
Public Member Functions |
|
CHardwareAttributeArray (LONG in_size=0) | |
CHardwareAttributeArray (const CHardwareAttributeArray &in_array) | |
~CHardwareAttributeArray () | |
CHardwareAttributeArray & | operator= (const CHardwareAttributeArray &in_array) |
LONG | GetCount () const |
CStatus | Add (const CHardwareAttribute &in_item) |
CStatus | Clear () |
CStatus | Resize (LONG in_size) |
const CHardwareAttribute & | operator[] (LONG in_index) const |
CHardwareAttribute & | operator[] (LONG in_index) |
bool | operator== (const CHardwareAttributeArray &in_array) const |
bool | operator!= (const CHardwareAttributeArray &in_array) const |
CHardwareAttributeArray | ( | LONG | in_size = 0 |
) |
Constructs a CHardwareAttributeArray and optionally initializes the array to a known size.
in_size | Size of array, defaults to 0. |
CHardwareAttributeArray | ( | const CHardwareAttributeArray & | in_array | ) |
Constructs a CHardwareAttributeArray object from another CHardwareAttributeArray object.
in_array | constant CHardwareAttributeArray object. |
Default destructor.
CHardwareAttributeArray& operator= | ( | const CHardwareAttributeArray & | in_array | ) |
Assignment operator.
in_array | constant class object. |
LONG GetCount | ( | ) | const |
Returns the number of items in this CHardwareAttributeArray
CStatus Add | ( | const CHardwareAttribute & | in_item | ) |
Adds a CHardwareAttribute at the end of this array's.
in_item | New item to be added at the end of the array. |
CStatus Clear | ( | ) |
CStatus Resize | ( | LONG | in_size | ) |
Reallocates memory for the array, preserves its contents if the new size is larger than existing size.
in_size | New size of the array. |
const CHardwareAttribute& operator[] | ( | LONG | in_index | ) | const |
Accessor to elements at a given index. This function can only be called by constant objects, the returned value is read-only.
in_index | index in this zero-based array. The index must be greater or equal to zero and smaller than the number of element in the array, otherwise the results are unpredictable. |
CHardwareAttribute& operator[] | ( | LONG | in_index | ) |
Accessor to elements at a given index.
in_index | index in this zero-based array. The index must be greater or equal to zero and smaller than the number of element in the array, otherwise the results are unpredictable. |
bool operator== | ( | const CHardwareAttributeArray & | in_array | ) | const |
Equality operator.
in_array | CHardwareAttributeArray to compare with. |
bool operator!= | ( | const CHardwareAttributeArray & | in_array | ) | const |
Inequality
in_array |