LibreOffice Module comphelper (master)  1
Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
comphelper::EnumerableMap Class Reference
Inheritance diagram for comphelper::EnumerableMap:
[legend]
Collaboration diagram for comphelper::EnumerableMap:
[legend]

Static Public Member Functions

static OUString getImplementationName_static ()
 
static Sequence< OUString > getSupportedServiceNames_static ()
 
static Reference< XInterfaceCreate (const Reference< XComponentContext > &)
 

Protected Member Functions

 EnumerableMap ()
 
virtual ~EnumerableMap () override
 
virtual void SAL_CALL initialize (const Sequence< Any > &aArguments) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createKeyEnumeration (sal_Bool Isolated) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createValueEnumeration (sal_Bool Isolated) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createElementEnumeration (sal_Bool Isolated) override
 
virtual Type SAL_CALL getKeyType () override
 
virtual Type SAL_CALL getValueType () override
 
virtual void SAL_CALL clear () override
 
virtual sal_Bool SAL_CALL containsKey (const Any &_key) override
 
virtual sal_Bool SAL_CALL containsValue (const Any &_value) override
 
virtual Any SAL_CALL get (const Any &_key) override
 
virtual Any SAL_CALL put (const Any &_key, const Any &_value) override
 
virtual Any SAL_CALL remove (const Any &_key) override
 
virtual Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
- Protected Member Functions inherited from comphelper::ComponentBase
 ComponentBase (::cppu::OBroadcastHelper &_rBHelper)
 creates a ComponentBase instance More...
 
 ComponentBase (::cppu::OBroadcastHelper &_rBHelper, NoInitializationNeeded)
 creates a ComponentBase instance More...
 
 ~ComponentBase () COVERITY_NOEXCEPT_FALSE
 
void setInitialized ()
 marks the instance as initialized More...
 
::cppu::OBroadcastHelpergetBroadcastHelper ()
 retrieves the component's broadcast helper More...
 
::osl::Mutex & getMutex ()
 retrieves the component's mutex More...
 
bool impl_isDisposed () const
 determines whether the instance is already disposed More...
 
bool impl_isInitialized_nothrow () const
 determines whether the component is already initialized More...
 

Private Member Functions

void impl_initValues_throw (const Sequence< Pair< Any, Any > > &_initialValues)
 
void impl_checkValue_throw (const Any &_value) const
 throws an IllegalTypeException if the given value is not compatible with our ValueType More...
 
void impl_checkKey_throw (const Any &_key) const
 
void impl_checkNaN_throw (const Any &_keyOrValue, const Type &_keyOrValueType) const
 
void impl_checkMutable_throw () const
 

Private Attributes

::osl::Mutex m_aMutex
 
MapData m_aData
 

Additional Inherited Members

- Public Member Functions inherited from cppu::WeakAggComponentImplHelper3< class, class, class >
 WeakAggComponentImplHelper3 (::osl::Mutex &rMutex)
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
- Public Member Functions inherited from comphelper::ComponentBase
::osl::Mutex & getMutex (GuardAccess)
 retrieves the component's mutex More...
 
void checkDisposed (GuardAccess) const
 checks whether the component is already disposed, throws a DisposedException if so. More...
 
void checkInitialized (GuardAccess) const
 checks whether the component is already initialized, throws a NotInitializedException if not. More...
 
- Static Protected Member Functions inherited from comphelper::ComponentBase
static css::uno::Reference< css::uno::XInterface > getComponent ()
 returns the context to be used when throwing exceptions More...
 

Detailed Description

Definition at line 144 of file enumerablemap.cxx.

Constructor & Destructor Documentation

comphelper::EnumerableMap::EnumerableMap ( )
protected

Definition at line 296 of file enumerablemap.cxx.

References m_aMutex.

Referenced by Create().

comphelper::EnumerableMap::~EnumerableMap ( )
overrideprotectedvirtual

Member Function Documentation

void SAL_CALL comphelper::EnumerableMap::clear ( )
overrideprotectedvirtual
sal_Bool SAL_CALL comphelper::EnumerableMap::containsKey ( const Any &  _key)
overrideprotectedvirtual

Definition at line 536 of file enumerablemap.cxx.

References impl_checkKey_throw(), m_aData, and comphelper::MapData::m_pValues.

sal_Bool SAL_CALL comphelper::EnumerableMap::containsValue ( const Any &  _value)
overrideprotectedvirtual
Reference< XInterface > comphelper::EnumerableMap::Create ( const Reference< XComponentContext > &  )
static

Definition at line 662 of file enumerablemap.cxx.

References EnumerableMap().

Reference< XEnumeration > SAL_CALL comphelper::EnumerableMap::createElementEnumeration ( sal_Bool  Isolated)
overrideprotectedvirtual
Reference< XEnumeration > SAL_CALL comphelper::EnumerableMap::createKeyEnumeration ( sal_Bool  Isolated)
overrideprotectedvirtual
Reference< XEnumeration > SAL_CALL comphelper::EnumerableMap::createValueEnumeration ( sal_Bool  Isolated)
overrideprotectedvirtual
Any SAL_CALL comphelper::EnumerableMap::get ( const Any &  _key)
overrideprotectedvirtual
Type SAL_CALL comphelper::EnumerableMap::getElementType ( )
overrideprotectedvirtual

Definition at line 619 of file enumerablemap.cxx.

References get().

OUString SAL_CALL comphelper::EnumerableMap::getImplementationName ( )
overrideprotectedvirtual

Definition at line 632 of file enumerablemap.cxx.

References getImplementationName_static().

OUString comphelper::EnumerableMap::getImplementationName_static ( )
static

Definition at line 649 of file enumerablemap.cxx.

Referenced by getImplementationName().

Type SAL_CALL comphelper::EnumerableMap::getKeyType ( )
overrideprotectedvirtual

Definition at line 511 of file enumerablemap.cxx.

References m_aData, and comphelper::MapData::m_aKeyType.

Sequence< OUString > SAL_CALL comphelper::EnumerableMap::getSupportedServiceNames ( )
overrideprotectedvirtual

Definition at line 643 of file enumerablemap.cxx.

References getSupportedServiceNames_static().

Sequence< OUString > comphelper::EnumerableMap::getSupportedServiceNames_static ( )
static

Definition at line 655 of file enumerablemap.cxx.

Referenced by getSupportedServiceNames().

Type SAL_CALL comphelper::EnumerableMap::getValueType ( )
overrideprotectedvirtual

Definition at line 518 of file enumerablemap.cxx.

References m_aData, and comphelper::MapData::m_aValueType.

sal_Bool SAL_CALL comphelper::EnumerableMap::hasElements ( )
overrideprotectedvirtual

Definition at line 625 of file enumerablemap.cxx.

References m_aData, and comphelper::MapData::m_pValues.

void comphelper::EnumerableMap::impl_checkKey_throw ( const Any &  _key) const
private

Definition at line 470 of file enumerablemap.cxx.

References impl_checkNaN_throw(), m_aData, and comphelper::MapData::m_aKeyType.

Referenced by containsKey(), get(), put(), and remove().

void comphelper::EnumerableMap::impl_checkMutable_throw ( ) const
private

Definition at line 481 of file enumerablemap.cxx.

References m_aData, and comphelper::MapData::m_bMutable.

Referenced by clear(), put(), and remove().

void comphelper::EnumerableMap::impl_checkNaN_throw ( const Any &  _keyOrValue,
const Type _keyOrValueType 
) const
private

Definition at line 452 of file enumerablemap.cxx.

Referenced by impl_checkKey_throw(), and impl_checkValue_throw().

void comphelper::EnumerableMap::impl_checkValue_throw ( const Any &  _value) const
private

throws an IllegalTypeException if the given value is not compatible with our ValueType

Definition at line 377 of file enumerablemap.cxx.

References impl_checkNaN_throw(), m_aData, comphelper::MapData::m_aValueType, and typelib_typedescription_equals().

Referenced by containsValue(), impl_initValues_throw(), and put().

void comphelper::EnumerableMap::impl_initValues_throw ( const Sequence< Pair< Any, Any > > &  _initialValues)
private

Definition at line 361 of file enumerablemap.cxx.

References impl_checkValue_throw(), m_aData, and comphelper::MapData::m_pValues.

Referenced by initialize().

void SAL_CALL comphelper::EnumerableMap::initialize ( const Sequence< Any > &  aArguments)
overrideprotectedvirtual
Any SAL_CALL comphelper::EnumerableMap::put ( const Any &  _key,
const Any &  _value 
)
overrideprotectedvirtual
Any SAL_CALL comphelper::EnumerableMap::remove ( const Any &  _key)
overrideprotectedvirtual
sal_Bool SAL_CALL comphelper::EnumerableMap::supportsService ( const OUString &  ServiceName)
overrideprotectedvirtual

Definition at line 637 of file enumerablemap.cxx.

References cppu::supportsService().

Member Data Documentation

MapData comphelper::EnumerableMap::m_aData
private
::osl::Mutex comphelper::EnumerableMap::m_aMutex
private

Definition at line 193 of file enumerablemap.cxx.


The documentation for this class was generated from the following file: