Implicit Arguments
|
Explicit Arguments
|
Primitive Data Types
|
Complex Data Types
|
T_var Data Types
|
Implicit Arguments
Arguments can be passed using contexts as defined in IDL. For more information, see The Common Object Request Broker: Architecture and Specification - 96-03-04. This document is available from the Object Management Group and describes the architectural details of CORBA.
Explicit Arguments
When you specify an interface in IDL, arguments you pass to methods that are returned may be one of the following:
Table 11.2 Parameter passing modes for primitive data types.
Primitive Data Types
The following table summarizes the parameter passing mode for primitive data types.
Table 11.3 Memory management rules for primitive data types.
Memory Management
The following table lists the memory management rules for all primitive data types and parameter passing modes.
Complex Data Types
Parameter and memory management rules for aggregate data types are more complex. The issue of when memory is allocated and freed deserves special attention. The following table summarizes the parameter passing rules for complex data types.
Table 11.5 Memory management rules for object reference pointers.
Memory Management
The memory management rules for complex data types vary, depending on the passing mode and the type of the parameter. The following tables describe the rules for each parameter type.
Object Reference Pointers
Table 11.6 Memory management rules for fixed-length structures and unions.
Fixed Structures and Unions
Table 11.7 Memory management rules for variable-length structures and unions.
Variable Structures and Unions
Table 11.9 Memory management rules for sequences and any arrays.
Sequences and Type-safe Arrays
Table 11.10 Memory management rules for fixed-length arrays.
Fixed Arrays
Table 11.11 Memory management rules for variable-length arrays.
Variable-Length Arrays
T_var Data Types
The following table summarizes the parameter passing mode for T_var data types.
Memory Management for T_var Types
Last Updated: 02/03/98 15:34:31