Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


:: com :: sun :: star :: uno ::

class BaseReference


Base Classes
None.
Known Derived Classes
Reference

virtual abstract interface template
NO NO NO NO
Summary
This base class serves as a base class for all template reference classes and has been introduced due to compiler problems with templated operators ==, =!.
File
Reference.h

Public Members

Methods

XInterface *
get( ) const throw( );
Gets interface pointer. This call does not acquire the interface.
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.

Protected Members

Static Methods

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. Throws a RuntimeException if the demanded interface cannot be queried.

Data

XInterface * _pInterface; the interface pointer

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.