UDK 3.2.7 C/C++ API Reference
Public Types | Public Member Functions | Static Public Member Functions
cppu::OMultiTypeInterfaceContainerHelperInt32 Class Reference

Specialized class for key type sal_Int32, without explicit usage of STL symbols. More...

#include <propshlp.hxx>

List of all members.

Public Types

typedef sal_Int32 keyType

Public Member Functions

 OMultiTypeInterfaceContainerHelperInt32 (::osl::Mutex &rMutex) throw ()
 Create a container of interface containers.
 ~OMultiTypeInterfaceContainerHelperInt32 () throw ()
 Delete all containers.
::com::sun::star::uno::Sequence
< sal_Int32 > 
getContainedTypes () const throw ()
 Return all id's under which at least one interface is added.
OInterfaceContainerHelpergetContainer (const sal_Int32 &rKey) const throw ()
 Return the container created under this key.
sal_Int32 addInterface (const sal_Int32 &rKey, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &r) throw ()
 Insert an element in the container specified with the key.
sal_Int32 removeInterface (const sal_Int32 &rKey, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &rxIFace) throw ()
 Remove an element from the container specified with the key.
void disposeAndClear (const ::com::sun::star::lang::EventObject &rEvt) throw ()
 Call disposing on all objects 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 ()

Detailed Description

Specialized class for key type sal_Int32, without explicit usage of STL symbols.


Member Typedef Documentation


Constructor & Destructor Documentation

cppu::OMultiTypeInterfaceContainerHelperInt32::OMultiTypeInterfaceContainerHelperInt32 ( ::osl::Mutex rMutex) throw ()

Create a container of interface containers.

Parameters:
rMutexthe mutex to protect multi thread access. The lifetime must be longer than the lifetime of this object.
cppu::OMultiTypeInterfaceContainerHelperInt32::~OMultiTypeInterfaceContainerHelperInt32 ( ) throw ()

Delete all containers.


Member Function Documentation

sal_Int32 cppu::OMultiTypeInterfaceContainerHelperInt32::addInterface ( const sal_Int32 &  rKey,
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &  r 
) throw ()

Insert an element in the container specified with the key.

The position is not specified.

Parameters:
rKeythe id of the container.
rthe added interface. It is allowed to insert null or the same pointer more than once.
Returns:
the new count of elements in the container.
void cppu::OMultiTypeInterfaceContainerHelperInt32::clear ( ) throw ()

Remove all elements of all containers.

Does not delete the container.

void cppu::OMultiTypeInterfaceContainerHelperInt32::disposeAndClear ( const ::com::sun::star::lang::EventObject &  rEvt) throw ()

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 throw ()

Return all id's under which at least one interface is added.

OInterfaceContainerHelper* cppu::OMultiTypeInterfaceContainerHelperInt32::getContainer ( const sal_Int32 &  rKey) const throw ()

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::OMultiTypeInterfaceContainerHelperInt32::operator delete ( void *  pMem) throw () [inline, static]
static void cppu::OMultiTypeInterfaceContainerHelperInt32::operator delete ( void *  ,
void *   
) throw () [inline, static]
static void* cppu::OMultiTypeInterfaceContainerHelperInt32::operator new ( size_t  nSize) throw () [inline, static]
static void* cppu::OMultiTypeInterfaceContainerHelperInt32::operator new ( size_t  ,
void *  pMem 
) throw () [inline, static]
sal_Int32 cppu::OMultiTypeInterfaceContainerHelperInt32::removeInterface ( const sal_Int32 &  rKey,
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &  rxIFace 
) throw ()

Remove an element from the container specified with the key.

It uses the equal definition of uno objects to remove the interfaces.

Parameters:
rKeythe id of the container.
rxIFacethe removed interface.
Returns:
the new count of elements in the container.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines