diff options
Diffstat (limited to 'dbaccess/source/core/api/RowSetCacheIterator.cxx')
-rw-r--r-- | dbaccess/source/core/api/RowSetCacheIterator.cxx | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/dbaccess/source/core/api/RowSetCacheIterator.cxx b/dbaccess/source/core/api/RowSetCacheIterator.cxx index 29d3f38278f4..9f634d4bef0e 100644 --- a/dbaccess/source/core/api/RowSetCacheIterator.cxx +++ b/dbaccess/source/core/api/RowSetCacheIterator.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -27,15 +28,9 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_dbaccess.hxx" -#ifndef DBACCESS_ROWSETCACHEITERATOR_HXX #include "RowSetCacheIterator.hxx" -#endif -#ifndef DBACCESS_CORE_API_ROWSETCACHE_HXX #include "RowSetCache.hxx" -#endif -#ifndef DBACCESS_CORE_API_ROWSETBASE_HXX #include "RowSetBase.hxx" -#endif #include <rtl/logfile.hxx> using namespace dbaccess; @@ -46,12 +41,12 @@ ORowSetCacheIterator::ORowSetCacheIterator(const ORowSetCacheIterator& _rRH) { RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "ORowSetCacheIterator::ORowSetCacheIterator" ); } -// ----------------------------------------------------------------------------- + ORowSetCacheIterator::operator ORowSetMatrix::iterator() { return m_aIter->second.aIterator; } -// ----------------------------------------------------------------------------- + ORowSetCacheIterator& ORowSetCacheIterator::operator =(const ORowSetCacheIterator& _rRH) { if(this == &_rRH) @@ -63,18 +58,18 @@ ORowSetCacheIterator& ORowSetCacheIterator::operator =(const ORowSetCacheIterato return *this; } -// ----------------------------------------------------------------------------- + ORowSetCacheIterator& ORowSetCacheIterator::operator =(const ORowSetMatrix::iterator& _rIter) { m_aIter->second.aIterator = _rIter; return *this; } -// ----------------------------------------------------------------------------- + ORowSetRow& ORowSetCacheIterator::operator *() { return *m_aIter->second.aIterator; } -// ----------------------------------------------------------------------------- + const ORowSetRow& ORowSetCacheIterator::operator *() const { if ( !m_pRowSet->isInsertRow() && m_aIter->second.aIterator == m_pCache->m_pMatrix->end() ) @@ -85,12 +80,12 @@ const ORowSetRow& ORowSetCacheIterator::operator *() const } return *m_aIter->second.aIterator; } -// ----------------------------------------------------------------------------- + ORowSetMatrix::iterator& ORowSetCacheIterator::operator ->() { return m_aIter->second.aIterator; } -// ----------------------------------------------------------------------------- + const ORowSetMatrix::iterator& ORowSetCacheIterator::operator ->() const { if ( !m_pRowSet->isInsertRow() && m_aIter->second.aIterator == m_pCache->m_pMatrix->end() ) @@ -101,33 +96,33 @@ const ORowSetMatrix::iterator& ORowSetCacheIterator::operator ->() const } return m_aIter->second.aIterator; } -// ----------------------------------------------------------------------------- + bool ORowSetCacheIterator::operator <=(const ORowSetMatrix::iterator& _rRH) const { return m_aIter->second.aIterator <= _rRH; } -// ----------------------------------------------------------------------------- + bool ORowSetCacheIterator::operator <(const ORowSetMatrix::iterator& _rRH) const { return m_aIter->second.aIterator < _rRH; } -// ----------------------------------------------------------------------------- + bool ORowSetCacheIterator::operator !=(const ORowSetMatrix::iterator& _rRH) const { return m_aIter->second.aIterator != _rRH; } -// ----------------------------------------------------------------------------- + bool ORowSetCacheIterator::operator ==(const ORowSetMatrix::iterator& _rRH) const { return m_aIter->second.aIterator == _rRH; } -// ----------------------------------------------------------------------------- + void ORowSetCacheIterator::setBookmark(const ::com::sun::star::uno::Any& _rBookmark) { RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "ORowSetCacheIterator::setBookmark" ); m_aIter->second.aBookmark = _rBookmark; } -// ----------------------------------------------------------------------------- + sal_Bool ORowSetCacheIterator::isNull() const { RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "ORowSetCacheIterator::isNull" ); @@ -144,9 +139,11 @@ sal_Bool ORowSetCacheIterator::isNull() const } return bRet; } -// ----------------------------------------------------------------------------- + ::osl::Mutex* ORowSetCacheIterator::getMutex() const { RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "ORowSetCacheIterator::getMutex" ); return m_pRowSet ? m_pRowSet->getMutex() : NULL; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |