C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Dynamic one-dimensional array without counter of elements number. More...
#include <templ_c_array.h>
Public Member Functions | |
CcArray (size_t) | |
Constructor. | |
~CcArray () | |
Destructor. | |
void | Fill (const Type &data, size_t cnt) |
Fill an array. | |
void | Copy (const void *from, size_t cnt, size_t offset=0) |
Copy to itself (with the shift 'offset') 'cnt' values from 'from'. | |
bool | SetArraySize (size_t newCount) |
Reallocate memory. | |
void | FreeMemory () |
Free memory. | |
Type & | operator[] (size_t idx) const |
An access operator. | |
bool | IsNull () const |
Is memory allocated? | |
const Type * | GetAddr () const |
Get address of the beginning of an array. | |
TEMPLATE_FRIEND void fill_array | TEMPLATE_SUFFIX (CcArray< Type > &, const Type &fillData, size_t cnt) |
Fill 'cnt' elements of an array by the values of 'fillData'. | |
Dynamic one-dimensional array without counter of elements number.
Dynamic one-dimensional array without counter of elements number.
It is used to allocate memory for array when there is not required to know a size of array. In debug mode there is performed a control of incorrect reference by index out of array bounds.