Enum2

Unit test.

Tests: * All IEnum interface methods. * Enum class inheritance.

version(unittest)
class Enum2 : Enum1 {}

Members

Mixins

__anonymous
mixin EnumBase!(["d"[]:4, "e":5, "f":6])
Undocumented in source.

Mixed In Members

From mixin EnumBase!(["d"[]:4, "e":5, "f":6])

ocean.meta.types.Qualifiers
public import ocean.meta.types.Qualifiers;
Undocumented in source.
Name
alias Name = IEnum.Name
Undocumented in source.
Value
alias Value = IEnum.Value
Undocumented in source.
_internal_names
auto _internal_names;
Undocumented in source.
_internal_values
auto _internal_values;
Undocumented in source.
_internal_names
auto _internal_names;
Undocumented in source.
_internal_values
auto _internal_values;
Undocumented in source.
n_to_v
Value[Name] n_to_v;

Internal maps from names <-> values. The maps are filled in the static constructor.

v_to_n
Name[Value] v_to_n;
Undocumented in source.
this
this()

Protected constructor, prevents external instantiation. (Use the singleton instance returned by opCall().)

opCall
This opCall()
opIn_r
Name* opIn_r(Value v)

Looks up an enum member's name from its value.

opIn_r
Value* opIn_r(Name n)

Looks up an enum member's value from its name.

opIndex
Name opIndex(Value v)

Looks up an enum member's name from its value, using opIndex.

opIndex
Value opIndex(Name n)

Looks up an enum member's value from its name, using opIndex.

length
size_t length()
min
Value min()
max
Value max()
opApply
int opApply(int delegate(ref const(Name) name, ref const(Value) value) dg)

foreach iteration over the names and values in the enum.

opApply
int opApply(int delegate(ref size_t i, ref const(Name) name, ref const(Value) value) dg)

foreach iteration over the names and values in the enum and their indices.

Inherited Members

From Enum1

__anonymous
mixin EnumBase!(["a"[]:1, "b":2, "c":3])
Undocumented in source.

Meta