# trace::EventData

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1ae7bbb97671df38daf28ce6819892ae0c(https://fuchsia.dev/reference/cpp/struct/trace/event-data/instant#structtrace_1_1_event_data_1_1_instant instant)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a6450ca6337062d25db69cf1b1aae4f57(https://fuchsia.dev/reference/cpp/struct/trace/event-data/counter#structtrace_1_1_event_data_1_1_counter counter)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1ad23c4ff550e95ce39516aa5e505f75fc(https://fuchsia.dev/reference/cpp/struct/trace/event-data/duration-begin#structtrace_1_1_event_data_1_1_duration_begin duration_begin)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a76f1f59df5bca1f96134a9c48d4468b6(https://fuchsia.dev/reference/cpp/struct/trace/event-data/duration-end#structtrace_1_1_event_data_1_1_duration_end duration_end)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a511747592dfc6852594143cac954e8b8(https://fuchsia.dev/reference/cpp/struct/trace/event-data/duration-complete#structtrace_1_1_event_data_1_1_duration_complete duration_complete)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a0a76605e13245584bae640fec5cc782c(https://fuchsia.dev/reference/cpp/struct/trace/event-data/async-begin#structtrace_1_1_event_data_1_1_async_begin async_begin)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a87e8b5f131f1449bc14c540e6871c05d(https://fuchsia.dev/reference/cpp/struct/trace/event-data/async-instant#structtrace_1_1_event_data_1_1_async_instant async_instant)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1afa40dc90d95a037f8a86a8ed89b314a6(https://fuchsia.dev/reference/cpp/struct/trace/event-data/async-end#structtrace_1_1_event_data_1_1_async_end async_end)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a757e951bf807201d9103d947bb24299a(https://fuchsia.dev/reference/cpp/struct/trace/event-data/flow-begin#structtrace_1_1_event_data_1_1_flow_begin flow_begin)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a2c84153f725981f61964f4e1c49fdf9c(https://fuchsia.dev/reference/cpp/struct/trace/event-data/flow-step#structtrace_1_1_event_data_1_1_flow_step flow_step)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a0c46dcb301a23435651f7c937c368324(https://fuchsia.dev/reference/cpp/struct/trace/event-data/flow-end#structtrace_1_1_event_data_1_1_flow_end flow_end)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a6426725d3c13db08e285c4e3314e5ce0(const https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data &)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a33b581b23b05ec1d155f192c193b3e48(https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data &&)` ||
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a8da74ab67b1989468c0f8dae12aee5f0()` ||

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a49224869c9807e0c42fc4f4e3b8102b6() const ` | `const https://fuchsia.dev/reference/cpp/struct/trace/event-data/async-begin#structtrace_1_1_event_data_1_1_async_begin &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1aa2d18095f48bb25fa5934c4774b0c283() const ` | `const https://fuchsia.dev/reference/cpp/struct/trace/event-data/async-end#structtrace_1_1_event_data_1_1_async_end &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1ad1b9371dd1ab0f371c9f30d47596fe80() const ` | `const https://fuchsia.dev/reference/cpp/struct/trace/event-data/async-instant#structtrace_1_1_event_data_1_1_async_instant &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a98ab1d30e7556ae5d4f2bc8e94967ae7() const ` | `const https://fuchsia.dev/reference/cpp/struct/trace/event-data/counter#structtrace_1_1_event_data_1_1_counter &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a3b5f4ffea8aa13d6506a8ef4536656fd() const ` | `const https://fuchsia.dev/reference/cpp/struct/trace/event-data/duration-begin#structtrace_1_1_event_data_1_1_duration_begin &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a9153006e8fb8e2d8058eb8c8016787f0() const ` | `const https://fuchsia.dev/reference/cpp/struct/trace/event-data/duration-complete#structtrace_1_1_event_data_1_1_duration_complete &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a260bfa0c155fa5f4fae0f2dd3cb658df() const ` | `const https://fuchsia.dev/reference/cpp/struct/trace/event-data/duration-end#structtrace_1_1_event_data_1_1_duration_end &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1adedaa16d63dcb080e25dbe3b523e38ff() const ` | `const https://fuchsia.dev/reference/cpp/struct/trace/event-data/flow-begin#structtrace_1_1_event_data_1_1_flow_begin &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a45324f1260517d9d88ace7fd220db15a() const ` | `const https://fuchsia.dev/reference/cpp/struct/trace/event-data/flow-end#structtrace_1_1_event_data_1_1_flow_end &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a9bb420d99393afb224f8b391e4b62d63() const ` | `const https://fuchsia.dev/reference/cpp/struct/trace/event-data/flow-step#structtrace_1_1_event_data_1_1_flow_step &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a693d62dda71590439cf498f9c11ddbc6() const ` | `const https://fuchsia.dev/reference/cpp/struct/trace/event-data/instant#structtrace_1_1_event_data_1_1_instant &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1ae0550f7b5dcba668ee0c345d20605d85() const ` | `std::string` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a699118ccb3ab85ee364165a420f82e9f(const https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data &)=default` | `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a6a784c9cfdec59581a02ccebf27d55cc(https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data &&)=default` | `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data &` |
| `https://fuchsia.dev/reference/cpp/class/trace/event-data#classtrace_1_1_event_data_1a5ba8d067451fd1e5b146a76dee6be907() const ` | `EventType` |

| ### Structs ||
|---|---|
| [trace::EventData::AsyncBegin](https://fuchsia.dev/reference/cpp/struct/trace/event-data/async-begin) |   |
| [trace::EventData::AsyncEnd](https://fuchsia.dev/reference/cpp/struct/trace/event-data/async-end) |   |
| [trace::EventData::AsyncInstant](https://fuchsia.dev/reference/cpp/struct/trace/event-data/async-instant) |   |
| [trace::EventData::Counter](https://fuchsia.dev/reference/cpp/struct/trace/event-data/counter) |   |
| [trace::EventData::DurationBegin](https://fuchsia.dev/reference/cpp/struct/trace/event-data/duration-begin) |   |
| [trace::EventData::DurationComplete](https://fuchsia.dev/reference/cpp/struct/trace/event-data/duration-complete) |   |
| [trace::EventData::DurationEnd](https://fuchsia.dev/reference/cpp/struct/trace/event-data/duration-end) |   |
| [trace::EventData::FlowBegin](https://fuchsia.dev/reference/cpp/struct/trace/event-data/flow-begin) |   |
| [trace::EventData::FlowEnd](https://fuchsia.dev/reference/cpp/struct/trace/event-data/flow-end) |   |
| [trace::EventData::FlowStep](https://fuchsia.dev/reference/cpp/struct/trace/event-data/flow-step) |   |
| [trace::EventData::Instant](https://fuchsia.dev/reference/cpp/struct/trace/event-data/instant) |   |

## Public functions

### EventData

```c++
 EventData(
  Instant instant
)
```

### EventData

```c++
 EventData(
  Counter counter
)
```

### EventData

```c++
 EventData(
  DurationBegin duration_begin
)
```

### EventData

```c++
 EventData(
  DurationEnd duration_end
)
```

### EventData

```c++
 EventData(
  DurationComplete duration_complete
)
```

### EventData

```c++
 EventData(
  AsyncBegin async_begin
)
```

### EventData

```c++
 EventData(
  AsyncInstant async_instant
)
```

### EventData

```c++
 EventData(
  AsyncEnd async_end
)
```

### EventData

```c++
 EventData(
  FlowBegin flow_begin
)
```

### EventData

```c++
 EventData(
  FlowStep flow_step
)
```

### EventData

```c++
 EventData(
  FlowEnd flow_end
)
```

### EventData

```c++
 EventData(
  const EventData &
)=default
```

### EventData

```c++
 EventData(
  EventData &&
)=default
```

### GetAsyncBegin

```c++
const AsyncBegin & GetAsyncBegin() const 
```

### GetAsyncEnd

```c++
const AsyncEnd & GetAsyncEnd() const 
```

### GetAsyncInstant

```c++
const AsyncInstant & GetAsyncInstant() const 
```

### GetCounter

```c++
const Counter & GetCounter() const 
```

### GetDurationBegin

```c++
const DurationBegin & GetDurationBegin() const 
```

### GetDurationComplete

```c++
const DurationComplete & GetDurationComplete() const 
```

### GetDurationEnd

```c++
const DurationEnd & GetDurationEnd() const 
```

### GetFlowBegin

```c++
const FlowBegin & GetFlowBegin() const 
```

### GetFlowEnd

```c++
const FlowEnd & GetFlowEnd() const 
```

### GetFlowStep

```c++
const FlowStep & GetFlowStep() const 
```

### GetInstant

```c++
const Instant & GetInstant() const 
```

### ToString

```c++
std::string ToString() const 
```

### operator=

```c++
EventData & operator=(
  const EventData &
)=default
```

### operator=

```c++
EventData & operator=(
  EventData &&
)=default
```

### type

```c++
EventType type() const 
```

### \~EventData

```c++
 ~EventData()=default
```