LibreOffice
LibreOffice 24.2 SDK 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 |
Gets interface pointer. | |
bool | is () const |
Checks if reference is null. | |
bool | operator== (XInterface *pInterface) const |
Equality operator: compares two interfaces Checks if both references are null or refer to the same object. | |
bool | operator!= (XInterface *pInterface) const |
Inequality operator: compares two interfaces Checks if both references are null or refer to the same object. | |
bool | operator== (const BaseReference &rRef) const |
Equality operator: compares two interfaces Checks if both references are null or refer to the same object. | |
bool | operator!= (const BaseReference &rRef) const |
Inequality operator: compares two interfaces Checks if both references are null or refer to the same object. | |
bool | operator< (const BaseReference &rRef) const |
Needed by some STL containers. | |
Static Protected Member Functions | |
static XInterface * | iquery (XInterface *pInterface, const Type &rType) |
Queries given interface for type rType. | |
static XInterface * | iquery_throw (XInterface *pInterface, const Type &rType) |
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 ==, =!.
|
inline |
Gets interface pointer.
This call does not acquire the interface.
|
inlinestaticprotected |
Queries given interface for type rType.
pInterface | interface pointer |
rType | interface type |
|
inlinestaticprotected |
Queries given interface for type rType.
Throws a RuntimeException if the demanded interface cannot be queried.
pInterface | interface pointer |
rType | interface type |
|
inline |
Checks if reference is null.
|
inline |
Inequality operator: compares two interfaces Checks if both references are null or refer to the same object.
rRef | another reference |
|
inline |
Inequality operator: compares two interfaces Checks if both references are null or refer to the same object.
pInterface | another interface |
|
inline |
Needed by some STL containers.
rRef | another reference |
|
inline |
Equality operator: compares two interfaces Checks if both references are null or refer to the same object.
rRef | another reference |
|
inline |
Equality operator: compares two interfaces Checks if both references are null or refer to the same object.
pInterface | another interface |
|
protected |
the interface pointer