LibreOffice Module dbaccess (master) 1
RowSetCacheIterator.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#pragma once
20
21#include <sal/config.h>
22
23#include <map>
24#include <utility>
25
26#include "RowSetRow.hxx"
27
28namespace dbaccess
29{
30 class ORowSetBase;
32 {
33 ORowSetMatrix::iterator aIterator;
35 };
36
37 typedef std::map<sal_Int32, ORowSetCacheIterator_Helper> ORowSetCacheMap;
38
39 class ORowSetCache;
41 {
42 friend class ORowSetCache;
43 ORowSetCacheMap::iterator m_aIter;
46
47 ORowSetCacheIterator(ORowSetCacheMap::iterator _aIter, ORowSetCache* _pCache,ORowSetBase* _pRowSet)
48 : m_aIter(std::move(_aIter))
49 ,m_pCache(_pCache)
50 ,m_pRowSet(_pRowSet)
51 {
52 }
53 public:
57
58 bool isNull() const;
59 ORowSetCacheIterator& operator =(const ORowSetMatrix::iterator&);
60 operator ORowSetMatrix::iterator const &();
61
63
64 ORowSetMatrix::iterator& operator ->();
65
66 bool operator <(const ORowSetMatrix::iterator& _rRH) const;
67 bool operator !=(const ORowSetMatrix::iterator& _rRH) const;
68
69 const ORowSetCacheMap::iterator& getIter() const { return m_aIter; }
70 };
71}
72
73/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ORowSetCacheMap::iterator m_aIter
ORowSetCacheIterator(ORowSetCacheMap::iterator _aIter, ORowSetCache *_pCache, ORowSetBase *_pRowSet)
ORowSetMatrix::iterator & operator->()
bool operator!=(const ORowSetMatrix::iterator &_rRH) const
ORowSetCacheIterator & operator=(const ORowSetCacheIterator &)
const ORowSetCacheMap::iterator & getIter() const
bool operator<(const ORowSetMatrix::iterator &_rRH) const
std::map< sal_Int32, ORowSetCacheIterator_Helper > ORowSetCacheMap