Overview | Namespace | Class | Index | Help

PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA
PROTECTED MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA

:: 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.

### 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

Copyright © 2003 Sun Microsystems, Inc.