Class sysc::IntegerAttribute
Definition: Attribute.hpp (line 82)
Provide a class for an integer-valued attribute.
Members
Private attributes
Variable m_name
Definition: Attribute.hpp (line 117)
AttributeName sysc::IntegerAttribute::m_name
Type: AttributeName
Variable m_value
Definition: Attribute.hpp (line 118)
std::int64_t sysc::IntegerAttribute::m_value {0}
Type: std::int64_t
Variable m_modifiable
Definition: Attribute.hpp (line 119)
bool sysc::IntegerAttribute::m_modifiable {true}
Type: bool
Public functions
Function IntegerAttribute
sysc::IntegerAttribute::IntegerAttribute(AttributeName name, std::int64_t value)
Provide a constructor for the IntegerAttribute class.
Parameters:
- name: - attribute name.
- value: - attribute value.
Parameters:
- AttributeName name
- std::int64_t value
Return type:
Function IntegerAttribute
sysc::IntegerAttribute::IntegerAttribute(AttributeName name, std::int64_t value, bool modifiable)
Provide a constructor for the IntegerAttribute class.
Parameters:
-
name: - attribute name.
-
value: - attribute value.
Parameters:
- modifiable: - attribute is modifiable.
Parameters:
- AttributeName name
- std::int64_t value
- bool modifiable
Return type:
Function getName
const AttributeName& sysc::IntegerAttribute::getName() const noexcept
Return type: const AttributeName &
Function getValue
std::int64_t sysc::IntegerAttribute::getValue() const noexcept
Return type: std::int64_t
Function isModifiable
bool sysc::IntegerAttribute::isModifiable() const noexcept
Return type: bool