19 #ifndef INCLUDED_TYPELIB_TYPEDESCRIPTION_HXX
20 #define INCLUDED_TYPELIB_TYPEDESCRIPTION_HXX
55 inline static void * SAL_CALL
operator new (
size_t nSize )
57 inline static void SAL_CALL
operator delete (
void * pMem )
59 inline static void * SAL_CALL
operator new ( size_t,
void * pMem )
61 inline static void SAL_CALL
operator delete (
void *,
void * )
85 #if defined LIBO_INTERNAL_ONLY
87 { other._pTypeDescr =
nullptr; }
117 #if defined LIBO_INTERNAL_ONLY
119 if (_pTypeDescr !=
nullptr) {
122 _pTypeDescr = other._pTypeDescr;
123 other._pTypeDescr =
nullptr;
140 {
return equals( rTypeDescr._pTypeDescr ); }
151 {
return _pTypeDescr; }
156 inline bool SAL_CALL
is()
const
157 {
return (_pTypeDescr != NULL); }
161 : _pTypeDescr( pTypeDescr )
168 : _pTypeDescr( NULL )
175 : _pTypeDescr( NULL )
177 if (rType.getTypeLibType())
182 : _pTypeDescr( rTypeDescr._pTypeDescr )
189 : _pTypeDescr( NULL )
195 : _pTypeDescr( NULL )
212 _pTypeDescr = pTypeDescr;
218 return (_pTypeDescr && pTypeDescr &&
224 if (_pTypeDescr && !_pTypeDescr->bComplete)
C++ wrapper for typelib_TypeDescription.
Definition: typedescription.hxx:46
CPPU_DLLPUBLIC void typelib_typedescriptionreference_getDescription(typelib_TypeDescription **ppRet, typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
Retrieves the type description for a given reference.
CPPU_DLLPUBLIC sal_Bool typelib_typedescription_complete(typelib_TypeDescription **ppTypeDescr) SAL_THROW_EXTERN_C()
Completes a typedescription to be used for, e.g., marshalling values.
TypeDescription(typelib_TypeDescription *pTypeDescr=NULL)
Constructor:
Definition: typedescription.hxx:160
CPPU_DLLPUBLIC void typelib_typedescription_acquire(typelib_TypeDescription *pDesc) SAL_THROW_EXTERN_C()
Increments reference count of given type description.
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
typelib_TypeDescription * get() const
Gets the UNacquired type description pointer.
Definition: typedescription.hxx:150
~TypeDescription()
Destructor: releases type description.
Definition: typedescription.hxx:200
CPPU_DLLPUBLIC void typelib_typedescription_release(typelib_TypeDescription *pDesc) SAL_THROW_EXTERN_C()
Decrements reference count of given type.
bool equals(const typelib_TypeDescription *pTypeDescr) const
Tests whether two type descriptions are equal.
Definition: typedescription.hxx:216
bool equals(const TypeDescription &rTypeDescr) const
Tests whether two type descriptions are equal.
Definition: typedescription.hxx:139
struct SAL_DLLPUBLIC_RTTI _typelib_TypeDescription typelib_TypeDescription
Full type description of a type.
void makeComplete() const
Makes stored type description complete.
Definition: typedescription.hxx:222
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
struct SAL_DLLPUBLIC_RTTI _typelib_TypeDescriptionReference typelib_TypeDescriptionReference
Holds a weak reference to a type description.
TypeDescription & operator=(typelib_TypeDescription *pTypeDescr)
Assignment operator: acquires given type description and releases a set one.
Definition: typedescription.hxx:206
bool is() const
Tests if a type description is set.
Definition: typedescription.hxx:156
CPPU_DLLPUBLIC void typelib_typedescription_getByName(typelib_TypeDescription **ppRet, rtl_uString *pName) SAL_THROW_EXTERN_C()
Retrieves a type description via its fully qualified name.
CPPU_DLLPUBLIC sal_Bool typelib_typedescription_equals(const typelib_TypeDescription *p1, const typelib_TypeDescription *p2) SAL_THROW_EXTERN_C()
Tests whether two types descriptions are equal, i.e.