The CORBA interface provides the following object
interfaces:
- _duplicate
- This operation duplicates an object reference. This is particularly useful
when passing references to objects to resolve memory ownership issues. For
every _duplicate that is performed on an object an equal number of release()
must also be performed for proper memory management. An alternative to the
_duplicate() and release() logic is to use _var support as described for string_dup in CORBA class interfaces.
- _is_a
- This operation is used to determine whether an object reference supports
a given IDL interface. If the object supports the interface the _narrow operation
can be successfully performed.
- _is_equivalent
- This operation is used to determine whether two object references refer
to the same object.
- _narrow
- This operation is used to narrow a more generic interface to a more specific
interface. This operation will return an empty pointer without throwing an
exception if the interface cannot be narrowed to the requested type. Care
must be taken to check the returned value before using it.
- _nil
- This operation returns a nil CORBA::Object. This object could be used
for comparison operations.
- _non_existent
- This operation determines whether an object reference refers to a valid
object. This will result in verification of the object reference only, no
other operations are performed on the requested object.