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

provides a access based on an object implementing the interface More...

#include <enumhelper.hxx>

Inheritance diagram for comphelper::OEnumerationByIndex:
Collaboration diagram for comphelper::OEnumerationByIndex:

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

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

Detailed Description

provides a access based on an object implementing the 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(), and m_nPos.

comphelper::OEnumerationByIndex::~OEnumerationByIndex ( )

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)

Definition at line 189 of file enumhelper.cxx.

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

sal_Bool SAL_CALL comphelper::OEnumerationByIndex::hasMoreElements ( )
void comphelper::OEnumerationByIndex::impl_startDisposeListening ( )
void comphelper::OEnumerationByIndex::impl_stopDisposeListening ( )
css::uno::Any SAL_CALL comphelper::OEnumerationByIndex::nextElement ( )

Member Data Documentation

bool comphelper::OEnumerationByIndex::m_bListening

Definition at line 78 of file enumhelper.hxx.

Referenced by impl_startDisposeListening(), and impl_stopDisposeListening().

sal_Int32 comphelper::OEnumerationByIndex::m_nPos

Definition at line 77 of file enumhelper.hxx.

Referenced by hasMoreElements(), and nextElement().

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

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