ROSE
0.9.6a
|
A dataflow analysis property. More...
#include <property.h>
Public Types | |
enum | propertyKind { EnumProperty, SetProperty } |
Public Member Functions | |
propertyAnn (const parserID *name, Direction direction, propertyKind kind) | |
Create a new property. More... | |
void | set_id (int id) |
Set ID. More... | |
int | get_id () const |
Get the ID. More... | |
std::string & | name () |
Property name. More... | |
const std::string & | name () const |
bool | is_enabled () const |
Is enabled? More... | |
void | disable () |
Disable this analysis. More... | |
void | enable () |
Enable this analysis. More... | |
Direction | direction () const |
Direction. More... | |
propertyKind | kind () const |
Kind. More... | |
Public Member Functions inherited from Ann | |
Ann (int line) | |
int | line () const |
Protected Attributes | |
std::string | _name |
Name of the property. More... | |
int | _id |
ID. More... | |
bool | _is_enabled |
Enabled. More... | |
Direction | _direction |
Analysis direction. More... | |
propertyKind | _kind |
The kind of property. More... | |
A dataflow analysis property.
This is a base class for both the enum properties and the set properties.
Definition at line 12 of file property.h.
Enumerator | |
---|---|
EnumProperty | |
SetProperty |
Definition at line 16 of file property.h.
|
inline |
Create a new property.
Definition at line 52 of file property.h.
|
inline |
Set ID.
This should only be called once, by the annotations method add_property().
Definition at line 67 of file property.h.
References _id.
|
inline |
|
inline |
|
inline |
Definition at line 76 of file property.h.
References _name.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
ID.
This number is used to index into the vectors of enumValues used by the property analyzer. The value for this property will always occupy the position given by this number.
Definition at line 30 of file property.h.
|
protected |
Enabled.
This flag allows us to turn analysis on or off.
Definition at line 36 of file property.h.
Referenced by disable(), enable(), and is_enabled().
|
protected |
|
protected |
The kind of property.
There are current two kinds: enumerated properties and setProperties.
Definition at line 46 of file property.h.
Referenced by kind().