CBMC
cpp_using.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: C++ Language Type Checking
4
5
Author: Daniel Kroening, kroening@cs.cmu.edu
6
7
\*******************************************************************/
8
11
12
#ifndef CPROVER_CPP_CPP_USING_H
13
#define CPROVER_CPP_CPP_USING_H
14
15
#include "
cpp_name.h
"
16
17
class
cpp_usingt
:
public
irept
18
{
19
public
:
20
cpp_usingt
():
irept
(ID_cpp_using)
21
{
22
}
23
24
cpp_namet
&
name
()
25
{
26
return
(
cpp_namet
&)
add
(ID_name);
27
}
28
29
const
cpp_namet
&
name
()
const
30
{
31
return
(
cpp_namet
&)
find
(ID_name);
32
}
33
34
bool
get_namespace
()
const
35
{
36
return
get_bool
(ID_namespace);
37
}
38
39
void
set_namespace
(
bool
value)
40
{
41
set
(ID_namespace, value);
42
}
43
};
44
45
#endif // CPROVER_CPP_CPP_USING_H
irept::find
const irept & find(const irep_idt &name) const
Definition:
irep.cpp:106
cpp_usingt::name
const cpp_namet & name() const
Definition:
cpp_using.h:29
cpp_usingt::set_namespace
void set_namespace(bool value)
Definition:
cpp_using.h:39
cpp_usingt
Definition:
cpp_using.h:17
irept::set
void set(const irep_idt &name, const irep_idt &value)
Definition:
irep.h:420
cpp_usingt::get_namespace
bool get_namespace() const
Definition:
cpp_using.h:34
irept::add
irept & add(const irep_idt &name)
Definition:
irep.cpp:116
irept
There are a large number of kinds of tree structured or tree-like data in CPROVER.
Definition:
irep.h:359
cpp_namet
Definition:
cpp_name.h:16
cpp_usingt::name
cpp_namet & name()
Definition:
cpp_using.h:24
cpp_usingt::cpp_usingt
cpp_usingt()
Definition:
cpp_using.h:20
irept::get_bool
bool get_bool(const irep_idt &name) const
Definition:
irep.cpp:58
cpp_name.h
src
cpp
cpp_using.h
Generated by
1.8.17