Otawa
0.10
|
Named are used by script to locate a data structure passed as argument to a code processor. More...
#include <otawa/script/NamedObject.h>
Public Member Functions | |
NamedObject (void) | |
Anonymous named object constructor. More... | |
NamedObject (string _name) | |
Constructor with a name. More... | |
virtual | ~NamedObject (void) |
string | getName (void) const |
Get the name of the object. More... | |
template<class T > | |
bool | implements (void) const |
Static Public Member Functions | |
static void | declare (NamedObject *object) |
Declare a new named object. More... | |
static NamedObject * | get (string name) |
Get an object by its name. More... | |
Private Member Functions | |
SERIALIZABLE (NamedObject, DFIELD(name, string(""))) | |
Private Attributes | |
string | name |
Static Private Attributes | |
static genstruct::AVLMap < string, NamedObject * > | objects |
Known named objects. More... | |
Named are used by script to locate a data structure passed as argument to a code processor.
Their name allows to easily design them from the script. Classic children classes of this one includes hard::Memory, hard::Processor, etc. As serializable objects, named objects allows also to check dynamically their type.
|
inline |
Anonymous named object constructor.
otawa::script::NamedObject::NamedObject | ( | string | _name | ) |
|
virtual |
|
static |
Declare a new named object.
object | Object to declare. |
References getName(), and objects.
Referenced by NamedObject().
|
static |
Get an object by its name.
name | Named of the looked object. |
References objects.
|
inline |
|
inline |
|
private |
|
private |
Referenced by NamedObject().
|
staticprivate |