> ## 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.

# sysc::RealAttribute Class Reference

Part of [C++ Interfaces for Participant Library](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs)

Provide a class for a real-valued attribute.

`#include <Attribute.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| | [RealAttribute](#ad46b89c811a79901af549e50173ca5f8) ([AttributeName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gadb06eacf4ed0787d18e8ddbf0612c83c) name, double value, [Dimensionality](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1Dimensionality.md) dimensionality) Provide a constructor for the [RealAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1RealAttribute.md) class. |
| | [RealAttribute](#a5fc9075ddc9f02df2fba129abdddfe85) ([AttributeName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gadb06eacf4ed0787d18e8ddbf0612c83c) name, double value, [Dimensionality](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1Dimensionality.md) dimensionality, bool modifiable) Provide a constructor for the [RealAttribute](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1RealAttribute.md) class. |
|  const [AttributeName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gadb06eacf4ed0787d18e8ddbf0612c83c) & | **getName** () const noexcept |
|  double | **getValue** () const noexcept |
|  const [Dimensionality](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1Dimensionality.md) & | **getDimensionality** () const noexcept |
|  bool | **isModifiable** () const noexcept |
|  std::string | **getUnits** () const |

## Detailed Description

Provide a class for a real-valued attribute.

Definition at line [23](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/Attribute_8hpp_source) of file [Attribute.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/Attribute_8hpp_source).

## Constructor & Destructor Documentation

### RealAttribute() \[1/2]

```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-cpp-library/classsysc_1_1RealAttribute.md) class.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | name | - attribute name. |
| \[in] | value | - attribute value. |
| \[in] | dimensionality | - attribute dimensionality. |

### RealAttribute() \[2/2]

```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-cpp-library/classsysc_1_1RealAttribute.md) class.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | name | - attribute name. |
| \[in] | value | - attribute value. |
| \[in] | dimensionality | - attribute dimensionality. |
| \[in] | modifiable | - attribute is modifiable. |
