Searched refs:ClassWithUnscopedEnum (Results 1 – 2 of 2) sorted by relevance
51 class ClassWithUnscopedEnum { in TEST_SUBMODULE() class62 py::class_<ClassWithUnscopedEnum> exenum_class(m, "ClassWithUnscopedEnum"); in TEST_SUBMODULE()63 exenum_class.def_static("test_function", &ClassWithUnscopedEnum::test_function); in TEST_SUBMODULE()64 py::enum_<ClassWithUnscopedEnum::EMode>(exenum_class, "EMode") in TEST_SUBMODULE()65 .value("EFirstMode", ClassWithUnscopedEnum::EFirstMode) in TEST_SUBMODULE()66 .value("ESecondMode", ClassWithUnscopedEnum::ESecondMode) in TEST_SUBMODULE()
164 assert str(m.ClassWithUnscopedEnum.EMode.EFirstMode) == "EMode.EFirstMode"165 assert str(m.ClassWithUnscopedEnum.EFirstMode) == "EMode.EFirstMode"166 assert repr(m.ClassWithUnscopedEnum.EMode.EFirstMode) == "<EMode.EFirstMode: 1>"167 assert repr(m.ClassWithUnscopedEnum.EFirstMode) == "<EMode.EFirstMode: 1>"169 f = m.ClassWithUnscopedEnum.test_function170 first = m.ClassWithUnscopedEnum.EFirstMode171 second = m.ClassWithUnscopedEnum.ESecondMode219 m.test_enum_to_int(m.ClassWithUnscopedEnum.EMode.EFirstMode)221 m.test_enum_to_uint(m.ClassWithUnscopedEnum.EMode.EFirstMode)223 m.test_enum_to_long_long(m.ClassWithUnscopedEnum.EMode.EFirstMode)