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

provides a com.sun.star.container::XEnumeration for an outside set vector of Any's. More...

#include <enumhelper.hxx>

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

Public Member Functions

 OAnyEnumeration (const css::uno::Sequence< css::uno::Any > &lItems)
 
virtual ~OAnyEnumeration () override
 
virtual sal_Bool SAL_CALL hasMoreElements () override
 
virtual css::uno::Any SAL_CALL nextElement () override
 

Private Attributes

sal_Int32 m_nPos
 
css::uno::Sequence< css::uno::Any > m_lItems
 
std::mutex m_aLock
 

Detailed Description

provides a com.sun.star.container::XEnumeration for an outside set vector of Any's.

Definition at line 102 of file enumhelper.hxx.

Constructor & Destructor Documentation

◆ OAnyEnumeration()

comphelper::OAnyEnumeration::OAnyEnumeration ( const css::uno::Sequence< css::uno::Any > &  lItems)

Definition at line 245 of file enumhelper.cxx.

References m_nPos.

◆ ~OAnyEnumeration()

comphelper::OAnyEnumeration::~OAnyEnumeration ( )
overridevirtual

Definition at line 252 of file enumhelper.cxx.

Member Function Documentation

◆ hasMoreElements()

sal_Bool SAL_CALL comphelper::OAnyEnumeration::hasMoreElements ( )
overridevirtual

Definition at line 257 of file enumhelper.cxx.

References aLock, m_aLock, m_lItems, and m_nPos.

Referenced by nextElement().

◆ nextElement()

css::uno::Any SAL_CALL comphelper::OAnyEnumeration::nextElement ( )
overridevirtual

Definition at line 265 of file enumhelper.cxx.

References aLock, hasMoreElements(), m_aLock, m_lItems, m_nPos, and nPos.

Member Data Documentation

◆ m_aLock

std::mutex comphelper::OAnyEnumeration::m_aLock
private

Definition at line 107 of file enumhelper.hxx.

Referenced by hasMoreElements(), and nextElement().

◆ m_lItems

css::uno::Sequence< css::uno::Any > comphelper::OAnyEnumeration::m_lItems
private

Definition at line 106 of file enumhelper.hxx.

Referenced by hasMoreElements(), and nextElement().

◆ m_nPos

sal_Int32 comphelper::OAnyEnumeration::m_nPos
private

Definition at line 105 of file enumhelper.hxx.

Referenced by hasMoreElements(), and nextElement().


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