Represents Simics C type conf_object_t.
More...
#include <conf-object.h>
Represents Simics C type conf_object_t.
- See also
- conf_object_t
◆ ConfObjectRef()
| simics::ConfObjectRef::ConfObjectRef |
( |
conf_object_t * |
obj = nullptr | ) |
|
|
inline |
Not explicit constructor, allow conversion of conf_object_t to ConfObjectRef.
- Parameters
-
| obj | The configuration object that will be represented by this ConfObjectRef |
◆ ~ConfObjectRef()
| virtual simics::ConfObjectRef::~ConfObjectRef |
( |
| ) |
|
|
virtualdefault |
◆ as_conf_object()
| ConfObject & simics::ConfObjectRef::as_conf_object |
( |
| ) |
const |
◆ configured()
| bool simics::ConfObjectRef::configured |
( |
| ) |
const |
Return true if the configuration object is configured, false otherwise.
This is the same as calling SIM_object_is_configured(object())
◆ data()
| void * simics::ConfObjectRef::data |
( |
| ) |
const |
Get the data of the underlying configuration object.
◆ get_interface()
| const interface_t * simics::ConfObjectRef::get_interface |
( |
const std::string & |
name | ) |
const |
Return an interface implemented by the underlying configuration object.
It is suggested to cache the result rather than do it repeatedly to increase performance.
- Parameters
-
| name | The name of the interface |
- Returns
- A pointer to the interface struct, or nullptr if the interface is not implemented by the underlying configuration object
◆ group_id()
| uint64 simics::ConfObjectRef::group_id |
( |
const std::string & |
name | ) |
const |
◆ name()
| const std::string & simics::ConfObjectRef::name |
( |
| ) |
const |
Get the name of the underlying configuration object.
◆ object()
Get a pointer to the configuration object represented by this ConfObjectRef.
◆ operator conf_object_t *()
◆ operator==()
| bool simics::ConfObjectRef::operator== |
( |
const ConfObjectRef & |
other | ) |
const |
|
inline |
◆ port_name()
| const std::string & simics::ConfObjectRef::port_name |
( |
| ) |
const |
|
inline |
Get & set name for the port implements the interface.
◆ port_obj_parent()
Return the parent object if the object is a port object, nullptr otherwise.
◆ require()
| void simics::ConfObjectRef::require |
( |
| ) |
const |
Ensure that the configuration object is instantiated (this is the same as calling SIM_require_object(object())
◆ set_port_name()
| void simics::ConfObjectRef::set_port_name |
( |
const std::string & |
name | ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /disk2/mp/builds/mono-124635/src/devices/c++-api/simics/conf-object.h