Otawa  0.10
otawa::AlternativeProcessor::Alternative Class Reference

Represent an alternetive in the requirement of an AlternativeProcessor, i.e., a list of required or used features. More...

#include <otawa/proc/AlternativeProcessor.h>

Public Member Functions

Alternativerequire (const AbstractFeature &f)
 Add a requirement to the alternative. More...
 
Alternativeuse (const AbstractFeature &f)
 Add a use to the alternative. More...
 
const genstruct::Vector
< FeatureUsage
features (void) const
 Get the list of requirements of this alternative. More...
 

Private Attributes

genstruct::Vector< FeatureUsagefeats
 

Detailed Description

Represent an alternetive in the requirement of an AlternativeProcessor, i.e., a list of required or used features.

Member Function Documentation

const genstruct::Vector< FeatureUsage > otawa::AlternativeProcessor::Alternative::features ( void  ) const
inline

Get the list of requirements of this alternative.

Returns
List of requirements.

References feats.

Referenced by otawa::AlternativeProcessor::AlternativeProcessor().

AlternativeProcessor::Alternative & otawa::AlternativeProcessor::Alternative::require ( const AbstractFeature f)
inline

Add a requirement to the alternative.

Parameters
fRequired feature.
Returns
Alternative itself (for chaining).

References feats, and otawa::FeatureUsage::require.

AlternativeProcessor::Alternative & otawa::AlternativeProcessor::Alternative::use ( const AbstractFeature f)
inline

Add a use to the alternative.

Parameters
fUsed feature.
Returns
Alternative itself (for chaining).

References feats, and otawa::FeatureUsage::use.

Member Data Documentation

genstruct::Vector<FeatureUsage> otawa::AlternativeProcessor::Alternative::feats
private

Referenced by features(), require(), and use().


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