ROSE
0.11.145.237
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
c
d
g
h
i
l
m
n
s
t
u
v
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
i
k
l
m
o
p
s
t
v
w
x
Enumerator
a
b
c
d
e
f
h
i
l
m
n
o
p
s
t
u
v
w
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Related Symbols
b
i
o
Files
File List
Examples
src
midend
astProcessing
AstTextAttributesHandling.h
1
// Author: Markus Schordan
2
// $Id: AstTextAttributesHandling.h,v 1.2 2006/04/24 00:21:32 dquinlan Exp $
3
4
#ifndef ASTTEXTATTRIBUTEHANDLING_H
5
#define ASTTEXTATTRIBUTEHANDLING_H
6
7
#include <string>
8
#include <sstream>
9
#include <iomanip>
10
11
#include "Cxx_Grammar.h"
12
#include "AstProcessing.h"
13
14
class
AstTextAttribute
:
public
AstAttribute
{
15
public
:
16
AstTextAttribute
(std::string s) : source(s) {}
17
virtual
std::string
toString
() {
return
source; }
18
protected
:
19
std::string source;
20
};
14
class
AstTextAttribute
:
public
AstAttribute
{
…
};
21
22
class
AstTextAttributesHandling
:
public
SgSimpleProcessing
{
23
public
:
24
AstTextAttributesHandling
(
SgProject
* p);
25
~AstTextAttributesHandling
();
26
void
setAll();
27
void
removeAll();
28
protected
:
29
enum
{M_set, M_remove} mode;
30
virtual
void
visit
(
SgNode
* node);
31
SgProject
* projectnode;
32
};
22
class
AstTextAttributesHandling
:
public
SgSimpleProcessing
{
…
};
33
34
#endif
AstAttribute
Base class for all IR node attribute values.
Definition
AstAttributeMechanism.h:36
AstTextAttribute
Definition
AstTextAttributesHandling.h:14
AstTextAttribute::toString
virtual std::string toString()
Convert an attribute to a string.
Definition
AstTextAttributesHandling.h:17
AstTextAttributesHandling
Definition
AstTextAttributesHandling.h:22
AstTextAttributesHandling::visit
virtual void visit(SgNode *node)
this method is called at every traversed node.
SgNode
This class represents the base class for all IR nodes within Sage III.
Definition
Cxx_Grammar.h:124
SgProject
This class represents a source project, with a list of SgFile objects and global information about th...
Definition
Cxx_Grammar.h:39191
SgSimpleProcessing
Definition
AstSimpleProcessing.h:97
Generated on Mon Mar 10 2025 00:08:54 for ROSE by
1.9.8