src
Main Page
Namespaces
Classes
Files
File List
File Members
codegen
go_destruct.cc
Go to the documentation of this file.
1
#include "
src/util/c99_stdint.h
"
2
#include <utility>
3
#include <vector>
4
5
#include "
src/codegen/go.h
"
6
7
namespace
re2c
8
{
9
10
Cases::~Cases
()
11
{
12
delete
[]
cases
;
13
}
14
15
Binary::~Binary
()
16
{
17
delete
cond
;
18
delete
thn
;
19
delete
els
;
20
}
21
22
Linear::~Linear
()
23
{
24
for
(uint32_t i = 0; i <
branches
.size (); ++i)
25
{
26
delete
branches
[i].first;
27
}
28
}
29
30
If::~If
()
31
{
32
switch
(
type
)
33
{
34
case
BINARY
:
35
delete
info
.binary;
36
break
;
37
case
LINEAR
:
38
delete
info
.linear;
39
break
;
40
}
41
}
42
43
SwitchIf::~SwitchIf
()
44
{
45
switch
(
type
)
46
{
47
case
SWITCH
:
48
delete
info
.cases;
49
break
;
50
case
IF
:
51
delete
info
.ifs;
52
break
;
53
}
54
}
55
56
GoBitmap::~GoBitmap
()
57
{
58
delete
hgo
;
59
delete
lgo
;
60
}
61
62
CpgotoTable::~CpgotoTable
()
63
{
64
delete
[]
table
;
65
}
66
67
Cpgoto::~Cpgoto
()
68
{
69
delete
hgo
;
70
delete
table
;
71
}
72
73
Dot::~Dot
()
74
{
75
delete
cases
;
76
}
77
78
Go::~Go
()
79
{
80
switch
(
type
)
81
{
82
case
EMPTY
:
83
break
;
84
case
SWITCH_IF
:
85
delete
info
.switchif;
86
break
;
87
case
BITMAP
:
88
delete
info
.bitmap;
89
break
;
90
case
CPGOTO
:
91
delete
info
.cpgoto;
92
break
;
93
case
DOT
:
94
delete
info
.dot;
95
break
;
96
}
97
}
98
99
}
// namespace re2c
re2c::Binary::thn
If * thn
Definition:
go.h:65
re2c::GoBitmap::hgo
SwitchIf * hgo
Definition:
go.h:124
re2c::Cpgoto::table
CpgotoTable * table
Definition:
go.h:152
re2c::Binary::~Binary
~Binary()
Definition:
go_destruct.cc:15
re2c::Go::type
enum re2c::Go::@3 type
go.h
re2c::CpgotoTable::~CpgotoTable
~CpgotoTable()
Definition:
go_destruct.cc:62
re2c::Linear::~Linear
~Linear()
Definition:
go_destruct.cc:22
re2c::Cpgoto::hgo
SwitchIf * hgo
Definition:
go.h:151
re2c::Go::~Go
~Go()
Definition:
go_destruct.cc:78
re2c::SwitchIf::type
enum re2c::SwitchIf::@1 type
re2c::Go::BITMAP
Definition:
go.h:180
re2c::If::~If
~If()
Definition:
go_destruct.cc:30
re2c::SwitchIf::SWITCH
Definition:
go.h:106
re2c::CpgotoTable::table
const State ** table
Definition:
go.h:137
re2c::Cases::cases
Case * cases
Definition:
go.h:44
re2c::Binary::cond
Cond * cond
Definition:
go.h:64
re2c::Go::CPGOTO
Definition:
go.h:181
re2c::GoBitmap::lgo
SwitchIf * lgo
Definition:
go.h:125
re2c::GoBitmap::~GoBitmap
~GoBitmap()
Definition:
go_destruct.cc:56
re2c::SwitchIf::IF
Definition:
go.h:107
re2c::Cpgoto::~Cpgoto
~Cpgoto()
Definition:
go_destruct.cc:67
re2c::If::LINEAR
Definition:
go.h:89
re2c::Linear::branches
std::vector< std::pair< const Cond *, const State * > > branches
Definition:
go.h:77
re2c::Go::SWITCH_IF
Definition:
go.h:179
re2c::Dot::cases
Cases * cases
Definition:
go.h:164
c99_stdint.h
re2c::If::BINARY
Definition:
go.h:88
re2c::If::info
union re2c::If::@0 info
re2c::Dot::~Dot
~Dot()
Definition:
go_destruct.cc:73
re2c::SwitchIf::info
union re2c::SwitchIf::@2 info
re2c::Binary::els
If * els
Definition:
go.h:66
re2c::Go::info
union re2c::Go::@4 info
re2c::SwitchIf::~SwitchIf
~SwitchIf()
Definition:
go_destruct.cc:43
re2c::Go::DOT
Definition:
go.h:182
re2c::If::type
enum re2c::If::type_t type
re2c
Definition:
bitmap.cc:10
re2c::Go::EMPTY
Definition:
go.h:178
re2c::Cases::~Cases
~Cases()
Definition:
go_destruct.cc:10
Generated by
1.8.10