blob: 70edfd10aec4140d832872394ffedbf634b68a9d [file] [log] [blame]
tsepezd805eec2017-01-11 14:03:54 -08001// Copyright 2017 PDFium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef FPDFSDK_CPDFSDK_ANNOTITERATION_H_
8#define FPDFSDK_CPDFSDK_ANNOTITERATION_H_
9
10#include <vector>
11
12#include "fpdfsdk/cpdfsdk_annot.h"
13
14class CPDFSDK_PageView;
15
16class CPDFSDK_AnnotIteration {
17 public:
18 using const_iterator =
19 std::vector<CPDFSDK_Annot::ObservedPtr>::const_iterator;
20
21 CPDFSDK_AnnotIteration(CPDFSDK_PageView* pPageView, bool bReverse);
22 ~CPDFSDK_AnnotIteration();
23
24 const_iterator begin() const { return m_List.begin(); }
25 const_iterator end() const { return m_List.end(); }
26
27 private:
28 std::vector<CPDFSDK_Annot::ObservedPtr> m_List;
29};
30
31#endif // FPDFSDK_CPDFSDK_ANNOTITERATION_H_