BDE 4.14.0 Production release
Loading...
Searching...
No Matches

Classes

struct  ElementType
 
struct  ElementType< bsl::vector< TYPE, ALLOC > >
 
struct  ElementType< s_baltst::TestDynamicType< VALUE_TYPE > >
 
struct  ElementType< s_baltst::TestTaggedValue< TAG_TYPE, VALUE_TYPE > >
 
struct  IsArray
 
struct  IsArray< bsl::vector< TYPE, ALLOC > >
 
struct  IsArray< s_baltst::TestDynamicType< VALUE_TYPE > >
 
struct  IsArray< s_baltst::TestTaggedValue< TAG_TYPE, VALUE_TYPE > >
 

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)
 

Function Documentation

◆ accessElement()

template<class TYPE , class ACCESSOR >
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).

◆ bdlat_arrayAccessElement()

template<class TYPE , class ALLOC , class ACCESSOR >
int bdlat_ArrayFunctions::bdlat_arrayAccessElement ( const bsl::vector< TYPE, ALLOC > &  array,
ACCESSOR &  accessor,
int  index 
)

◆ bdlat_arrayManipulateElement()

template<class TYPE , class ALLOC , class MANIPULATOR >
int bdlat_ArrayFunctions::bdlat_arrayManipulateElement ( bsl::vector< TYPE, ALLOC > *  array,
MANIPULATOR &  manipulator,
int  index 
)

◆ bdlat_arrayResize()

template<class TYPE , class ALLOC >
void bdlat_ArrayFunctions::bdlat_arrayResize ( bsl::vector< TYPE, ALLOC > *  array,
int  newSize 
)

◆ bdlat_arraySize()

template<class TYPE , class ALLOC >
bsl::size_t bdlat_ArrayFunctions::bdlat_arraySize ( const bsl::vector< TYPE, ALLOC > &  array)

◆ manipulateElement()

template<class TYPE , class MANIPULATOR >
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).

◆ resize()

template<class TYPE >
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.

◆ size()

template<class TYPE >
bsl::size_t bdlat_ArrayFunctions::size ( const TYPE &  array)