Automatic date update in version.in
[binutils-gdb.git] / gdb / varobj-iter.h
blob4bbf386e9dc4ee0af7fc3f95a9242fafe4792e03
1 /* Iterator of varobj.
2 Copyright (C) 2013-2022 Free Software Foundation, Inc.
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.
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.
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/>. */
17 #ifndef VAROBJ_ITER_H
18 #define VAROBJ_ITER_H
20 /* A node or item of varobj, composed of the name and the value. */
22 struct varobj_item
24 /* Name of this item. */
25 std::string name;
27 /* Value of this item. */
28 value_ref_ptr value;
31 /* A dynamic varobj iterator "class". */
33 struct varobj_iter
35 public:
37 virtual ~varobj_iter () = default;
39 virtual std::unique_ptr<varobj_item> next () = 0;
42 #endif /* VAROBJ_ITER_H */