|
LibreOffice
LibreOffice 4.4 SDK C/C++ API Reference
|
Specialized class for key type sal_Int32, without explicit usage of STL symbols. More...
#include <propshlp.hxx>
Public Types | |
| typedef sal_Int32 | keyType |
Public Member Functions | |
| OMultiTypeInterfaceContainerHelperInt32 (::osl::Mutex &rMutex) | |
| Create a container of interface containers. More... | |
| ~OMultiTypeInterfaceContainerHelperInt32 () | |
| Delete all containers. More... | |
| ::com::sun::star::uno::Sequence< sal_Int32 > | getContainedTypes () const |
| Return all id's under which at least one interface is added. More... | |
| OInterfaceContainerHelper * | getContainer (const sal_Int32 &rKey) const |
| Return the container created under this key. More... | |
| sal_Int32 | addInterface (const sal_Int32 &rKey, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &r) |
| Insert an element in the container specified with the key. More... | |
| sal_Int32 | removeInterface (const sal_Int32 &rKey, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &rxIFace) |
| Remove an element from the container specified with the key. More... | |
| void | disposeAndClear (const ::com::sun::star::lang::EventObject &rEvt) |
| Call disposing on all objects in the container that support XEventListener. More... | |
| void | clear () |
| Remove all elements of all containers. More... | |
Static Public Member Functions | |
| static void * | operator new (size_t nSize) |
| static void | operator delete (void *pMem) |
| static void * | operator new (size_t, void *pMem) |
| static void | operator delete (void *, void *) |
Specialized class for key type sal_Int32, without explicit usage of STL symbols.
| typedef sal_Int32 cppu::OMultiTypeInterfaceContainerHelperInt32::keyType |
| cppu::OMultiTypeInterfaceContainerHelperInt32::OMultiTypeInterfaceContainerHelperInt32 | ( | ::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::OMultiTypeInterfaceContainerHelperInt32::~OMultiTypeInterfaceContainerHelperInt32 | ( | ) |
Delete all containers.
| sal_Int32 cppu::OMultiTypeInterfaceContainerHelperInt32::addInterface | ( | const sal_Int32 & | rKey, |
| const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & | r | ||
| ) |
Insert an element in the container specified with the key.
The position is not specified.
| rKey | the id of the container. |
| r | the added interface. It is allowed to insert null or the same pointer more than once. |
| void cppu::OMultiTypeInterfaceContainerHelperInt32::clear | ( | ) |
Remove all elements of all containers.
Does not delete the container.
| void cppu::OMultiTypeInterfaceContainerHelperInt32::disposeAndClear | ( | const ::com::sun::star::lang::EventObject & | rEvt | ) |
Call disposing on all objects in the container that support XEventListener.
Then clear the container.
| ::com::sun::star::uno::Sequence< sal_Int32 > cppu::OMultiTypeInterfaceContainerHelperInt32::getContainedTypes | ( | ) | const |
Return all id's under which at least one interface is added.
| OInterfaceContainerHelper* cppu::OMultiTypeInterfaceContainerHelperInt32::getContainer | ( | const sal_Int32 & | rKey | ) | const |
Return the container created under this key.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| sal_Int32 cppu::OMultiTypeInterfaceContainerHelperInt32::removeInterface | ( | const sal_Int32 & | rKey, |
| const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & | rxIFace | ||
| ) |
Remove an element from the container specified with the key.
It uses the equal definition of uno objects to remove the interfaces.
| rKey | the id of the container. |
| rxIFace | the removed interface. |
1.8.10