Represents a Simics class attribute. More...
#include <attribute.h>
Public Types | |
| using | cls_attr_getter = std::add_pointer_t< attr_value_t(conf_class_t *)> |
| using | cls_attr_setter = std::add_pointer_t< set_error_t(conf_class_t *, attr_value_t *)> |
Public Member Functions | |
| ClassAttribute (const std::string &name, const std::string &type, const std::string &desc, cls_attr_getter getter, cls_attr_setter setter, attr_attr_t attr) | |
| virtual const std::string & | name () const |
| virtual const std::string & | type () const |
| virtual const std::string & | desc () const |
| virtual cls_attr_getter | getter () const |
| virtual cls_attr_setter | setter () const |
| virtual attr_attr_t | attr () const |
Represents a Simics class attribute.
| using simics::ClassAttribute::cls_attr_getter = std::add_pointer_t<attr_value_t(conf_class_t *)> |
| using simics::ClassAttribute::cls_attr_setter = std::add_pointer_t<set_error_t(conf_class_t *, attr_value_t *)> |
|
inline |
| name | the attribute name |
| type | the attribute type string, see SIM_register_class_attribute |
| desc | the attribute description |
| getter | a callback to get the current value of the attribute |
| setter | a callback to set the current value of the attribute |
| attr | one of Sim_Attr_Pseudo or Sim_Attr_Session |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |