#include <xsi_boolarray.h>
Public Member Functions |
|
| CBoolArray (LONG in_size=0) | |
| CBoolArray (const CBoolArray &in_array) | |
| ~CBoolArray () | |
| CBoolArray & | operator= (const CBoolArray &in_array) |
| LONG | GetCount () const |
| CStatus | Add (const bool &in_item) |
| CStatus | Clear () |
| CStatus | Resize (LONG in_size) |
| const bool & | operator[] (LONG in_index) const |
| bool & | operator[] (LONG in_index) |
| bool | operator== (const CBoolArray &in_array) const |
| bool | operator!= (const CBoolArray &in_array) const |
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.
| CBoolArray | ( | LONG | in_size = 0 |
) |
Constructs a CBoolArray and optionally initializes the array to a known size.
| in_size | Size of array, defaults to 0. |
| CBoolArray | ( | const CBoolArray & | in_array | ) |
Constructs a CBoolArray object from another CBoolArray object.
| in_array | constant CBoolArray object. |
Default destructor.
| CBoolArray& operator= | ( | const CBoolArray & | in_array | ) |
Assignment operator.
| in_array | constant class object. |
Returns the number of items in this CBoolArray
Adds a bool to the end of this array.
| in_item | New item to be added at the end of the array. |
Erases all elements contained in the array.
Reallocates memory for the array, preserves its contents if new new size is larger than existing size.
| in_size | New size of the array. |
CStatus::InvalidArgument in_size < 0
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 smaller than the number of elements in the array, otherwise the results are unpredicted. |
| bool& operator[] | ( | LONG | in_index | ) |
Accessor to elements at a given index.
| in_index | Index in this zero based array. The index must be smaller than the number of elements in the array, otherwise the results are unpredicted. |
Equality operator.
| in_array | CBoolArray to compare with. |
in_array contains the same number of elements as this array and that all members of in_array are equal to the corresponding one contained in this array. Inequality operator.
| in_array | CBoolArray to compare with. |
in_array is different of the corresponding members in this array or if the arrays are not of the same size.