> This page is for version 5.0 (Latest) (default).
> For other versions, use one of these documentation indexes:
> - 5.0 (Latest) (default): https://docs.nvidia.com/holoscan/sdk-user-guide/5-0-latest/llms.txt
> - ltsb-2.0: https://docs.nvidia.com/holoscan/sdk-user-guide/ltsb-2-0/llms.txt
> - 4.6: https://docs.nvidia.com/holoscan/sdk-user-guide/4-6/llms.txt
> - 4.5: https://docs.nvidia.com/holoscan/sdk-user-guide/4-5/llms.txt
> - 4.4: https://docs.nvidia.com/holoscan/sdk-user-guide/4-4/llms.txt
> - 4.3: https://docs.nvidia.com/holoscan/sdk-user-guide/4-3/llms.txt
> - Archives: https://docs.nvidia.com/holoscan/sdk-user-guide/archives/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sdk-user-guide/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/holoscan/sdk-user-guide/_mcp/server.

# holoscan::ForeignOperatorCallbacks

> Own a copyable foreign callback capture with exactly-once context destruction.

Own a copyable foreign callback capture with exactly-once context destruction.

```cpp showLineNumbers={false}
#include <holoscan/foreign_operator.hpp>
```

---

## Constructors

### ForeignOperatorCallbacks \[#foreignoperatorcallbacks]

#### Adopt one raw callback table

explicit

```cpp showLineNumbers={false}
holoscan::ForeignOperatorCallbacks::ForeignOperatorCallbacks(
    ForeignOperatorCallbackTable table
)
```

Adopt one raw callback table.

**Throws:** `RuntimeError` when the table has no compute callback or an incomplete advanced lifecycle callback group.

**Parameters**

**`table`** `ForeignOperatorCallbackTable`

Complete table whose context is released through its destroy hook.

---

#### Copy

noexcept

```cpp showLineNumbers={false}
holoscan::ForeignOperatorCallbacks::ForeignOperatorCallbacks(
    const ForeignOperatorCallbacks &
) noexcept = default
```

#### Move

noexcept

```cpp showLineNumbers={false}
holoscan::ForeignOperatorCallbacks::ForeignOperatorCallbacks(
    ForeignOperatorCallbacks &&
) noexcept = default
```

### Destructor \[#destructor]

### \~ForeignOperatorCallbacks

```cpp showLineNumbers={false}
holoscan::ForeignOperatorCallbacks::~ForeignOperatorCallbacks() = default
```

---

## Assignment operators

### operator= \[#operator_assign]

#### Copy assign

```cpp showLineNumbers={false}
ForeignOperatorCallbacks & holoscan::ForeignOperatorCallbacks::operator=(
    const ForeignOperatorCallbacks &
) noexcept = default
```

#### Move assign

```cpp showLineNumbers={false}
ForeignOperatorCallbacks & holoscan::ForeignOperatorCallbacks::operator=(
    ForeignOperatorCallbacks &&
) noexcept = default
```

---

## Methods

### table \[#table]

```cpp showLineNumbers={false}
const ForeignOperatorCallbackTable & holoscan::ForeignOperatorCallbacks::table() const noexcept
```

---

## Member variables

| Name     | Type                       | Description |
| -------- | -------------------------- | ----------- |
| `state_` | `std::shared_ptr< State >` |             |