Home
last modified time | relevance | path

Searched refs:ClassWithUnscopedEnum (Results 1 – 2 of 2) sorted by relevance

/external/python/pybind11/tests/
Dtest_enum.cpp51 class ClassWithUnscopedEnum { in TEST_SUBMODULE() class
62 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()
Dtest_enum.py164 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_function
170 first = m.ClassWithUnscopedEnum.EFirstMode
171 second = m.ClassWithUnscopedEnum.ESecondMode
219 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)