pybind11/example/example-constants-and-functions.ref

41 lines
1.0 KiB
Plaintext
Raw Normal View History

2015-07-05 18:05:44 +00:00
<class 'example.EMyEnumeration'>
EMyEnumeration.EFirstEntry
EMyEnumeration.ESecondEntry
EMyEnumeration.EFirstEntry
2015-10-01 14:48:34 +00:00
test_function()
2015-07-05 18:05:44 +00:00
False
2015-10-01 14:48:34 +00:00
test_function(7)
2015-07-05 18:05:44 +00:00
3.5
2015-10-01 14:48:34 +00:00
test_function(enum=1)
2015-07-05 18:05:44 +00:00
None
2015-10-01 14:48:34 +00:00
test_function(enum=2)
2015-07-05 18:05:44 +00:00
None
enum->integer = 2
integer->enum = EMyEnumeration.ESecondEntry
A constant = 14
<class 'example.EMode'>
2015-07-05 18:05:44 +00:00
EMode.EFirstMode
EMode.EFirstMode
ExampleWithEnum::test_function(enum=1)
ExampleWithEnum::test_function(enum=1)
ExampleWithEnum::test_function(enum=1)
Equality test 1: True
ExampleWithEnum::test_function(enum=1)
ExampleWithEnum::test_function(enum=1)
Inequality test 1: False
ExampleWithEnum::test_function(enum=1)
ExampleWithEnum::test_function(enum=2)
Equality test 2: False
ExampleWithEnum::test_function(enum=1)
ExampleWithEnum::test_function(enum=2)
Inequality test 2: True
ExampleWithEnum::test_function(enum=1)
ExampleWithEnum::test_function(enum=2)
ExampleWithEnum::test_function(enum=1)
ExampleWithEnum::test_function(enum=2)
Hashing test = {EMode.EFirstMode: 3, EMode.ESecondMode: 4}
bytes[0]=1
bytes[1]=0
bytes[2]=2
bytes[3]=0