[Enterprise Extensions only]

ArrayDef::element_type

Overview The element_type operation returns a type (CORBA::TypeCode *) representative of the array element of an ArrayDef.
Original interface ArrayDef Interface
Exceptions CORBA::SystemException


Intended Usage

The element_type attribute of an ArrayDef object points to a CORBA::TypeCode that represents the type of the array element. The element_type read operation returns a copy of the CORBA::TypeCode referenced by the element_type attribute.

IDL Syntax

  readonly attribute TypeCode element_type;

Input parameters

None.

Return values

TypeCode *
The returned value is a pointer to a copy of the CORBA::TypeCode referenced by the element_type attribute. The memory is owned by the caller and can be returned by invoking CORBA::release.

Example

  // C++
     // assume that 'this_array' has already been initialized
     CORBA::ArrayDef * this_array;
 
     // retrieve the TypeCode which represents the array element
     CORBA::TypeCode * array_element_type;
     array_element_type = this_array-> element_type ();