Overview | Namespace | Class | Index | Help

## Methods of Class OMultiTypeInterfaceContainerHelper

OMultiTypeInterfaceContainerHelper
  OMultiTypeInterfaceContainerHelper(

    ::osl::Mutex & | ) throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | NO | NO | NO

  Summary
    Create a container of interface containers.
  Parameters

    rMutex |
        the mutex to protect multi thread access.
                            The lifetime must be longer than the lifetime
                            of this object.

~OMultiTypeInterfaceContainerHelper
  ~OMultiTypeInterfaceContainerHelper() throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | NO | NO | NO

  Summary
    Delete all containers.

getContainedTypes
  ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > getContainedTypes() throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | NO | NO | NO

  Summary
    Return all id's under which at least one interface is added.

getContainer
  OInterfaceContainerHelper * getContainer(

    const ::com::sun::star::uno::Type & | rKey ) const throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | YES | NO | NO | NO | NO | NO

  Summary
    Return the container created under this key.
  Return
    the container created under this key. If the container was not created, null was returned.

addInterface
  sal_Int32 addInterface(

    const ::com::sun::star::uno::Type & | rKey,
    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & | r ) throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | NO | NO | NO

  Summary
    Inserts an element into the container with the specified key. The position is not specified, thus it is not specified in which order events are fired.
  ATTENTION!
    If you add the same interface more than once, then it will be added to the elements list more than once and thus if you want to remove that interface from the list, you have to call removeInterface() the same number of times. In the latter case, you will also get events fired more than once (if the interface is a listener interface).
  Parameters

    rKey |
               the id of the container
    r |
               interface to be added; it is allowed, to insert null or
               the same interface more than once

  Return
    the new count of elements in the container

removeInterface
  sal_Int32 removeInterface(

    const ::com::sun::star::uno::Type & | rKey,
    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & | rxIFace ) throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | NO | NO | NO

  Summary
    Removes an element from the container with the specified key. It uses interface equality to remove the interface.
  Parameters

    rKey |
               the id of the container
    rxIFace |
               interface to be removed

  Return
    the new count of elements in the container

disposeAndClear
  void disposeAndClear(

    const ::com::sun::star::lang::EventObject & | rEvt ) throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | NO | NO | NO

  Summary
    Call disposing on all object in the container that support XEventListener. Than clear the container.

clear
  void clear() throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | NO | NO | NO

  Summary
    Remove all elements of all containers. Does not delete the container.

OMultiTypeInterfaceContainerHelper
  OMultiTypeInterfaceContainerHelper(

    const OMultiTypeInterfaceContainerHelper & | ) throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | NO | YES | NO

operator=
  OMultiTypeInterfaceContainerHelper & operator=(

    const OMultiTypeInterfaceContainerHelper & | ) throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | NO | YES | NO

operator new
  static void * operator new(

    size_t | nSize ) throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | YES | YES | NO

operator delete
  static void operator delete(

    void * | pMem ) throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | YES | YES | NO

operator new
  static void * operator new(

    size_t | ,
    void * | pMem ) throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | YES | YES | NO

operator delete
  static void operator delete(

    void * | ,
    void * | ) throw();

  virtual | abstract | const | volatile | template | static | inline | C-linkage
  NO | NO | NO | NO | NO | YES | YES | NO

Top of Page

Copyright © 2003 Sun Microsystems, Inc.