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

# Structure ansys::dpf::QuantityType

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

User defined quantity type.

Allows for the definition of a new quantity type. Many quantity types are predefined.

**See also**: [quantity\_types](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-quantity-types.md)

## Members

* [c\_str](#structansys-dpf-quantitytype-1abdfb356d30de73b4bae958a5a22eb186)
* [empty](#structansys-dpf-quantitytype-1a013520e0f57e0ad6bcd8a533d8639b21)
* [operator!=](#structansys-dpf-quantitytype-1ab55b06401adb7a8017fadc7e860f9477)
* [operator\<](#structansys-dpf-quantitytype-1af0c5735179d5e5ad3949052f551d5777)
* [operator\<=](#structansys-dpf-quantitytype-1ab3a03a40046da3dc03075230b395df8b)
* [operator==](#structansys-dpf-quantitytype-1ab135777e525e088d662ef15beb5badf0)
* [QuantityType](#structansys-dpf-quantitytype-1aad0ded6e541fc561a3c3d1c28cdcaf3f)
* [QuantityType](#structansys-dpf-quantitytype-1a7f106d62dad9bf5f6bcf4cde9beb3b14)

## Public functions

### Function QuantityType

![][public]

```cpp theme={null}
ansys::dpf::QuantityType::QuantityType(std::string const &name="")
```

Create new location.

**Parameters**:

* std::string const & **name** = "" : \[in] Optional name of quanty type.

**Return type**:

### Function QuantityType

![][public]

```cpp theme={null}
ansys::dpf::QuantityType::QuantityType(QuantityType const &)=default
```

**Parameters**:

* QuantityType const &

**Return type**:

### Function operator==

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

```cpp theme={null}
bool ansys::dpf::QuantityType::operator==(QuantityType const &) const
```

**Parameters**:

* [QuantityType](#structansys-dpf-quantitytype-1aad0ded6e541fc561a3c3d1c28cdcaf3f) const &

**Return type**: bool

### Function operator\<

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

```cpp theme={null}
bool ansys::dpf::QuantityType::operator<(QuantityType const &) const
```

**Parameters**:

* [QuantityType](#structansys-dpf-quantitytype-1aad0ded6e541fc561a3c3d1c28cdcaf3f) const &

**Return type**: bool

### Function operator\<=

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

```cpp theme={null}
bool ansys::dpf::QuantityType::operator<=(QuantityType const &) const
```

**Parameters**:

* [QuantityType](#structansys-dpf-quantitytype-1aad0ded6e541fc561a3c3d1c28cdcaf3f) const &

**Return type**: bool

### Function operator!=

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

```cpp theme={null}
bool ansys::dpf::QuantityType::operator!=(QuantityType const &) const
```

**Parameters**:

* [QuantityType](#structansys-dpf-quantitytype-1aad0ded6e541fc561a3c3d1c28cdcaf3f) const &

**Return type**: bool

### Function empty

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

```cpp theme={null}
bool ansys::dpf::QuantityType::empty() const
```

**Return type**: bool

### Function c\_str

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

```cpp theme={null}
const char * ansys::dpf::QuantityType::c_str() const
```

Gets name of quantity type.
**Returns**:

Name of quantity type.

**Return type**: const char \*

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

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

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

[static]: https://img.shields.io/badge/-static-lightgrey "static"
