Skip to main content
Definition: Attribute.hpp (line 129) Provide a class for an integer-valued attribute.

Members

Private attributes

Variable m_name

Definition: Attribute.hpp (line 202)
Type: AttributeName

Variable m_value

Definition: Attribute.hpp (line 203)
Type: std::int64_t

Variable m_lowerBound

Definition: Attribute.hpp (line 204)
Type: std::int64_t

Variable m_upperBound

Definition: Attribute.hpp (line 205)
Type: std::int64_t

Variable m_hasLowerBound

Definition: Attribute.hpp (line 206)
Type: bool

Variable m_hasUpperBound

Definition: Attribute.hpp (line 207)
Type: bool

Variable m_modifiable

Definition: Attribute.hpp (line 208)
Type: bool

Public functions

Function IntegerAttribute

Provide a constructor for the IntegerAttribute class. Parameters:
  • name: - attribute name.
  • value: - attribute value.
Parameters: Return type:

Function IntegerAttribute

Provide a constructor for the IntegerAttribute class. Parameters:
  • name: - attribute name.
  • value: - attribute value.
  • modifiable: - attribute is modifiable.
Parameters: Return type:

Function IntegerAttribute

Provide a constructor for the IntegerAttribute class. Parameters:
  • name: - attribute name.
  • value: - attribute value.
  • modifiable: - attribute is modifiable.
  • hasLowerBound: - attribute has a lower bound.
  • lowerBound: - lower bound of the attribute value.
  • hasUpperBound: - attribute has an upper bound.
  • upperBound: - upper bound of the attribute value.
Parameters:
  • AttributeName name
  • std::int64_t value
  • bool modifiable
  • bool hasLowerBound
  • std::int64_t lowerBound
  • bool hasUpperBound
  • std::int64_t upperBound
Return type:

Function getName

Return type: const AttributeName &

Function getValue

Return type: std::int64_t

Function isModifiable

Return type: bool

Function setLowerBound

Parameters:
  • std::int64_t lowerBound
Return type: void

Function setUpperBound

Parameters:
  • std::int64_t upperBound
Return type: void

Function hasLowerBound

Return type: bool

Function hasUpperBound

Return type: bool

Function getLowerBound

Return type: std::int64_t

Function getUpperBound

Return type: std::int64_t