Otawa
0.10
|
This class represents identifier with a typed associated value. More...
#include <otawa/prop/Identifier.h>
Classes | |
struct | __class |
struct | __simple |
class | Getter |
Public Member Functions | |
Identifier (cstring name) | |
Build a new generic identifier. More... | |
Identifier (cstring name, const T &default_value) | |
Build a new generic identifier. More... | |
Identifier (cstring name, const T &default_value, Property *prop,...) | |
Identifier (cstring name, const T &default_value, Property *prop, VarArg &args) | |
const T & | defaultValue (void) const |
void | add (PropList &list, const T &value) const |
Add a generic property to the given list with the current identifier. More... | |
void | set (PropList &list, const T &value) const |
Set the value of a generic property with the current identifier to the given list. More... | |
elm::Option< T > | get (const PropList &list) const |
const T & | get (const PropList &list, const T &def) const |
Get the value associated with a property matching the current identifier. More... | |
T & | ref (PropList &list) const |
const T & | use (const PropList &list) const |
Get the value matching the current identifier in the given list. More... | |
const T & | value (const PropList &list) const |
For internal use only. More... | |
Ref< T, Identifier > | value (PropList &list) const |
For internal use only. More... | |
void | remove (PropList &list) const |
Remove the property with the current identifier from the given list. More... | |
bool | exists (PropList &list) const |
Test if the given list contains a property with the current identifier. More... | |
void | copy (PropList &list, Property *prop) |
void | add (PropList *list, const T &value) const |
Add a generic property to the given list with the current identifier. More... | |
void | set (PropList *list, const T &value) const |
Set the value of a generic property with the current identifier to the given list. More... | |
elm::Option< T > | get (const PropList *list) const |
const T & | get (const PropList *list, const T &def) const |
Get the value associated with a property matching the current identifier. More... | |
T & | ref (PropList *list) const |
const T & | use (const PropList *list) const |
Get the value matching the current identifier in the given list. More... | |
const T & | value (const PropList *list) const |
For internal use only. More... | |
Ref< T, Identifier< T > > | value (PropList *list) const |
For internal use only. More... | |
void | remove (PropList *list) const |
Remove the property with the current identifier from the given list. More... | |
bool | exists (PropList *list) const |
Test if the given list contains a property with the current identifier. More... | |
void | copy (PropList *list, Property *prop) |
const T & | get (const Property *prop) const |
void | set (Property *prop, const T &value) const |
const T & | operator() (const PropList &props) const |
Read the value in a functional way. More... | |
const T & | operator() (const PropList *props) const |
Read the value in a functional way. More... | |
Ref< T, Identifier< T > > | operator() (PropList &props) const |
Read or write a property value in a functional way. More... | |
Ref< T, Identifier< T > > | operator() (PropList *props) const |
Read or write a property value in a functional way. More... | |
const T & | operator() (Property *prop) const |
virtual void | print (elm::io::Output &out, const Property *prop) const |
Print the value of the given property (accordint the property matches the given identifier). More... | |
virtual void | printFormatted (io::Output &out, const Property *prop) const |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after. More... | |
virtual const Type & | type (void) const |
Get the identifier of data linked with this property. More... | |
virtual void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
virtual Property * | copy (Property &prop) const |
Build a copy of the given property. More... | |
template<> | |
void | printFormatted (io::Output &out, const Property *prop) const |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after. More... | |
template<> | |
void | printFormatted (io::Output &out, const Property *prop) const |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after. More... | |
template<> | |
void | printFormatted (io::Output &out, const Property *prop) const |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after. More... | |
template<> | |
void | printFormatted (io::Output &out, const Property *prop) const |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after. More... | |
template<> | |
void | printFormatted (io::Output &out, const Property *prop) const |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | print (elm::io::Output &out, const Property *prop) const |
Print the value of the given property (accordint the property matches the given identifier). More... | |
template<> | |
void | printFormatted (io::Output &out, const Property *prop) const |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after. More... | |
template<> | |
void | printFormatted (io::Output &out, const Property *prop) const |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after. More... | |
template<> | |
void | printFormatted (io::Output &out, const Property *prop) const |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after. More... | |
template<> | |
void | printFormatted (io::Output &out, const Property *prop) const |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after. More... | |
template<> | |
void | printFormatted (io::Output &out, const Property *prop) const |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
template<> | |
void | fromString (PropList &props, const string &str) const |
Get value of an identifier from a string and store it in the given property list. More... | |
const string | name (void) const |
Get the string name of the identifier. More... | |
void | print (elm::io::Output &out) const |
Print the identifier. More... | |
void | print (elm::io::Output &output, const Property &prop) const |
void | printFormatted (elm::io::Output &output, const Property &prop) const |
virtual bool | equals (const Property *prop1, const Property *prop2) const |
Test if two properties are equal. More... | |
Property * | copy (Property *prop) const |
virtual void | serialize (Property *prop, elm::serial2::Serializer &serializer) |
Serialize the workspace to the current serializer. More... | |
virtual Property * | unserialize (elm::serial2::Unserializer &unserializer) |
Unserialize the workspace to the current unserializer. More... | |
Property * | getProp (const AbstractIdentifier *id) const |
Find a property by its identifier. More... | |
void | setProp (Property *prop) |
Set the property in the property list removing any double. More... | |
void | setProp (const AbstractIdentifier *id) |
void | removeProp (const AbstractIdentifier *id) |
Remove a property matching the given identifier. More... | |
void | removeProp (const AbstractIdentifier &id) |
Property * | extractProp (const AbstractIdentifier *id) |
Remove a property matching the given identifier and return it. More... | |
Property * | extractProp (const AbstractIdentifier &id) |
Remove a property matching the given identifier and return it. More... | |
void | addProp (Property *prop) |
Add property to the list without checking of duplication. More... | |
void | removeAllProp (const AbstractIdentifier *id) |
Remove all the properties matching the given identifier. More... | |
bool | hasProp (const AbstractIdentifier &id) const |
Test if the property list contains a property matching the given identifier. More... | |
void | clearProps (void) |
Remove all properties from the list. More... | |
void | addProps (const PropList &props) |
Add all properties from the given property list, in a reverse order. More... | |
Static Public Member Functions | |
static AbstractIdentifier * | find (const string &name) |
Find an abstract identifier by its name. More... | |
Static Public Attributes | |
static const PropList | EMPTY |
This is an empty proplist for convenience. More... | |
Protected Member Functions | |
void | initProps (Property *prop, VarArg &args) |
Add the properties found in the arguments (list of Property * ended by null) to the identifier properties. More... | |
Private Member Functions | |
const T & | get (const Property &prop) const |
Private Attributes | |
T | def |
This class represents identifier with a typed associated value.
Identifier with a value should declared with this kind of identifier because it provides full support for reflexive facilities.
T | The type of data stored in a property with this identifier. Note that the property management functions of this class are safer to use than the rough PropList functions because they ensure safe value type management. |
|
inline |
Build a new generic identifier.
name | Name of the generic identifier. |
|
inline |
Build a new generic identifier.
name | Name of the generic identifier. |
default_value | Default value of the identifier. |
|
inline |
|
inline |
|
inline |
Add a generic property to the given list with the current identifier.
list | List to add to. |
value | Value of the property. |
References otawa::PropList::addProp().
Referenced by otawa::LoopReductor::depthFirstSearch(), and otawa::display::CFGDrawer::onInit().
|
inline |
Add a generic property to the given list with the current identifier.
list | List to add to. |
value | Value of the property. |
Referenced by otawa::Identifier< otawa::arm::Info * >::add().
|
inherited |
Add property to the list without checking of duplication.
prop | Property to add. |
References otawa::Property::_next.
Referenced by otawa::Identifier< T >::add(), otawa::ast::ASTInfo::ASTInfo(), otawa::Identifier< otawa::arm::Info * >::copy(), otawa::AbstractIdentifier::initProps(), otawa::ContextualProperty::make(), otawa::script::Script::makeConfig(), otawa::ccg::Builder::processLBlockSet(), otawa::ipet::ILPSystemGetter::processWorkSpace(), otawa::Identifier< T >::ref(), otawa::ContextualProperty::ref(), and otawa::ContextualProperty::refProps().
|
inherited |
Add all properties from the given property list, in a reverse order.
props | Property list to clone. |
References copy(), otawa::PropList::head, and otawa::Property::next().
Referenced by otawa::display::CFGDrawer::CFGDrawer(), otawa::display::GraphVizGraph::GraphVizGraph(), otawa::ParamFeature::instantiate(), otawa::Manager::loadXML(), otawa::display::GraphVizGraph::newEdge(), otawa::display::GraphVizGraph::newNode(), otawa::PropList::operator=(), otawa::Process::Process(), otawa::PropList::PropList(), otawa::display::GraphVizItem::setProps(), otawa::VirtualBasicBlock::VirtualBasicBlock(), and otawa::VirtualCFG::VirtualCFG().
|
inherited |
Remove all properties from the list.
References otawa::Property::next().
Referenced by otawa::PSTBuilder::getVCFG(), otawa::PropList::operator=(), otawa::display::GraphVizItem::setProps(), otawa::PropList::~PropList(), and otawa::WorkSpace::~WorkSpace().
References otawa::AbstractIdentifier::copy().
Referenced by otawa::AbstractIdentifier::copy().
|
inline |
|
inline |
Referenced by otawa::Identifier< otawa::arm::Info * >::copy().
|
inlinevirtual |
Build a copy of the given property.
prop | Property to copy. |
Reimplemented from otawa::AbstractIdentifier.
|
inline |
|
virtualinherited |
Test if two properties are equal.
prop1 | First property. |
prop2 | Second property. |
|
inline |
Test if the given list contains a property with the current identifier.
list | List to look in. |
Referenced by otawa::DeadCodeAnalysis::processWorkSpace().
|
inline |
Test if the given list contains a property with the current identifier.
list | List to look in. |
|
inherited |
Remove a property matching the given identifier and return it.
Caller is responsible of the management of the obtained property.
id | Identifier of the property to extract. |
References otawa::Property::_next, and otawa::Property::next().
Referenced by otawa::script::Script::makeConfig().
|
inlineinherited |
Remove a property matching the given identifier and return it.
Caller is responsible of the management of the obtained property.
id | Identifier of the property to extract. |
References otawa::PropList::extractProp().
Referenced by otawa::PropList::extractProp().
|
staticinherited |
Find an abstract identifier by its name.
name | Name of the looked identifier. |
Referenced by otawa::ProcessorPlugin::getIdentifier(), and otawa::Application::run().
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References elm::value_t::name(), and elm::value_t::value().
|
inlinevirtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References in.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References in, elm::io::Input::scanBool(), and set().
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References in, elm::io::Input::scanLong(), and set().
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References in, elm::io::Input::scanULong(), and set().
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References in, elm::io::Input::scanLong(), and set().
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References in, elm::io::Input::scanULong(), and set().
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References in, elm::io::Input::scanLLong(), and set().
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References in, elm::io::Input::scanULLong(), and set().
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References in, elm::io::Input::scanDouble(), and set().
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References set().
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References buf, in, elm::String::indexOf(), elm::io::Input::scanULong(), set(), and elm::String::substring().
|
virtual |
Get value of an identifier from a string and store it in the given property list.
props | Property list to store result into. |
str | String to get value from. |
Reimplemented from otawa::AbstractIdentifier.
References set().
|
inline |
References otawa::PropList::getProp(), and elm::none.
Referenced by otawa::tsim::Delta::delta(), otawa::display::GraphVizEdge::printAttribute(), and otawa::ActualFeature::process().
|
inline |
Get the value associated with a property matching the current identifier.
If the property is not found, return the default value.
list | List to look in. |
def | Default value. |
References otawa::PropList::getProp().
|
inline |
|
inline |
Get the value associated with a property matching the current identifier.
If the property is not found, return the default value.
list | List to look in. |
def | Default value. |
|
inline |
|
inlineprivate |
|
inherited |
Find a property by its identifier.
id | Identifier of the property to find. |
References otawa::Property::_next, and otawa::Property::next().
Referenced by otawa::Identifier< otawa::arm::Info * >::exists(), otawa::ContextualProperty::exists(), otawa::ContextualProperty::find(), otawa::Identifier< T >::get(), otawa::PropList::hasProp(), otawa::ContextualProperty::make(), otawa::ParamFeature::matches(), otawa::ImmutableRef< T, I >::print(), otawa::ContextualProperty::print(), otawa::Identifier< T >::ref(), otawa::ContextualProperty::ref(), otawa::ContextualProperty::refProps(), otawa::Identifier< T >::set(), otawa::Identifier< T >::use(), and otawa::Identifier< T >::value().
|
inlineinherited |
Test if the property list contains a property matching the given identifier.
id | Property identifier to look for. |
References otawa::PropList::getProp().
Referenced by otawa::ipet::BasicConstraintsBuilder::addEntryConstraint(), otawa::Monitor::configure(), otawa::ImmutableRef< T, I >::exists(), and otawa::Manager::setVerbosity().
Add the properties found in the arguments (list of Property * ended by null) to the identifier properties.
prop | First property. |
args | Null-ended properties to scan. |
References otawa::PropList::addProp(), and elm::VarArg::next().
Referenced by otawa::AbstractIdentifier::AbstractIdentifier().
|
inlineinherited |
Get the string name of the identifier.
References otawa::AbstractIdentifier::nam.
Referenced by otawa::AlternativeProcessor::AlternativeProcessor(), otawa::AbstractIdentifier::fromString(), otawa::ParamProcessor::instantiate(), otawa::UnsupportedFeatureException::message(), otawa::UnavailableFeatureException::message(), and otawa::WorkSpace::provide().
|
inline |
Read the value in a functional way.
props | Property list to read the property from. |
|
inline |
Read the value in a functional way.
props | Property list to read the property from. |
|
inline |
Read or write a property value in a functional way.
The returned value may be read (automatic conversion to the value) or written (using operator = to set the value or += to add a new value at the property list.
props | Property list to read the property from. |
|
inline |
Read or write a property value in a functional way.
The returned value may be read (automatic conversion to the value) or written (using operator = to set the value or += to add a new value at the property list.
props | Property list to read the property from. |
|
inline |
|
inherited |
|
inlineinherited |
References otawa::AbstractIdentifier::print().
Referenced by otawa::AbstractIdentifier::print().
|
inlinevirtual |
Print the value of the given property (accordint the property matches the given identifier).
It is an error to call this method with a property matching a different identifier.
Use the print() method of a property instead.
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Print the value of the given property (accordint the property matches the given identifier).
It is an error to call this method with a property matching a different identifier.
Use the print() method of a property instead.
Reimplemented from otawa::AbstractIdentifier.
References otawa::DELAYED_Always, otawa::DELAYED_None, and otawa::DELAYED_Taken.
|
inlineinherited |
References otawa::AbstractIdentifier::printFormatted().
Referenced by otawa::AbstractIdentifier::printFormatted().
|
inlinevirtual |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after.
For example, string are quoted and special character escaped.
out | Output to use. |
prop | Property to display. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after.
For example, string are quoted and special character escaped.
out | Output to use. |
prop | Property to display. |
Reimplemented from otawa::AbstractIdentifier.
References otawa::escape().
|
virtual |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after.
For example, string are quoted and special character escaped.
out | Output to use. |
prop | Property to display. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after.
For example, string are quoted and special character escaped.
out | Output to use. |
prop | Property to display. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after.
For example, string are quoted and special character escaped.
out | Output to use. |
prop | Property to display. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after.
For example, string are quoted and special character escaped.
out | Output to use. |
prop | Property to display. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after.
For example, string are quoted and special character escaped.
out | Output to use. |
prop | Property to display. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after.
For example, string are quoted and special character escaped.
out | Output to use. |
prop | Property to display. |
Reimplemented from otawa::AbstractIdentifier.
References otawa::escape().
|
virtual |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after.
For example, string are quoted and special character escaped.
out | Output to use. |
prop | Property to display. |
Reimplemented from otawa::AbstractIdentifier.
References otawa::escape(), and elm::CString::length().
|
virtual |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after.
For example, string are quoted and special character escaped.
out | Output to use. |
prop | Property to display. |
Reimplemented from otawa::AbstractIdentifier.
|
virtual |
Print the value of the given property in a formatted way, that is, possibly to perform re-scanning after.
For example, string are quoted and special character escaped.
out | Output to use. |
prop | Property to display. |
Reimplemented from otawa::AbstractIdentifier.
|
inline |
|
inline |
Referenced by otawa::Identifier< otawa::arm::Info * >::ref().
|
inline |
Remove the property with the current identifier from the given list.
list | List to remove from. |
Referenced by otawa::ContextualProcessor::processCFG().
|
inline |
Remove the property with the current identifier from the given list.
list | List to remove from. |
|
inherited |
Remove all the properties matching the given identifier.
id | Identifier of properties to remove. |
References otawa::Property::_next, and otawa::Property::next().
Referenced by otawa::LoopUnroller::unroll().
|
inherited |
Remove a property matching the given identifier.
id | Identifier of the property to remove. |
References otawa::Property::_next, and otawa::Property::next().
Referenced by otawa::PSTBuilder::buildTree(), otawa::BBRemover< T >::clean(), otawa::display::CFGOutput::processCFG(), otawa::SubCFGBuilder::processWorkSpace(), otawa::Ref< T, I >::remove(), and otawa::ContextualPath::Ref< T >::remove().
|
inlineinherited |
References otawa::PropList::removeProp().
Referenced by otawa::PropList::removeProp().
|
virtualinherited |
Serialize the workspace to the current serializer.
In the default implementation, do nothing.
prop | Property containing the value to serialize. |
serializer | Serializer to serialize to. |
|
inline |
Set the value of a generic property with the current identifier to the given list.
list | List to set in. |
value | Value to set. |
References otawa::sem::add(), and otawa::PropList::getProp().
|
inline |
Set the value of a generic property with the current identifier to the given list.
list | List to set in. |
value | Value to set. |
Referenced by otawa::Identifier< otawa::arm::Info * >::set().
|
inline |
|
inherited |
Set the property in the property list removing any double.
prop | Property to set. |
References otawa::Property::_next, otawa::Property::id(), and otawa::Property::next().
|
inlineinherited |
References otawa::PropList::setProp().
Referenced by otawa::PropList::setProp().
|
inlinevirtual |
Get the identifier of data linked with this property.
It may return Type::no_type ever meaning that the identifier does not support type system or that it is just a flag without associated data.
Reimplemented from otawa::AbstractIdentifier.
|
virtualinherited |
Unserialize the workspace to the current unserializer.
In the default implementation, do nothing.
unserializer | Unserializer to unserialize to. |
|
inline |
Get the value matching the current identifier in the given list.
Cause a run-time abort if the property is not available.
list | List to look in. |
References otawa::PropList::getProp().
|
inline |
Get the value matching the current identifier in the given list.
Cause a run-time abort if the property is not available.
list | List to look in. |
Referenced by otawa::Identifier< otawa::arm::Info * >::use().
|
inline |
For internal use only.
References otawa::PropList::getProp().
|
inline |
For internal use only.
References elm::value().
|
inline |
For internal use only.
Referenced by otawa::Identifier< otawa::arm::Info * >::value().
|
inline |
For internal use only.
Referenced by otawa::Identifier< otawa::arm::Info * >::value().
|
private |
|
staticinherited |
This is an empty proplist for convenience.