    

 ## On this page

  

 

 # ansys::dpf::Label Struct Reference

 Last update: 16.07.2025 

`#include <dpf_api_base.h>`

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

 [Label](structansys_1_1dpf_1_1Label.xhtml#aa16652a3ceeda62dce2af07722a0ec80) (std::string const &amp;name) <a id="a26ac4cad65d736a4400cdb84b16f950b" name="a26ac4cad65d736a4400cdb84b16f950b"></a> **Label** ([Label](structansys_1_1dpf_1_1Label.xhtml) const &amp;)=default <a id="aacb129a52a9ddbabf8a86553e6cbd9c7" name="aacb129a52a9ddbabf8a86553e6cbd9c7"></a>bool **operator==** ([Label](structansys_1_1dpf_1_1Label.xhtml) const &amp;) const <a id="ae63a064be42fd512c71966bbd014b1e2" name="ae63a064be42fd512c71966bbd014b1e2"></a>bool **operator&lt;** ([Label](structansys_1_1dpf_1_1Label.xhtml) const &amp;) const <a id="a0406afbef012f8193e15713547c7057b" name="a0406afbef012f8193e15713547c7057b"></a>bool **operator&lt;=** ([Label](structansys_1_1dpf_1_1Label.xhtml) const &amp;) const <a id="a9b977b514452a7add47f54f86fe8c299" name="a9b977b514452a7add47f54f86fe8c299"></a>bool **operator!=** ([Label](structansys_1_1dpf_1_1Label.xhtml) const &amp;) const  [operator std::string](structansys_1_1dpf_1_1Label.xhtml#abb523602a3862d6141a3052812225e4b) () const const char \* [c\_str](structansys_1_1dpf_1_1Label.xhtml#a8683632fa258b763080c99228b4f561c) () const <a id="details" name="details"></a>## Detailed Description

Container for label.

See also[labels](structansys_1_1dpf_1_1labels.xhtml) [Using collections and labels](group__group__12.xhtml) Examples[DataApis.cpp](DataApis_8cpp-example.xhtml#_a40).

## Constructor &amp; Destructor Documentation

<a id="aa16652a3ceeda62dce2af07722a0ec80" name="aa16652a3ceeda62dce2af07722a0ec80"></a>## [◆ ](#aa16652a3ceeda62dce2af07722a0ec80)Label()

 ansys::dpf::Label::Label  ( std::string const &amp;  *name*)   explicit 

Create [Label](structansys_1_1dpf_1_1Label.xhtml).

Parameters \[in\]nameName of label. 



## Member Function Documentation

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

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

ReturnsValue of label. 



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

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

Value of label.