TypeDataMap

Hold a mapping between a Type and data.

The get function is used to get the corresponding data.

This is useful when e.g. combined with a state machine to retrieve the state local data if a state is represented as a type.

struct TypeDataMap (
RawDataT
Ts...
) if (
is(RawDataT : DataT!Args,
alias DataT
Args...
)
) {}

Constructors

this
this(RawDataT a)
Undocumented in source.

Members

Aliases

SrcT
alias SrcT = Ts
Undocumented in source.

Functions

opAssign
void opAssign(RawDataT a)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

data
RawDataT data;
Undocumented in source.

Parameters

RawDataT

type holding the data, retrieved via opIndex

Ts

the types mapping to RawDataT by their position

Meta