Specialized class for key type com::sun::star::uno::Type, without explicit usage of STL symbols.
More...
#include <interfacecontainer.h>
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.
- Parameters
-
rMutex | the mutex to protect multi thread access. The lifetime must be longer than the lifetime of this object. |
cppu::OMultiTypeInterfaceContainerHelper::~OMultiTypeInterfaceContainerHelper |
( |
| ) |
|
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.
- 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 |
- Returns
- the new count of elements in the container
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.
Return all id's under which at least one interface is added.
Return the container created under this key.
- Returns
- the container created under this key. If the container was not created, null was returned.
static void cppu::OMultiTypeInterfaceContainerHelper::operator delete |
( |
void * |
pMem | ) |
|
throw | ( | |
| ) | | |
|
inlinestatic |
static void cppu::OMultiTypeInterfaceContainerHelper::operator delete |
( |
void * |
, |
|
|
void * |
|
|
) |
| |
throw | ( | |
| ) | | |
|
inlinestatic |
static void* cppu::OMultiTypeInterfaceContainerHelper::operator new |
( |
size_t |
nSize | ) |
|
throw | ( | |
| ) | | |
|
inlinestatic |
static void* cppu::OMultiTypeInterfaceContainerHelper::operator new |
( |
size_t |
, |
|
|
void * |
pMem |
|
) |
| |
throw | ( | |
| ) | | |
|
inlinestatic |
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 |
- Returns
- the new count of elements in the container
The documentation for this class was generated from the following file: