13.1.10.1 Array Slice
A slice of an array is an array with all the dimensions of the original array except the first dimension. The member functions for the array-generated classes use a pointer to a slice to return pointers to an array. A typedef for each slice is generated.
For example, consider the following OMG IDL definition:
// OMG IDL
typedef LogItem LogMultiArray[5][10];
This definition maps to C++ as follows:
// C++
typedef LogItem LogMultiArray[5][10];
typedef LogItem LogMultiArray_slice[10];
If you have a one-dimensional array, an array slice is just a
type. For example, if you had a one-dimensional array of
long
, an array slice would result in a
CORBA::Long
data type.
Parent topic: Arrays