(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: 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 OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. 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.