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 
14 {
15  ansi_c_parse_tree.items.swap(items);
16 }
17 
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::items
itemst items
Definition: ansi_c_parse_tree.h:22
ansi_c_parse_treet
Definition: ansi_c_parse_tree.h:17
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
ansi_c_parse_treet::clear
void clear()
Definition: ansi_c_parse_tree.cpp:18