C++ class representing an IDL meta type.
More...
#include <Type.h>
C++ class representing an IDL meta type.
This class is used to represent a type, i.e. a type name and its type class. Internally the type holds a C type description reference of the runtime. You can obtain a full type description of a type by calling member function getDescription().
- See also
- typelib_TypeDescriptionReference
◆ Type() [1/7]
com::sun::star::uno::Type::Type |
( |
| ) |
|
|
inline |
Default Constructor: Type is set to void.
◆ Type() [2/7]
com::sun::star::uno::Type::Type |
( |
TypeClass |
eTypeClass, |
|
|
const ::rtl::OUString & |
rTypeName |
|
) |
| |
|
inline |
Constructor: Type is constructed by given name and type class.
- Parameters
-
eTypeClass | type class of type |
rTypeName | name of type |
◆ Type() [3/7]
com::sun::star::uno::Type::Type |
( |
TypeClass |
eTypeClass, |
|
|
const char * |
pTypeName |
|
) |
| |
|
inline |
Constructor: Type is constructed by given name and type class.
- Parameters
-
eTypeClass | type class of type |
pTypeName | name of type |
◆ Type() [4/7]
Constructor: Type is (copy) constructed by given C type description reference.
- Parameters
-
pType | C type description reference |
◆ Type() [5/7]
Constructor: Type is (copy) constructed by given C type description reference without acquiring it.
- Parameters
-
pType | C type description reference |
dummy | UNO_TYPE_NO_ACQUIRE to force obvious distinction to other constructors |
◆ Type() [6/7]
Constructor: Type is (copy) constructed by given C type description reference without acquiring it.
- Parameters
-
pType | C type description reference |
dummy | SAL_NO_ACQUIRE to force obvious distinction to other constructors |
◆ Type() [7/7]
com::sun::star::uno::Type::Type |
( |
const Type & |
rType | ) |
|
|
inline |
Copy constructor: Type is copy constructed by given type.
- Parameters
-
◆ ~Type()
com::sun::star::uno::Type::~Type |
( |
| ) |
|
|
inline |
Destructor: Releases acquired C type description reference.
◆ equals()
bool com::sun::star::uno::Type::equals |
( |
const Type & |
rType | ) |
const |
|
inline |
Compares two types.
- Parameters
-
- Returns
- true if both types refer the same type, false otherwise
◆ getDescription()
Obtains a full type description of set type.
- Parameters
-
ppDescr | [inout] type description |
◆ getTypeClass()
TypeClass com::sun::star::uno::Type::getTypeClass |
( |
| ) |
const |
|
inline |
Gets the type class of set type.
- Returns
- type class of set type
◆ getTypeLibType()
Gets the C typelib type description reference pointer.
Does not acquire the reference!
- Returns
- UNacquired type description reference
◆ getTypeName()
Gets the name of the set type.
- Returns
- name of the set type
◆ isAssignableFrom()
bool com::sun::star::uno::Type::isAssignableFrom |
( |
const Type & |
rType | ) |
const |
|
inline |
Tests if values of this reflected type can be assigned by values of given type.
This includes widening conversion (e.g., long assignable from short), as long as there is no data loss.
- Parameters
-
- Returns
- true if values of this type can be assigned from values of given type, false otherwise
◆ operator!=()
bool com::sun::star::uno::Type::operator!= |
( |
const Type & |
rType | ) |
const |
|
inline |
Inequality operator: Compares two types.
- Parameters
-
- Returns
- false if both types refer the same type, true otherwise
◆ operator=()
Type & com::sun::star::uno::Type::operator= |
( |
const Type & |
rType | ) |
|
|
inline |
Assignment operator: Acquires right side type and releases previously set type.
- Parameters
-
rType | another type (right side) |
- Returns
- this type
◆ operator==()
bool com::sun::star::uno::Type::operator== |
( |
const Type & |
rType | ) |
const |
|
inline |
Equality operator: Compares two types.
- Parameters
-
- Returns
- true if both types refer the same type, false otherwise
The documentation for this class was generated from the following files: