Those commands manipulate IDL type objects and return information about
them. They all take a type object as their first argument, noted $type
in
the following command descriptions. Such an object is typically returned by
other procedures, such as
dotgen types
.
Return the fully qualified name of the IDL type. The result includes
the namespace hierarchy in which the type is defined and the last
component is the result of $type name
.
Return the list of lexical scopes in which the type is defined. Each
element of the list contains two values: the nature of the scope and its
name. The nature of the scope will be either module
for IDL modules,
or struct
if the type is defined inside an IDL struct
.
Return a boolean indicating if the type is of fixed, constant size (true) or not (false).
Return a new type object with all aliases resolved. For const
types,
this returns the type of the constant. For typedef
, this return the
first non-aliased type. For struct
and union
members, this returns
the type of the member.
Return the parent type of a nested type definition, or raise an error if the type is not nested.
Return the list of all types that are recursively used by the given
type. In other words, this is the list of types that must be known in
order to completely define the given $type
.
For all basic types such as long
, double
and so forth, the returned
list is empty. For enumerated types, the result is the list of
enumerators. For aggregates such as struct
, union
or exception
,
the result is the list of all members, expanded recursively with the
same rules. Finally, for `array`s or `sequence`s, this returns the type
of the array or sequence elements, recursively expanded.
'filter' |
The optional filter can be used to filter out some elements from the
type list. The filter must be a tcl anonymous function (see tcl
|
Return the underlying type of a type that contains another type
definition. For instance, this procedure invoked on an array
or
sequence
type returns the element type. It returns the aliased type
for typedef
.
Return a string uniquely describing the given type, suitable for use as an identifier in source code written in the current programming language.
Return an ASCII string representing the implementation (definition) of the given type, suitable for use in source code written in the current programming language.
Return the declarator for $type with optional 'qualifier' or for a variable 'var' of that type, in the current language.
'var' |
The variable being declared. If not given, an abstract declarator is returned. |
Return an expression representing the address of a variable of the given type in the current language.
'var' |
The variable of which the address must be taken. |
Return an expression that declares a parameter 'var' of the given type, passed by value or reference according to the second parameter.
'var' |
The argument name being declared. If not given, an abstract declarator is returned. |
Return an expression that passes a variable 'var' of the given type as a function parameter. The variable is passed by value or reference according to second argument.
'var' |
The variable that must be passed. |
Return an expression that retrieves the value of a parameter 'var', passed by value or reference according to the second argument.
'var' |
The argument name. |
Return an ASCII representaion (32 characters) of an MD5 digest of the given type. This is useful for implementing a cheap runtime verification that two types match.
Return any value defined in a #pragma masquerade
for that type,
if the current template matches the corresponding parameter of the
#pragma
. See
#pragma
masquerade
.
Return a list describing the source location where that type is defined. The list contains four elements: the file name, the line number, the column number and the original component context of the definition. If an optional argument is given, only the corresponding element is returned.