Otawa
0.10
|
Public Types | |
enum | type_t { NO_TYPE = 0, INT = 1, BIN = 2, FLOAT = 3 } |
Type of an ILP variable. More... | |
Public Member Functions | |
AbstractVar (const string &name, type_t type) | |
virtual | ~AbstractVar (void) |
int | index (void) const |
const string & | name (void) const |
Get the name of the variable if any. More... | |
type_t | type (void) const |
Get the type of the variable. More... | |
virtual void | print (io::Output &out) |
Print the name of the variable. More... | |
virtual Alias * | toAlias (void) |
If the variable is an alias, return it. More... | |
virtual double | eval (System *sys) |
Evaluate the variable in the given system. More... | |
Private Attributes | |
AbstractSystem * | _sys |
int | _idx |
Friends | |
class | AbstractSystem |
|
inherited |
Type of an ILP variable.
Enumerator | |
---|---|
NO_TYPE |
Null value for ILP variable type. |
INT |
Integer (default) type for ILP variable. |
BIN |
Binary type (0 or 1) for ILP variable. |
FLOAT |
Real type for ILP variable. |
|
virtual |
|
virtualinherited |
Evaluate the variable in the given system.
sys | Resolved system to look in. |
Reimplemented in otawa::ilp::Alias.
References otawa::ilp::System::valueOf().
|
inline |
|
inlineinherited |
Get the name of the variable if any.
Return an empty string if there is none.
Referenced by otawa::tsim::BBPath::makeVarName(), otawa::display::ILPSystemDisplayer::nameOf(), and otawa::ilp::operator<<().
|
virtualinherited |
Print the name of the variable.
out | Output to use. |
References otawa::ilp::Var::_name.
Referenced by otawa::ilp::operator<<().
|
virtualinherited |
If the variable is an alias, return it.
Reimplemented in otawa::ilp::Alias.
Referenced by otawa::ilp::Expression::add().
|
inlineinherited |
Get the type of the variable.
|
friend |
|
private |
Referenced by otawa::ilp::AbstractSystem::newVar(), and otawa::ilp::AbstractSystem::remove().
|
private |
Referenced by otawa::ilp::AbstractSystem::newVar().