Previous Table of Contents Next


4.4 ValueBase Operations

   ValueBase serves a similar role for value types that Object serves for interfaces. Its mapping is language-specific and must be explicitly specified for each language.

   Typically it is mapped to a concrete language type which serves as a base for all value types. Any operations that are required to be supported for all values are conceptually defined on ValueBase, although in reality their actual mapping depends upon the specifics of any particular language mapping.

   Analogous to the definition of the Object interface for implicit operations of object references, the implicit operations of ValueBase are defined on a pseudo-valuetype as follows:

   module CORBA { valuetype ValueBase{ PIDL ValueDef get_value_def(); }; };

   The get_value_def() operation returns a description of the value’s definition as described in the interface repository (Section 10.5.31, “ValueDef? on page 10-44).