LibreOffice Module cppuhelper (master) 1
|
Specialized class for key type css::uno::Type, without explicit usage of STL symbols. More...
#include <interfacecontainer.h>
Public Types | |
typedef css::uno::Type | keyType |
Public Member Functions | |
OMultiTypeInterfaceContainerHelper (::osl::Mutex &rMutex) | |
Create a container of interface containers. More... | |
~OMultiTypeInterfaceContainerHelper () | |
Delete all containers. More... | |
css::uno::Sequence< css::uno::Type > SAL_CALL | getContainedTypes () const |
Return all id's under which at least one interface is added. More... | |
OInterfaceContainerHelper *SAL_CALL | getContainer (const css::uno::Type &rKey) const |
Return the container created under this key. More... | |
sal_Int32 SAL_CALL | addInterface (const css::uno::Type &rKey, const css::uno::Reference< css::uno::XInterface > &r) |
Inserts an element into the container with the specified key. More... | |
sal_Int32 SAL_CALL | removeInterface (const css::uno::Type &rKey, const css::uno::Reference< css::uno::XInterface > &rxIFace) |
Removes an element from the container with the specified key. More... | |
void SAL_CALL | disposeAndClear (const css::lang::EventObject &rEvt) |
Call disposing on all object in the container that support XEventListener. More... | |
void SAL_CALL | clear () |
Remove all elements of all containers. More... | |
Static Public Member Functions | |
static void *SAL_CALL | operator new (size_t nSize) |
static void SAL_CALL | operator delete (void *pMem) |
static void *SAL_CALL | operator new (size_t, void *pMem) |
static void SAL_CALL | operator delete (void *, void *) |
Private Member Functions | |
OMultiTypeInterfaceContainerHelper (const OMultiTypeInterfaceContainerHelper &) SAL_DELETED_FUNCTION | |
OMultiTypeInterfaceContainerHelper & | operator= (const OMultiTypeInterfaceContainerHelper &) SAL_DELETED_FUNCTION |
Private Attributes | |
void * | m_pMap |
::osl::Mutex & | rMutex |
Specialized class for key type css::uno::Type, without explicit usage of STL symbols.
Definition at line 515 of file interfacecontainer.h.
typedef css::uno::Type cppu::OMultiTypeInterfaceContainerHelper::keyType |
Definition at line 599 of file interfacecontainer.h.
cppu::OMultiTypeInterfaceContainerHelper::OMultiTypeInterfaceContainerHelper | ( | ::osl::Mutex & | rMutex | ) |
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 | ( | ) |
Delete all containers.
Definition at line 308 of file interfacecontainer.cxx.
|
private |
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.
rKey | the id of the container |
r | interface to be added; it is allowed, to insert null or the same interface more than once |
Definition at line 366 of file interfacecontainer.cxx.
References cppu::OInterfaceContainerHelper::addInterface(), and cppu::findType().
void cppu::OMultiTypeInterfaceContainerHelper::clear | ( | ) |
Remove all elements of all containers.
Does not delete the container.
Definition at line 428 of file interfacecontainer.cxx.
void cppu::OMultiTypeInterfaceContainerHelper::disposeAndClear | ( | const css::lang::EventObject & | rEvt | ) |
Call disposing on all object in the container that support XEventListener.
Then clear the container.
Definition at line 397 of file interfacecontainer.cxx.
References cppu::OInterfaceContainerHelper::disposeAndClear(), and i.
Return all id's under which at least one interface is added.
Definition at line 320 of file interfacecontainer.cxx.
References cppu::OInterfaceContainerHelper::getLength(), and i.
OInterfaceContainerHelper * cppu::OMultiTypeInterfaceContainerHelper::getContainer | ( | const css::uno::Type & | rKey | ) | const |
Return the container created under this key.
Definition at line 355 of file interfacecontainer.cxx.
References cppu::findType().
|
inlinestatic |
Definition at line 525 of file interfacecontainer.h.
|
inlinestatic |
Definition at line 521 of file interfacecontainer.h.
|
inlinestatic |
Definition at line 519 of file interfacecontainer.h.
|
inlinestatic |
Definition at line 523 of file interfacecontainer.h.
|
private |
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.
rKey | the id of the container |
rxIFace | interface to be removed |
Definition at line 381 of file interfacecontainer.cxx.
References cppu::findType().
|
private |
Definition at line 601 of file interfacecontainer.h.
|
private |
Definition at line 602 of file interfacecontainer.h.