Overview | Namespace | Class | Index | Help |
PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
PRIVATE MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
:: 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;
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.