> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class sysc::RealAttribute

![][C++]
![][public]

**Definition**: `Attribute.hpp` (line 23)

Provide a class for a real-valued attribute.

## Members

* [getDimensionality](#classsysc_1_1RealAttribute_1a447ebf2b4aa38ed25151afcbab997a20)
* [getName](#classsysc_1_1RealAttribute_1afa2d15feabc90d93113124609e76b765)
* [getUnits](#classsysc_1_1RealAttribute_1a7a821f54d2cfc1427af46a5557fde959)
* [getValue](#classsysc_1_1RealAttribute_1ac9132b5406b7c93c4fe2cce45bb8d31c)
* [isModifiable](#classsysc_1_1RealAttribute_1acaab66de9536925d8e187d7eeeeff3a8)
* [m\_dimensionality](#classsysc_1_1RealAttribute_1ac2b012e50297a48b5f399c585a5b16e0)
* [m\_modifiable](#classsysc_1_1RealAttribute_1af5804153bc3fa286fd94195110af1c2a)
* [m\_name](#classsysc_1_1RealAttribute_1a62e520d7d57c79bf373ba46d6e2c33fd)
* [m\_value](#classsysc_1_1RealAttribute_1a6457405f9c984cc0f8cf1dd7e74514af)
* [RealAttribute](#classsysc_1_1RealAttribute_1ad46b89c811a79901af549e50173ca5f8)
* [RealAttribute](#classsysc_1_1RealAttribute_1a5fc9075ddc9f02df2fba129abdddfe85)

## Private attributes

### Variable m\_name

![][private]

**Definition**: `Attribute.hpp` (line 68)

```cpp theme={null}
AttributeName sysc::RealAttribute::m_name
```

**Type**: [AttributeName](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1gadb06eacf4ed0787d18e8ddbf0612c83c)

### Variable m\_value

![][private]

**Definition**: `Attribute.hpp` (line 69)

```cpp theme={null}
double sysc::RealAttribute::m_value {0.0}
```

**Type**: double

### Variable m\_dimensionality

![][private]

**Definition**: `Attribute.hpp` (line 70)

```cpp theme={null}
Dimensionality sysc::RealAttribute::m_dimensionality
```

**Type**: [Dimensionality](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/structsysc_1_1Dimensionality.md)

### Variable m\_modifiable

![][private]

**Definition**: `Attribute.hpp` (line 71)

```cpp theme={null}
bool sysc::RealAttribute::m_modifiable {true}
```

**Type**: bool

## Public functions

### Function RealAttribute

![][public]

```cpp theme={null}
sysc::RealAttribute::RealAttribute(AttributeName name, double value, Dimensionality dimensionality)
```

Provide a constructor for the [RealAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/classsysc_1_1RealAttribute.md) class.

**Parameters**:

* **name**: - attribute name.
* **value**: - attribute value.
* **dimensionality**: - attribute dimensionality.

**Parameters**:

* [AttributeName](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1gadb06eacf4ed0787d18e8ddbf0612c83c) **name**
* double **value**
* [Dimensionality](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/structsysc_1_1Dimensionality.md) **dimensionality**

**Return type**:

### Function RealAttribute

![][public]

```cpp theme={null}
sysc::RealAttribute::RealAttribute(AttributeName name, double value, Dimensionality dimensionality, bool modifiable)
```

Provide a constructor for the [RealAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/classsysc_1_1RealAttribute.md) class.

**Parameters**:

* **name**: - attribute name.
* **value**: - attribute value.
* **dimensionality**: - attribute dimensionality.
* **modifiable**: - attribute is modifiable.

**Parameters**:

* [AttributeName](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1gadb06eacf4ed0787d18e8ddbf0612c83c) **name**
* double **value**
* [Dimensionality](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/structsysc_1_1Dimensionality.md) **dimensionality**
* bool **modifiable**

**Return type**:

### Function getName

![][public]
![][const]

```cpp theme={null}
const AttributeName& sysc::RealAttribute::getName() const noexcept
```

**Return type**: const [AttributeName](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1gadb06eacf4ed0787d18e8ddbf0612c83c) &

### Function getValue

![][public]
![][const]

```cpp theme={null}
double sysc::RealAttribute::getValue() const noexcept
```

**Return type**: double

### Function getDimensionality

![][public]
![][const]

```cpp theme={null}
const Dimensionality& sysc::RealAttribute::getDimensionality() const noexcept
```

**Return type**: const [Dimensionality](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/cpp-reference/structsysc_1_1Dimensionality.md) &

### Function isModifiable

![][public]
![][const]

```cpp theme={null}
bool sysc::RealAttribute::isModifiable() const noexcept
```

**Return type**: bool

### Function getUnits

![][public]
![][const]

```cpp theme={null}
std::string sysc::RealAttribute::getUnits() const
```

**Return type**: std::string

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[private]: https://img.shields.io/badge/-private-red "private"

[const]: https://img.shields.io/badge/-const-lightblue "const"
