GDB (xrefs)
Loading...
Searching...
No Matches
gdb
varobj-iter.h
Go to the documentation of this file.
1
/* Iterator of varobj.
2
Copyright (C) 2013-2023 Free Software Foundation, Inc.
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
17
#ifndef VAROBJ_ITER_H
18
#define VAROBJ_ITER_H
19
20
/* A node or item of varobj, composed of the name and the value. */
21
22
struct
varobj_item
23
{
24
/* Name of this item. */
25
std::string
name
;
26
27
/* Value of this item. */
28
value_ref_ptr
value
;
29
};
30
31
/* A dynamic varobj iterator "class". */
32
33
struct
varobj_iter
34
{
35
public
:
36
37
virtual
~varobj_iter
() =
default
;
38
39
virtual
std::unique_ptr<varobj_item>
next
() = 0;
40
};
41
42
#endif
/* VAROBJ_ITER_H */
varobj_item
Definition
varobj-iter.h:23
varobj_item::value
value_ref_ptr value
Definition
varobj-iter.h:28
varobj_item::name
std::string name
Definition
varobj-iter.h:25
varobj_iter
Definition
varobj-iter.h:34
varobj_iter::~varobj_iter
virtual ~varobj_iter()=default
varobj_iter::next
virtual std::unique_ptr< varobj_item > next()=0
value_ref_ptr
gdb::ref_ptr< struct value, value_ref_policy > value_ref_ptr
Definition
value.h:124
Generated by
1.10.0