UDK 3.2.7 C/C++ API Reference
|
Specialized class for key type com::sun::star::uno::Type, without explicit usage of STL symbols. More...
#include <interfacecontainer.h>
Public Types | |
typedef ::com::sun::star::uno::Type | keyType |
Public Member Functions | |
OMultiTypeInterfaceContainerHelper (::osl::Mutex &rMutex) throw () | |
Create a container of interface containers. | |
~OMultiTypeInterfaceContainerHelper () throw () | |
Delete all containers. | |
::com::sun::star::uno::Sequence < ::com::sun::star::uno::Type > | getContainedTypes () const throw () |
Return all id's under which at least one interface is added. | |
OInterfaceContainerHelper * | getContainer (const ::com::sun::star::uno::Type &rKey) const throw () |
Return the container created under this key. | |
sal_Int32 | addInterface (const ::com::sun::star::uno::Type &rKey, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &r) throw () |
Inserts an element into the container with the specified key. | |
sal_Int32 | removeInterface (const ::com::sun::star::uno::Type &rKey, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &rxIFace) throw () |
Removes an element from the container with the specified key. | |
void | disposeAndClear (const ::com::sun::star::lang::EventObject &rEvt) throw () |
Call disposing on all object in the container that support XEventListener. | |
void | clear () throw () |
Remove all elements of all containers. | |
Static Public Member Functions | |
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 () |
Specialized class for key type com::sun::star::uno::Type, without explicit usage of STL symbols.
cppu::OMultiTypeInterfaceContainerHelper::OMultiTypeInterfaceContainerHelper | ( | ::osl::Mutex & | rMutex | ) | throw () |
Create a container of interface containers.
rMutex | the mutex to protect multi thread access. The lifetime must be longer than the lifetime of this object. |
cppu::OMultiTypeInterfaceContainerHelper::~OMultiTypeInterfaceContainerHelper | ( | ) | throw () |
Delete all containers.
sal_Int32 cppu::OMultiTypeInterfaceContainerHelper::addInterface | ( | const ::com::sun::star::uno::Type & | 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.
rKey | the id of the container |
r | interface to be added; it is allowed, to insert null or the same interface more than once |
void cppu::OMultiTypeInterfaceContainerHelper::clear | ( | ) | throw () |
Remove all elements of all containers.
Does not delete the container.
void cppu::OMultiTypeInterfaceContainerHelper::disposeAndClear | ( | const ::com::sun::star::lang::EventObject & | rEvt | ) | throw () |
Call disposing on all object in the container that support XEventListener.
Than clear the container.
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > cppu::OMultiTypeInterfaceContainerHelper::getContainedTypes | ( | ) | const throw () |
Return all id's under which at least one interface is added.
OInterfaceContainerHelper* cppu::OMultiTypeInterfaceContainerHelper::getContainer | ( | const ::com::sun::star::uno::Type & | rKey | ) | const throw () |
Return the container created under this key.
static void cppu::OMultiTypeInterfaceContainerHelper::operator delete | ( | void * | pMem | ) | throw () [inline, static] |
static void cppu::OMultiTypeInterfaceContainerHelper::operator delete | ( | void * | , |
void * | |||
) | throw () [inline, static] |
static void* cppu::OMultiTypeInterfaceContainerHelper::operator new | ( | size_t | nSize | ) | throw () [inline, static] |
static void* cppu::OMultiTypeInterfaceContainerHelper::operator new | ( | size_t | , |
void * | pMem | ||
) | throw () [inline, static] |
sal_Int32 cppu::OMultiTypeInterfaceContainerHelper::removeInterface | ( | const ::com::sun::star::uno::Type & | 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.
rKey | the id of the container |
rxIFace | interface to be removed |