com::sun::star::uno::BaseReference Class 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>
List of all members.
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
|
Detailed Description
This base class serves as a base class for all template reference classes and has been introduced due to compiler problems with templated operators ==, =!.
Member Function Documentation
XInterface* com::sun::star::uno::BaseReference::get |
( |
|
) |
const throw () [inline] |
XInterface * com::sun::star::uno::BaseReference::iquery |
( |
XInterface * |
pInterface, |
|
|
const Type & |
rType | |
|
) |
| | throw (RuntimeException) [inline, static, protected] |
Queries given interface for type rType.
- Parameters:
-
| pInterface | interface pointer |
| rType | interface type |
- Returns:
- interface of demanded type (may be null)
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.
- Parameters:
-
| pInterface | interface pointer |
| rType | interface type |
- Returns:
- interface of demanded type
sal_Bool com::sun::star::uno::BaseReference::is |
( |
|
) |
const throw () [inline] |
Checks if reference is null.
- Returns:
- true if reference acquires an interface, i.e. true if it is not 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.
- Parameters:
-
- Returns:
- false if both references are null or refer to the same object, true otherwise
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.
- Parameters:
-
| pInterface | another interface |
- Returns:
- false if both references are null or refer to the same object, true otherwise
sal_Bool com::sun::star::uno::BaseReference::operator< |
( |
const BaseReference & |
rRef |
) |
const throw () [inline] |
Needed by some STL containers.
- Parameters:
-
- Returns:
- true, if this reference is less than rRef
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.
- Parameters:
-
- Returns:
- true if both references are null or refer to the same object, false otherwise
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.
- Parameters:
-
| pInterface | another interface |
- Returns:
- true if both references are null or refer to the same object, false otherwise
Member Data Documentation
The documentation for this class was generated from the following files: