Specialized class for key type css::uno::Type, without explicit usage of STL symbols.
More...
#include <interfacecontainer.h>
Specialized class for key type css::uno::Type, without explicit usage of STL symbols.
◆ keyType
◆ OMultiTypeInterfaceContainerHelper()
cppu::OMultiTypeInterfaceContainerHelper::OMultiTypeInterfaceContainerHelper |
( |
::osl::Mutex & |
rMutex | ) |
|
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()
cppu::OMultiTypeInterfaceContainerHelper::~OMultiTypeInterfaceContainerHelper |
( |
| ) |
|
◆ addInterface()
sal_Int32 cppu::OMultiTypeInterfaceContainerHelper::addInterface |
( |
const css::uno::Type & |
rKey, |
|
|
const css::uno::Reference< css::uno::XInterface > & |
r |
|
) |
| |
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
◆ clear()
void cppu::OMultiTypeInterfaceContainerHelper::clear |
( |
| ) |
|
Remove all elements of all containers.
Does not delete the container.
◆ disposeAndClear()
void cppu::OMultiTypeInterfaceContainerHelper::disposeAndClear |
( |
const css::lang::EventObject & |
rEvt | ) |
|
Call disposing on all object in the container that support XEventListener.
Then clear the container.
◆ getContainedTypes()
css::uno::Sequence< css::uno::Type > cppu::OMultiTypeInterfaceContainerHelper::getContainedTypes |
( |
| ) |
const |
Return all id's under which at least one interface is added.
◆ getContainer()
Return the container created under this key.
- Returns
- the container created under this key. If the container was not created, null was returned.
◆ operator delete() [1/2]
static void cppu::OMultiTypeInterfaceContainerHelper::operator delete |
( |
void * |
pMem | ) |
|
|
inlinestatic |
◆ operator delete() [2/2]
static void cppu::OMultiTypeInterfaceContainerHelper::operator delete |
( |
void * |
, |
|
|
void * |
|
|
) |
| |
|
inlinestatic |
◆ operator new() [1/2]
static void* cppu::OMultiTypeInterfaceContainerHelper::operator new |
( |
size_t |
nSize | ) |
|
|
inlinestatic |
◆ operator new() [2/2]
static void* cppu::OMultiTypeInterfaceContainerHelper::operator new |
( |
size_t |
, |
|
|
void * |
pMem |
|
) |
| |
|
inlinestatic |
◆ removeInterface()
sal_Int32 cppu::OMultiTypeInterfaceContainerHelper::removeInterface |
( |
const css::uno::Type & |
rKey, |
|
|
const css::uno::Reference< css::uno::XInterface > & |
rxIFace |
|
) |
| |
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: