CBMC
ansi_c_parse_tree.cpp
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module:
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
9
#include "
ansi_c_parse_tree.h
"
10
11
#include <ostream>
12
13
void
ansi_c_parse_treet::swap
(
ansi_c_parse_treet
&ansi_c_parse_tree)
14
{
15
ansi_c_parse_tree.
items
.swap(
items
);
16
}
17
18
void
ansi_c_parse_treet::clear
()
19
{
20
items
.clear();
21
}
22
23
void
ansi_c_parse_treet::output
(std::ostream &out)
const
24
{
25
for
(
const
auto
&item :
items
)
26
{
27
item.output(out);
28
out <<
"\n"
;
29
}
30
}
ansi_c_parse_tree.h
ansi_c_parse_treet
Definition:
ansi_c_parse_tree.h:18
ansi_c_parse_treet::items
itemst items
Definition:
ansi_c_parse_tree.h:22
ansi_c_parse_treet::clear
void clear()
Definition:
ansi_c_parse_tree.cpp:18
ansi_c_parse_treet::swap
void swap(ansi_c_parse_treet &other)
Definition:
ansi_c_parse_tree.cpp:13
ansi_c_parse_treet::output
void output(std::ostream &out) const
Definition:
ansi_c_parse_tree.cpp:23
src
ansi-c
ansi_c_parse_tree.cpp
Generated by
1.9.1