ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
propertyAnn Class Reference

A dataflow analysis property. More...

#include <property.h>

Inheritance diagram for propertyAnn:
Collaboration diagram for propertyAnn:

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...
 

Detailed Description

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.

Member Enumeration Documentation

Enumerator
EnumProperty 
SetProperty 

Definition at line 16 of file property.h.

Constructor & Destructor Documentation

propertyAnn::propertyAnn ( const parserID name,
Direction  direction,
propertyKind  kind 
)
inline

Create a new property.

Definition at line 52 of file property.h.

Member Function Documentation

void propertyAnn::set_id ( int  id)
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.

int propertyAnn::get_id ( ) const
inline

Get the ID.

Definition at line 71 of file property.h.

References _id.

std::string& propertyAnn::name ( )
inline

Property name.

Definition at line 75 of file property.h.

References _name.

const std::string& propertyAnn::name ( ) const
inline

Definition at line 76 of file property.h.

References _name.

bool propertyAnn::is_enabled ( ) const
inline

Is enabled?

Definition at line 80 of file property.h.

References _is_enabled.

void propertyAnn::disable ( )
inline

Disable this analysis.

Definition at line 84 of file property.h.

References _is_enabled.

void propertyAnn::enable ( )
inline

Enable this analysis.

Definition at line 88 of file property.h.

References _is_enabled.

Direction propertyAnn::direction ( ) const
inline

Direction.

Definition at line 92 of file property.h.

References _direction.

propertyKind propertyAnn::kind ( ) const
inline

Kind.

Definition at line 96 of file property.h.

References _kind.

Member Data Documentation

std::string propertyAnn::_name
protected

Name of the property.

Definition at line 22 of file property.h.

Referenced by name().

int propertyAnn::_id
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.

Referenced by get_id(), and set_id().

bool propertyAnn::_is_enabled
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().

Direction propertyAnn::_direction
protected

Analysis direction.

Definition at line 40 of file property.h.

Referenced by direction().

propertyKind propertyAnn::_kind
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().


The documentation for this class was generated from the following file: