Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


:: cppu ::

template< typename key, typename hashImpl, typename equalImpl >

class OMultiTypeInterfaceContainerHelperVar


Base Classes
None.
Known Derived Classes
None.

virtual abstract interface template
NO NO NO YES
Summary
A helper class to store interface references of different types.
See Also
OInterfaceIteratorHelper
OInterfaceContainerHelper
File
interfacecontainer.h

Public Members

Typedefs

keyType

Methods


OMultiTypeInterfaceContainerHelperVar( ::osl::Mutex & ) throw( );
Create a container of interface containers.

~OMultiTypeInterfaceContainerHelperVar( ) throw( );
Deletes all containers.
::com::sun::star::uno::Sequence< key >
getContainedTypes( ) const throw( );
Return all id's under which at least one interface is added.
OInterfaceContainerHelper *
getContainer( const key & ) const throw( );
Return the container created under this key. The InterfaceContainerHelper exists until the whole MultiTypeContainer is destroyed.
sal_Int32
addInterface( const key & rKey, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & r ) throw( );
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.
sal_Int32
removeInterface( const key & rKey, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & rxIFace ) throw( );
Removes an element from the container with the specified key. It uses interface equality to remove the interface.
void
disposeAndClear( const ::com::sun::star::lang::EventObject & rEvt ) throw( );
Call disposing on all references in the container, that support XEventListener. Then clears the container.
void
clear( ) throw( );
Remove all elements of all containers. Does not delete the container.

Static Methods

static void *
operator new( size_t nSize ) throw( );
static void
operator delete( void * pMem ) throw( );
static void *
operator new( size_t , void * pMem ) throw( );
static void
operator delete( void * , void * ) throw( );

Private Members

Typedefs

InterfaceMap

Methods

InterfaceMap::iterator
find( const key & rKey ) const;

OMultiTypeInterfaceContainerHelperVar( const OMultiTypeInterfaceContainerHelperVar & ) throw( );
OMultiTypeInterfaceContainerHelperVar &
operator=( const OMultiTypeInterfaceContainerHelperVar & ) throw( );

Data

InterfaceMap * m_pMap;
::osl::Mutex & rMutex;

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.