Module simics::api::base::conf_object
source ยท Expand description
Bindings for configuration objects
Enumsยง
- A type in a
TypeStringType::List
. SeeTypeStringType
for a description of these variants. - A type in a python-like type string
Functionsยง
- _attribute_
error ๐When used inside an attribute set_attr/get_attr method, indicates why it failed to set or retrieve the attribute. This function only serves to give an informative message to the user. The object or attribute names need not be mentioned in the msg argument; Simics will supply this automatically. - _copy_
class ๐This function creates a copy of the class src_class named name. Additional attributes and interfaces can be registered on the newly created class. - _create_
class ๐This function creates a new class that can be instantiated by calling the SIM_create_object function. It is a replacement for SIM_register_class and should be used in all new code. - _extend_
class ๐The function extends the class cls with attributes, interfaces, port objects and port interfaces defined by the extension class ext. - _extension_
data ๐Returns the private data pointer of an object associated with the extension class ext_cls. The returned pointer is the value returned by the init_object method called for the extension class ext_cls. - _get_
class_ ๐data Obtain the class data that was set usingset_class_data
. This can be called at any time during the object initialisation process. - _get_
class_ ๐interface Get an interface of a class - _get_
class_ ๐name Get the name of a class. The name is copied, which differs from the C API. - _get_
interface ๐Get an interface on an object - _marked_
for_ ๐deletion Indicates if the given object is being deleted. This information can be useful by other objects that want to clean up their references. - _object_
data ๐Returns the private data pointer of an object. This pointer is available to the class for storing instance-specific state. It is initialised to the return value of the init (from class_info_t) method that is called during object creation. For classes created using the legacy [register_class
], the same functionality is provided by the init_object method . - _object_
descendant ๐Retrieve an objectโs descendant with a name, if one exists. - _object_
id ๐Returns the unique identifier for an object. The identifier is a string that is guaranteed to be unique and will never change, even if the object moves to another hierarchical location. object_is_configured
indicates whether obj is configured.- _object_
iterator ๐Obtain an iterator over the child objects at all depths of a given object - Consume and return the next item of an object iterator, if one exists
- _object_
name ๐Returns the name of an object. This name identifies the object uniquely, but may change if the object is moved to another hierarchical location. - _object_
parent ๐Retrieve the parent object if there is one, or None otherwise. - _register_
attribute ๐Register a pseudo-untyped attribute of the instances of a class. - Register an alias alias for the existing class class_name. Using aliases allows the read-configuration command to read configuration files that define objects of type alias, while the write-configuration command always uses class_name.
- Register a pseudo-untyped attribute on a class itself.
- _register_
interface ๐Register that cls implements interfaceI
. The interface itself should be supplied in the iface argument. - Add the attribute name to the set of attributes of the class cls. This attribute will appear on all instances of the class.
- Register a typed attribute of a class. This attribute will appear on the class object itself and is the same for all instances of the class.
- _require_
object ๐If obj has not yet been set as configured, then that objectโs finalize method (post_init in DML) is run; otherwise, nothing happens. After completion of that method, obj will be set as configured. - _set_
class_ ๐data Set extra data for the specified class. This is particularly useful if the same class methods are used for multiple distinct classes, for instance for generated classes. The class data can be fetched at any time during the object initialisation, usingget_class_data
. set_object_configured
sets the object as configured.- Obtain an iterator over the child objects at depth 1 of a given object
- When used inside an attribute set_attr/get_attr method, indicates why it failed to set or retrieve the attribute. This function only serves to give an informative message to the user. The object or attribute names need not be mentioned in the msg argument; Simics will supply this automatically.
- This function creates a copy of the class src_class named name. Additional attributes and interfaces can be registered on the newly created class.
- This function creates a new class that can be instantiated by calling the SIM_create_object function. It is a replacement for SIM_register_class and should be used in all new code.
- The function extends the class cls with attributes, interfaces, port objects and port interfaces defined by the extension class ext.
- Returns the private data pointer of an object associated with the extension class ext_cls. The returned pointer is the value returned by the init_object method called for the extension class ext_cls.
- get_
attr_ ๐handler - Obtain the class data that was set using
set_class_data
. This can be called at any time during the object initialisation process. - Get an interface of a class
- Get the name of a class. The name is copied, which differs from the C API.
- Get an interface on an object
- Indicates if the given object is being deleted. This information can be useful by other objects that want to clean up their references.
- Returns the private data pointer of an object. This pointer is available to the class for storing instance-specific state. It is initialised to the return value of the init (from class_info_t) method that is called during object creation. For classes created using the legacy [
register_class
], the same functionality is provided by the init_object method . - Retrieve an objectโs descendant with a name, if one exists.
- Returns the unique identifier for an object. The identifier is a string that is guaranteed to be unique and will never change, even if the object moves to another hierarchical location.
object_is_configured
indicates whether obj is configured.- Obtain an iterator over the child objects at all depths of a given object
- Consume and return the next item of an object iterator, if one exists
- Returns the name of an object. This name identifies the object uniquely, but may change if the object is moved to another hierarchical location.
- Retrieve the parent object if there is one, or None otherwise.
- Register a pseudo-untyped attribute of the instances of a class.
- Register an alias alias for the existing class class_name. Using aliases allows the read-configuration command to read configuration files that define objects of type alias, while the write-configuration command always uses class_name.
- Register a pseudo-untyped attribute on a class itself.
- Register that cls implements interface
I
. The interface itself should be supplied in the iface argument. - Add the attribute name to the set of attributes of the class cls. This attribute will appear on all instances of the class.
- Register a typed attribute of a class. This attribute will appear on the class object itself and is the same for all instances of the class.
- If obj has not yet been set as configured, then that objectโs finalize method (post_init in DML) is run; otherwise, nothing happens. After completion of that method, obj will be set as configured.
- set_
attr_ ๐handler - Set extra data for the specified class. This is particularly useful if the same class methods are used for multiple distinct classes, for instance for generated classes. The class data can be fetched at any time during the object initialisation, using
get_class_data
. set_object_configured
sets the object as configured.- Obtain an iterator over the child objects at depth 1 of a given object
Type Aliasesยง
- Alias for
attr_attr_t
- Alias for
class_data_t
- Alias for
class_info_t
- Alias for
class_kind_t
- Alias for
conf_class_t
- Alias for
conf_object_t
- Alias for
get_attr_t
- Alias for
get_class_attr_t
- Alias for
object_iter_t
- Alias for
set_attr_t
- Alias for
set_class_attr_t
- Alias for
set_error_t