]>
Commit | Line | Data |
---|---|---|
e5250216 | 1 | /* Iterator of varobj. |
3666a048 | 2 | Copyright (C) 2013-2021 Free Software Foundation, Inc. |
e5250216 YQ |
3 | |
4 | This program is free software; you can redistribute it and/or modify | |
5 | it under the terms of the GNU General Public License as published by | |
6 | the Free Software Foundation; either version 3 of the License, or | |
7 | (at your option) any later version. | |
8 | ||
9 | This program is distributed in the hope that it will be useful, | |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | GNU General Public License for more details. | |
13 | ||
14 | You should have received a copy of the GNU General Public License | |
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
16 | ||
1a5c2598 TT |
17 | #ifndef VAROBJ_ITER_H |
18 | #define VAROBJ_ITER_H | |
19 | ||
827f100c YQ |
20 | /* A node or item of varobj, composed of the name and the value. */ |
21 | ||
ad523d01 | 22 | struct varobj_item |
827f100c YQ |
23 | { |
24 | /* Name of this item. */ | |
2f408ecb | 25 | std::string name; |
e5250216 | 26 | |
827f100c | 27 | /* Value of this item. */ |
11106495 | 28 | value_ref_ptr value; |
ad523d01 | 29 | }; |
827f100c | 30 | |
e5250216 YQ |
31 | /* A dynamic varobj iterator "class". */ |
32 | ||
33 | struct varobj_iter | |
34 | { | |
54746ce3 | 35 | public: |
e5250216 | 36 | |
54746ce3 | 37 | virtual ~varobj_iter () = default; |
e5250216 | 38 | |
60ee72f6 | 39 | virtual std::unique_ptr<varobj_item> next () = 0; |
e5250216 YQ |
40 | }; |
41 | ||
1a5c2598 | 42 | #endif /* VAROBJ_ITER_H */ |