    

 ## On this page

  

 

 # Structure ansys::dpf::Location

 Last update: 25.03.2026 

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

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

User defined location quantity.

The location is the type of topology associated with the data container. This allows for the definition of a new location quantity. Many location quantities are predefined.

**See also**: [locations](structansys-dpf-locations.md#structansys-dpf-locations)

## Members

- [c\_str](structansys-dpf-location.md#structansys-dpf-location-1ad9fab192124627740ffa623b1a0221ea)
- [empty](structansys-dpf-location.md#structansys-dpf-location-1aa79d660aa731fcdbdad2f57b3b3a5e65)
- [Location](structansys-dpf-location.md#structansys-dpf-location-1a2b3efab2807517d182bc9a486a0fb837)
- [Location](structansys-dpf-location.md#structansys-dpf-location-1acbfdb380af9621ce0bc37d290f18a464)
- [operator!=](structansys-dpf-location.md#structansys-dpf-location-1ae9e07f6694532a61658cd75aca0a6756)
- [operator&lt;](structansys-dpf-location.md#structansys-dpf-location-1a17fccc35f2e202671ce6b961ef946521)
- [operator&lt;=](structansys-dpf-location.md#structansys-dpf-location-1a120b2f92eef3fea51a789125c740726f)
- [operator==](structansys-dpf-location.md#structansys-dpf-location-1a88d382410f5b1bbf37e65b5e89f85b22)

## Public functions

<a id="structansys-dpf-location-1a2b3efab2807517d182bc9a486a0fb837"></a>

### Function Location

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

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

```

Create new location.

**Parameters**:

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

**Return type**:

<a id="structansys-dpf-location-1acbfdb380af9621ce0bc37d290f18a464"></a>

### Function Location

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

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

```

**Parameters**:

- Location const &amp;

**Return type**:

<a id="structansys-dpf-location-1a88d382410f5b1bbf37e65b5e89f85b22"></a>

### Function operator==

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

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

```

**Parameters**:

- [Location](structansys-dpf-location.md#structansys-dpf-location-1a2b3efab2807517d182bc9a486a0fb837) const &amp;

**Return type**: bool

<a id="structansys-dpf-location-1a17fccc35f2e202671ce6b961ef946521"></a>

### Function operator&lt;

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

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

```

**Parameters**:

- [Location](structansys-dpf-location.md#structansys-dpf-location-1a2b3efab2807517d182bc9a486a0fb837) const &amp;

**Return type**: bool

<a id="structansys-dpf-location-1a120b2f92eef3fea51a789125c740726f"></a>

### Function operator&lt;=

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

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

```

**Parameters**:

- [Location](structansys-dpf-location.md#structansys-dpf-location-1a2b3efab2807517d182bc9a486a0fb837) const &amp;

**Return type**: bool

<a id="structansys-dpf-location-1ae9e07f6694532a61658cd75aca0a6756"></a>

### Function operator!=

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

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

```

**Parameters**:

- [Location](structansys-dpf-location.md#structansys-dpf-location-1a2b3efab2807517d182bc9a486a0fb837) const &amp;

**Return type**: bool

<a id="structansys-dpf-location-1aa79d660aa731fcdbdad2f57b3b3a5e65"></a>

### Function empty

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

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

```

**Return type**: bool

<a id="structansys-dpf-location-1ad9fab192124627740ffa623b1a0221ea"></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::Location::c_str() const

```

Gets name of location. **Returns**:

Name of location.

**Return type**: const char \*