> ## 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::Location

![][C++]
![][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](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-locations.md)

## Members

* [c\_str](#structansys-dpf-location-1ad9fab192124627740ffa623b1a0221ea)
* [empty](#structansys-dpf-location-1aa79d660aa731fcdbdad2f57b3b3a5e65)
* [Location](#structansys-dpf-location-1a2b3efab2807517d182bc9a486a0fb837)
* [Location](#structansys-dpf-location-1acbfdb380af9621ce0bc37d290f18a464)
* [operator!=](#structansys-dpf-location-1ae9e07f6694532a61658cd75aca0a6756)
* [operator\<](#structansys-dpf-location-1a17fccc35f2e202671ce6b961ef946521)
* [operator\<=](#structansys-dpf-location-1a120b2f92eef3fea51a789125c740726f)
* [operator==](#structansys-dpf-location-1a88d382410f5b1bbf37e65b5e89f85b22)

## Public functions

### Function Location

![][public]

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

Create new location.

**Parameters**:

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

**Return type**:

### Function Location

![][public]

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

**Parameters**:

* Location const &

**Return type**:

### Function operator==

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

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

**Parameters**:

* [Location](#structansys-dpf-location-1a2b3efab2807517d182bc9a486a0fb837) const &

**Return type**: bool

### Function operator\<

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

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

**Parameters**:

* [Location](#structansys-dpf-location-1a2b3efab2807517d182bc9a486a0fb837) const &

**Return type**: bool

### Function operator\<=

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

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

**Parameters**:

* [Location](#structansys-dpf-location-1a2b3efab2807517d182bc9a486a0fb837) const &

**Return type**: bool

### Function operator!=

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

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

**Parameters**:

* [Location](#structansys-dpf-location-1a2b3efab2807517d182bc9a486a0fb837) const &

**Return type**: bool

### Function empty

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

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

**Return type**: bool

### Function c\_str

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

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

Gets name of location.
**Returns**:

Name of location.

**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"
