tsepez | d805eec | 2017-01-11 14:03:54 -0800 | [diff] [blame] | 1 | // 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 | |
| 14 | class CPDFSDK_PageView; |
| 15 | |
| 16 | class 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_ |