LibreOffice Module comphelper (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
comphelper::OEnumerationByIndex Class Referencefinal

provides a com.sun.star.container::XEnumeration access based on an object implementing the com.sun.star.container::XNameAccess interface More...

#include <enumhelper.hxx>

Inheritance diagram for comphelper::OEnumerationByIndex:
[legend]
Collaboration diagram for comphelper::OEnumerationByIndex:
[legend]

Public Member Functions

 OEnumerationByIndex (const css::uno::Reference< css::container::XIndexAccess > &_rxAccess)
 
virtual ~OEnumerationByIndex () override
 
virtual sal_Bool SAL_CALL hasMoreElements () override
 
virtual css::uno::Any SAL_CALL nextElement () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &aEvent) override
 

Private Member Functions

COMPHELPER_DLLPRIVATE void impl_startDisposeListening ()
 
COMPHELPER_DLLPRIVATE void impl_stopDisposeListening ()
 

Private Attributes

sal_Int32 m_nPos
 
css::uno::Reference< css::container::XIndexAccess > m_xAccess
 
bool m_bListening
 
- Private Attributes inherited from comphelper::OEnumerationLock
::osl::Mutex m_aLock
 

Detailed Description

provides a com.sun.star.container::XEnumeration access based on an object implementing the com.sun.star.container::XNameAccess interface

Definition at line 72 of file enumhelper.hxx.

Constructor & Destructor Documentation

comphelper::OEnumerationByIndex::OEnumerationByIndex ( const css::uno::Reference< css::container::XIndexAccess > &  _rxAccess)

Definition at line 137 of file enumhelper.cxx.

References impl_startDisposeListening().

comphelper::OEnumerationByIndex::~OEnumerationByIndex ( )
overridevirtual

Definition at line 146 of file enumhelper.cxx.

References impl_stopDisposeListening().

Member Function Documentation

void SAL_CALL comphelper::OEnumerationByIndex::disposing ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 189 of file enumhelper.cxx.

References comphelper::OEnumerationLock::m_aLock, and m_xAccess.

sal_Bool SAL_CALL comphelper::OEnumerationByIndex::hasMoreElements ( )
overridevirtual
void comphelper::OEnumerationByIndex::impl_startDisposeListening ( )
private

Definition at line 198 of file enumhelper.cxx.

References comphelper::OEnumerationLock::m_aLock, m_bListening, and m_xAccess.

Referenced by OEnumerationByIndex().

void comphelper::OEnumerationByIndex::impl_stopDisposeListening ( )
private
css::uno::Any SAL_CALL comphelper::OEnumerationByIndex::nextElement ( )
overridevirtual

Member Data Documentation

bool comphelper::OEnumerationByIndex::m_bListening
private

Definition at line 78 of file enumhelper.hxx.

Referenced by impl_startDisposeListening(), and impl_stopDisposeListening().

sal_Int32 comphelper::OEnumerationByIndex::m_nPos
private

Definition at line 76 of file enumhelper.hxx.

Referenced by hasMoreElements(), and nextElement().

css::uno::Reference< css::container::XIndexAccess > comphelper::OEnumerationByIndex::m_xAccess
private

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