BDE 4.14.0 Production release
|
Functions | |
template<class TYPE , class MANIPULATOR > | |
int | manipulateElement (TYPE *array, MANIPULATOR &manipulator, int index) |
template<class TYPE > | |
void | resize (TYPE *array, int newSize) |
template<class TYPE , class ACCESSOR > | |
int | accessElement (const TYPE &array, ACCESSOR &accessor, int index) |
template<class TYPE > | |
bsl::size_t | size (const TYPE &array) |
Return the number of elements in the specified array . | |
template<class TYPE , class ALLOC , class MANIPULATOR > | |
int | bdlat_arrayManipulateElement (bsl::vector< TYPE, ALLOC > *array, MANIPULATOR &manipulator, int index) |
template<class TYPE , class ALLOC > | |
void | bdlat_arrayResize (bsl::vector< TYPE, ALLOC > *array, int newSize) |
template<class TYPE , class ALLOC , class ACCESSOR > | |
int | bdlat_arrayAccessElement (const bsl::vector< TYPE, ALLOC > &array, ACCESSOR &accessor, int index) |
template<class TYPE , class ALLOC > | |
bsl::size_t | bdlat_arraySize (const bsl::vector< TYPE, ALLOC > &array) |
int bdlat_ArrayFunctions::accessElement | ( | const TYPE & | array, |
ACCESSOR & | accessor, | ||
int | index | ||
) |
Invoke the specified accessor
on the non-modifiable element at the specified index
of the specified array
. Return the value from the invocation of accessor
. The behavior is undefined unless 0 <= index
and index < size(array)
.
int bdlat_ArrayFunctions::bdlat_arrayAccessElement | ( | const bsl::vector< TYPE, ALLOC > & | array, |
ACCESSOR & | accessor, | ||
int | index | ||
) |
int bdlat_ArrayFunctions::bdlat_arrayManipulateElement | ( | bsl::vector< TYPE, ALLOC > * | array, |
MANIPULATOR & | manipulator, | ||
int | index | ||
) |
void bdlat_ArrayFunctions::bdlat_arrayResize | ( | bsl::vector< TYPE, ALLOC > * | array, |
int | newSize | ||
) |
bsl::size_t bdlat_ArrayFunctions::bdlat_arraySize | ( | const bsl::vector< TYPE, ALLOC > & | array | ) |
int bdlat_ArrayFunctions::manipulateElement | ( | TYPE * | array, |
MANIPULATOR & | manipulator, | ||
int | index | ||
) |
Invoke the specified manipulator
on the address of the element at the specified index
of the specified array
. Return the value from the invocation of manipulator
. The behavior is undefined unless 0 <= index
and index < size(*array)
.
void bdlat_ArrayFunctions::resize | ( | TYPE * | array, |
int | newSize | ||
) |
Set the size of the specified modifiable array
to the specified newSize
. If newSize > size(array)
, then newSize - size(array)
elements with default values are appended to array
. If newSize < size(array)
, then the size(array) - newSize
elements at the end of array
are destroyed. The behavior is undefined unless 0 <= newSize
.
bsl::size_t bdlat_ArrayFunctions::size | ( | const TYPE & | array | ) |