    

 ## On this page

  

 

 # ansys::dpf::QuantityType Struct Reference

 Last update: 16.07.2025 

User defined quantity type. [More...](structansys_1_1dpf_1_1QuantityType.xhtml#details)

`#include <dpf_api_base.h>`

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [QuantityType](structansys_1_1dpf_1_1QuantityType.xhtml#aad0ded6e541fc561a3c3d1c28cdcaf3f) (std::string const &amp;name="") <a id="a7f106d62dad9bf5f6bcf4cde9beb3b14" name="a7f106d62dad9bf5f6bcf4cde9beb3b14"></a> **QuantityType** ([QuantityType](structansys_1_1dpf_1_1QuantityType.xhtml) const &amp;)=default <a id="ab135777e525e088d662ef15beb5badf0" name="ab135777e525e088d662ef15beb5badf0"></a>bool **operator==** ([QuantityType](structansys_1_1dpf_1_1QuantityType.xhtml) const &amp;) const <a id="af0c5735179d5e5ad3949052f551d5777" name="af0c5735179d5e5ad3949052f551d5777"></a>bool **operator&lt;** ([QuantityType](structansys_1_1dpf_1_1QuantityType.xhtml) const &amp;) const <a id="ab3a03a40046da3dc03075230b395df8b" name="ab3a03a40046da3dc03075230b395df8b"></a>bool **operator&lt;=** ([QuantityType](structansys_1_1dpf_1_1QuantityType.xhtml) const &amp;) const <a id="ab55b06401adb7a8017fadc7e860f9477" name="ab55b06401adb7a8017fadc7e860f9477"></a>bool **operator!=** ([QuantityType](structansys_1_1dpf_1_1QuantityType.xhtml) const &amp;) const  [operator std::string](structansys_1_1dpf_1_1QuantityType.xhtml#ad86c0033431ec42817dafdbef89e650a) () const <a id="a013520e0f57e0ad6bcd8a533d8639b21" name="a013520e0f57e0ad6bcd8a533d8639b21"></a>bool **empty** () const const char \* [c\_str](structansys_1_1dpf_1_1QuantityType.xhtml#abdfb356d30de73b4bae958a5a22eb186) () const <a id="details" name="details"></a>## Detailed Description

User defined quantity type.

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

See also[quantity\_types](structansys_1_1dpf_1_1quantity__types.xhtml "Predefined quantity types.")

## Constructor &amp; Destructor Documentation

<a id="aad0ded6e541fc561a3c3d1c28cdcaf3f" name="aad0ded6e541fc561a3c3d1c28cdcaf3f"></a>## [◆ ](#aad0ded6e541fc561a3c3d1c28cdcaf3f)QuantityType()

 ansys::dpf::QuantityType::QuantityType  ( std::string const &amp;  *name* = `""`)   explicit 

Create new location.

Parameters \[in\]nameOptional name of quanty type. 



## Member Function Documentation

<a id="abdfb356d30de73b4bae958a5a22eb186" name="abdfb356d30de73b4bae958a5a22eb186"></a>## [◆ ](#abdfb356d30de73b4bae958a5a22eb186)c\_str()

 const char \* ansys::dpf::QuantityType::c\_str  ( )  const

Gets name of quantity type.

ReturnsName of quantity type. 



<a id="ad86c0033431ec42817dafdbef89e650a" name="ad86c0033431ec42817dafdbef89e650a"></a>## [◆ ](#ad86c0033431ec42817dafdbef89e650a)operator std::string()

 ansys::dpf::QuantityType::operator std::string  ( )  const

Name of quantity type.