# CoreId

```cpp
#include <qbruntime/type.h>

struct mobilint::CoreId
```

Represents a unique identifier for an NPU core.

A [CoreId](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/coreid/index.md>) consists of a [Cluster](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/#cluster>) and a [Core](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/#core>), identifying a specific core within an NPU.

## Attributes

| Member | Description |
| --- | --- |
| [`cluster`](<#cluster>) |  |
| [`core`](<#core>) |  |

### cluster

```cpp
Cluster cluster
```

[Cluster](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/#cluster>) to which the core belongs.

### core

```cpp
Core core
```

[Core](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/#core>) within the [Cluster](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/#cluster>).

## Member functions

| Member | Description |
| --- | --- |
| [`operator==`](<#operator-eq>) | Checks if two [CoreId](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/coreid/index.md>) objects are equal. |
| [`operator<`](<#operator-lt>) | Compares two [CoreId](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/coreid/index.md>) objects for ordering. |

### operator==

```cpp
bool operator==(const CoreId &rhs) const
```

Checks if two [CoreId](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/coreid/index.md>) objects are equal.

**Parameters**

- `rhs` *\[in\]* — Another [CoreId](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/coreid/index.md>) object.

**Returns**

True if both [CoreId](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/coreid/index.md>) objects are identical, false otherwise.

### operator\<

```cpp
bool operator<(const CoreId &rhs) const
```

Compares two [CoreId](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/coreid/index.md>) objects for ordering.

**Parameters**

- `rhs` *\[in\]* — Another [CoreId](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/coreid/index.md>) object.

**Returns**

True if this [CoreId](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/coreid/index.md>) is less than the given [CoreId](<https://docs.mobilint.com/runtime/kr/v1.4/api/cpp/coreid/index.md>), false otherwise.
