FDO API Reference | Feature Data Objects |
#include <Array.h>
WARNING: This array uses a single memory allocation to store array elements and may re-allocate that memory when the array size needs to change. Therefore, do not keep pointers to array elements and avoid using for objects which cannot be safely moved around in memory or which have non-empty destructors.
Definition at line 68 of file Array.h.
Public Member Functions | |
FdoInt32 | AddRef () |
Increase the reference count. | |
void | Clear () |
Removes all items from the array. | |
FdoInt32 | GetCount () const |
Gets the number of items in the array. | |
const T * | GetData () const |
Get a pointer to the data in the array. | |
T * | GetData () |
Get a pointer to the data in the array. | |
FdoInt32 | GetRefCount () |
Retrieves the reference count. | |
T & | operator[] (int i) |
Provide index operator [] access to array members. | |
const T & | operator[] (int i) const |
Provide index operator [] access to array members. | |
FdoInt32 | Release () |
Decrease the reference count. | |
Static Public Member Functions | |
FdoArray< T > * | Append (FdoArray< T > *array, T element) |
Adds the specified item to the end of the array. Returns a new array pointer. | |
FdoArray< T > * | Append (FdoArray< T > *array, FdoInt32 numElements, T *elements) |
Adds the specified array of items to the end of the array. Returns a new array pointer. | |
FdoArray< T > * | Create (const T *elements, FdoInt32 initialNumElements) |
Create a dynamic array from a pointer to a fixed array. | |
FdoArray< T > * | Create (FdoInt32 initialAlloc) |
Create a dynamic array preallocated to a specific size. | |
FdoArray< T > * | Create () |
Create an empty array. | |
FdoArray< T > * | SetSize (FdoArray< T > *array, FdoInt32 numElements) |
Resize the array. | |
Protected Member Functions | |
void | Dispose () |
the rest of FdoIDisposable | |
FdoArray () | |
Constructor. | |
T & | GetValue (FdoInt32 i) |
const T & | GetValue (FdoInt32 i) const |
Access elements. | |
void | SetValue (FdoInt32 i, T newElement) |
Static Protected Member Functions | |
FdoArray< T > * | AllocMore (FdoArray< T > *array, FdoInt32 atLeastThisMuch, bool exactly) |
FdoArray< T > * | SetAlloc (FdoArray< T > *array, FdoInt32 numElements) |
|
Constructor.
|
|
Increase the reference count.
|
|
Definition at line 304 of file Array.h. References FdoArrayHelper::AllocMore(). Referenced by FdoArray< T >::Create(). |
Here is the call graph for this function:
|
Adds the specified item to the end of the array. Returns a new array pointer.
Definition at line 260 of file Array.h. References FdoArrayHelper::AllocMore(), and FdoArray< T >::GetValue(). |
Here is the call graph for this function:
|
Adds the specified array of items to the end of the array. Returns a new array pointer.
Definition at line 252 of file Array.h. References FdoArrayHelper::Append(), and FdoByte. |
Here is the call graph for this function:
|
Removes all items from the array.
Definition at line 272 of file Array.h. References FdoArray< T >::SetSize(). |
Here is the call graph for this function:
|
Create a dynamic array from a pointer to a fixed array.
Definition at line 242 of file Array.h. References FdoArray< T >::AllocMore(), FdoArrayHelper::Append(), and FdoByte. |
Here is the call graph for this function:
|
Create a dynamic array preallocated to a specific size.
Definition at line 235 of file Array.h. References FdoArray< T >::AllocMore(). |
Here is the call graph for this function:
|
Create an empty array.
Definition at line 228 of file Array.h. References FdoArray< T >::AllocMore(). |
Here is the call graph for this function:
|
the rest of FdoIDisposable
Definition at line 312 of file Array.h. References FdoArrayHelper::DisposeOfArray(). |
Here is the call graph for this function:
|
Gets the number of items in the array.
Definition at line 131 of file Array.h. Referenced by FdoArray< T >::GetValue(), and FdoArray< T >::SetValue(). |
|
Get a pointer to the data in the array.
|
|
Get a pointer to the data in the array.
Definition at line 138 of file Array.h. Referenced by FdoArray< T >::GetValue(), FdoIoObjectStreamReader< FdoByte >::ReadNext(), and FdoArray< T >::SetValue(). |
|
Retrieves the reference count.
|
|
Definition at line 329 of file Array.h. References FdoException::Create(), FDO_5_INDEXOUTOFBOUNDS, FDO_NLSID, FdoArray< T >::GetCount(), and FdoArray< T >::GetData(). |
Here is the call graph for this function:
|
Access elements.
Definition at line 319 of file Array.h. References FdoException::Create(), FDO_5_INDEXOUTOFBOUNDS, FDO_NLSID, FdoArray< T >::GetCount(), and FdoArray< T >::GetData(). Referenced by FdoArray< T >::Append(). |
Here is the call graph for this function:
|
Provide index operator [] access to array members.
|
|
Provide index operator [] access to array members.
|
|
Decrease the reference count.
|
|
Definition at line 288 of file Array.h. References FdoArrayHelper::SetAlloc(). |
Here is the call graph for this function:
|
Resize the array.
Definition at line 280 of file Array.h. References FdoArrayHelper::SetSize(). Referenced by FdoArray< T >::Clear(). |
Here is the call graph for this function:
|
Definition at line 339 of file Array.h. References FdoException::Create(), FDO_5_INDEXOUTOFBOUNDS, FDO_NLSID, FdoArray< T >::GetCount(), and FdoArray< T >::GetData(). |
Here is the call graph for this function:
Comments or suggestions? Send us feedback. |