UDK 3.2.7 C/C++ API Reference
|
This base class serves as a base class for all template reference classes and has been introduced due to compiler problems with templated operators ==, =!. More...
#include <Reference.h>
Public Member Functions | |
XInterface * | get () const throw () |
Gets interface pointer. | |
sal_Bool | is () const throw () |
Checks if reference is null. | |
sal_Bool | operator== (XInterface *pInterface) const throw () |
Equality operator: compares two interfaces Checks if both references are null or refer to the same object. | |
sal_Bool | operator!= (XInterface *pInterface) const throw () |
Unequality operator: compares two interfaces Checks if both references are null or refer to the same object. | |
sal_Bool | operator== (const BaseReference &rRef) const throw () |
Equality operator: compares two interfaces Checks if both references are null or refer to the same object. | |
sal_Bool | operator!= (const BaseReference &rRef) const throw () |
Unequality operator: compares two interfaces Checks if both references are null or refer to the same object. | |
sal_Bool | operator< (const BaseReference &rRef) const throw () |
Needed by some STL containers. | |
Static Protected Member Functions | |
static XInterface * | iquery (XInterface *pInterface, const Type &rType) throw (RuntimeException) |
Queries given interface for type rType. | |
static XInterface * | iquery_throw (XInterface *pInterface, const Type &rType) throw (RuntimeException) |
Queries given interface for type rType. | |
Protected Attributes | |
XInterface * | _pInterface |
the interface pointer |
This base class serves as a base class for all template reference classes and has been introduced due to compiler problems with templated operators ==, =!.
XInterface* com::sun::star::uno::BaseReference::get | ( | ) | const throw () [inline] |
Gets interface pointer.
This call does not acquire the interface.
Reimplemented in com::sun::star::uno::Reference< interface_type >, com::sun::star::uno::Reference< XCurrentContext >, com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >, and com::sun::star::uno::Reference< ::com::sun::star::security::XAccessController >.
XInterface * com::sun::star::uno::BaseReference::iquery | ( | XInterface * | pInterface, |
const Type & | rType | ||
) | throw (RuntimeException) [inline, static, protected] |
Queries given interface for type rType.
pInterface | interface pointer |
rType | interface type |
XInterface * com::sun::star::uno::BaseReference::iquery_throw | ( | XInterface * | pInterface, |
const Type & | rType | ||
) | throw (RuntimeException) [inline, static, protected] |
Queries given interface for type rType.
Throws a RuntimeException if the demanded interface cannot be queried.
pInterface | interface pointer |
rType | interface type |
sal_Bool com::sun::star::uno::BaseReference::is | ( | ) | const throw () [inline] |
Checks if reference is null.
sal_Bool com::sun::star::uno::BaseReference::operator!= | ( | const BaseReference & | rRef | ) | const throw () [inline] |
Unequality operator: compares two interfaces Checks if both references are null or refer to the same object.
rRef | another reference |
sal_Bool com::sun::star::uno::BaseReference::operator!= | ( | XInterface * | pInterface | ) | const throw () [inline] |
Unequality operator: compares two interfaces Checks if both references are null or refer to the same object.
pInterface | another interface |
sal_Bool com::sun::star::uno::BaseReference::operator< | ( | const BaseReference & | rRef | ) | const throw () [inline] |
Needed by some STL containers.
rRef | another reference |
sal_Bool com::sun::star::uno::BaseReference::operator== | ( | XInterface * | pInterface | ) | const throw () [inline] |
Equality operator: compares two interfaces Checks if both references are null or refer to the same object.
pInterface | another interface |
sal_Bool com::sun::star::uno::BaseReference::operator== | ( | const BaseReference & | rRef | ) | const throw () [inline] |
Equality operator: compares two interfaces Checks if both references are null or refer to the same object.
rRef | another reference |
XInterface* com::sun::star::uno::BaseReference::_pInterface [protected] |
the interface pointer