    

 ## On this page

  

 

 # Structure ansys::dpf::QuantityType

 Last update: 25.03.2026 

<a id="structansys-dpf-quantitytype"></a>

![](https://img.shields.io/badge/language-C%2B%2B-blue "C++")![](https://img.shields.io/badge/-public-brightgreen "public")

User defined quantity type.

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

**See also**: [quantity\_types](structansys-dpf-quantity-types.md#structansys-dpf-quantity-types)

## Members

- [c\_str](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1abdfb356d30de73b4bae958a5a22eb186)
- [empty](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1a013520e0f57e0ad6bcd8a533d8639b21)
- [operator!=](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1ab55b06401adb7a8017fadc7e860f9477)
- [operator&lt;](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1af0c5735179d5e5ad3949052f551d5777)
- [operator&lt;=](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1ab3a03a40046da3dc03075230b395df8b)
- [operator==](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1ab135777e525e088d662ef15beb5badf0)
- [QuantityType](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1aad0ded6e541fc561a3c3d1c28cdcaf3f)
- [QuantityType](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1a7f106d62dad9bf5f6bcf4cde9beb3b14)

## Public functions

<a id="structansys-dpf-quantitytype-1aad0ded6e541fc561a3c3d1c28cdcaf3f"></a>

### Function QuantityType

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

```cpp
ansys::dpf::QuantityType::QuantityType(std::string const &name="")

```

Create new location.

**Parameters**:

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

**Return type**:

<a id="structansys-dpf-quantitytype-1a7f106d62dad9bf5f6bcf4cde9beb3b14"></a>

### Function QuantityType

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

```cpp
ansys::dpf::QuantityType::QuantityType(QuantityType const &)=default

```

**Parameters**:

- QuantityType const &amp;

**Return type**:

<a id="structansys-dpf-quantitytype-1ab135777e525e088d662ef15beb5badf0"></a>

### Function operator==

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::QuantityType::operator==(QuantityType const &) const

```

**Parameters**:

- [QuantityType](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1aad0ded6e541fc561a3c3d1c28cdcaf3f) const &amp;

**Return type**: bool

<a id="structansys-dpf-quantitytype-1af0c5735179d5e5ad3949052f551d5777"></a>

### Function operator&lt;

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::QuantityType::operator<(QuantityType const &) const

```

**Parameters**:

- [QuantityType](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1aad0ded6e541fc561a3c3d1c28cdcaf3f) const &amp;

**Return type**: bool

<a id="structansys-dpf-quantitytype-1ab3a03a40046da3dc03075230b395df8b"></a>

### Function operator&lt;=

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::QuantityType::operator<=(QuantityType const &) const

```

**Parameters**:

- [QuantityType](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1aad0ded6e541fc561a3c3d1c28cdcaf3f) const &amp;

**Return type**: bool

<a id="structansys-dpf-quantitytype-1ab55b06401adb7a8017fadc7e860f9477"></a>

### Function operator!=

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::QuantityType::operator!=(QuantityType const &) const

```

**Parameters**:

- [QuantityType](structansys-dpf-quantitytype.md#structansys-dpf-quantitytype-1aad0ded6e541fc561a3c3d1c28cdcaf3f) const &amp;

**Return type**: bool

<a id="structansys-dpf-quantitytype-1a013520e0f57e0ad6bcd8a533d8639b21"></a>

### Function empty

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
bool ansys::dpf::QuantityType::empty() const

```

**Return type**: bool

<a id="structansys-dpf-quantitytype-1abdfb356d30de73b4bae958a5a22eb186"></a>

### Function c\_str

![](https://img.shields.io/badge/-public-brightgreen "public")![](https://img.shields.io/badge/-const-lightblue "const")

```cpp
const char * ansys::dpf::QuantityType::c_str() const

```

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

Name of quantity type.

**Return type**: const char \*