1
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
3
* Version: MPL 2.0 / LGPLv2.1+
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/.
9
* Major Contributor(s):
3
10
* Copyright (C) 2005 William Lachance (wrlach@gmail.com)
4
11
* Copyright (C) 2005 Net Integration Technologies, Inc. (http://www.net-itech.com)
5
12
* Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Library General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Library General Public License for more details.
17
* You should have received a copy of the GNU Library General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
14
* For minor contributions see the git repository.
16
* Alternatively, the contents of this file may be used under the terms
17
* of the GNU Lesser General Public License Version 2.1 or later
18
* (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19
* applicable instead of those above.
21
21
* For further information visit http://libwpd.sourceforge.net
53
53
class WPXPropertyListVectorIterImpl
56
WPXPropertyListVectorIterImpl(std::vector<WPXPropertyList> * vect) :
56
WPXPropertyListVectorIterImpl(std::vector<WPXPropertyList> *vect) :
58
58
m_iter(m_vector->begin()),
59
59
m_imaginaryFirst(false) {}
68
68
if (!m_imaginaryFirst && m_iter != m_vector->end())
70
70
m_imaginaryFirst = false;
71
if (m_iter != m_vector->end())
71
return (m_iter != m_vector->end());
77
if (m_iter == m_vector->end())
75
return (m_iter == m_vector->end());
81
77
const WPXPropertyList &operator()() const
87
83
WPXPropertyListVectorIterImpl(const WPXPropertyListVectorIterImpl &);
88
84
WPXPropertyListVectorIterImpl &operator=(const WPXPropertyListVectorIterImpl &);
89
std::vector<WPXPropertyList> * m_vector;
85
std::vector<WPXPropertyList> *m_vector;
90
86
std::vector<WPXPropertyList>::iterator m_iter;
91
87
bool m_imaginaryFirst;