Otawa
0.10
|
This class is used to resolve feature found in plugins using ProcessorPlugin::getFeature() method. More...
#include <otawa/proc/DynFeature.h>
Public Member Functions | |
DynFeature (string name) | |
Build the dynamic featue. More... | |
operator AbstractFeature * (void) const throw (FeatureNotFound) | |
if not already done, bind the feature and return a pointer to. More... | |
AbstractFeature * | operator* (void) const throw (FeatureNotFound) |
if not already done, bind the feature and return a pointer to. More... | |
operator AbstractFeature & (void) const throw (FeatureNotFound) | |
Private Member Functions | |
void | init (void) const throw (FeatureNotFound) |
Bind the feature. More... | |
Private Attributes | |
AbstractFeature * | feature |
string | _name |
This class is used to resolve feature found in plugins using ProcessorPlugin::getFeature() method.
Notice that this class perform late binding: the feature is only resolved when it is used.
otawa::DynFeature::DynFeature | ( | string | name | ) |
Build the dynamic featue.
name | Name of the feature. |
|
private |
Bind the feature.
FeatureNotFound | Launched when the feature can not be resolved. |
References _name, feature, and otawa::ProcessorPlugin::getFeature().
Referenced by operator AbstractFeature &(), operator AbstractFeature *(), and operator*().
|
inline |
|
inline |
if not already done, bind the feature and return a pointer to.
FeatureNotFound | Launched when the feature can not be resolved. |
|
inline |
if not already done, bind the feature and return a pointer to.
FeatureNotFound | Launched when the feature can not be resolved. |
|
mutableprivate |
Referenced by init(), operator AbstractFeature &(), operator AbstractFeature *(), and operator*().