bt2: add `IntegerRangeSet` const classes
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 3 Oct 2019 12:30:05 +0000 (08:30 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 3 Oct 2019 20:49:42 +0000 (16:49 -0400)
commitfc86600024a8b228b3b4b1f9931a0d5527e87acc
tree32f420bbfc69d2e3bd1015ad434ee4ef645e7dac
parent6d9a6c9ed16de85aa401a1434858e497eea3d57d
bt2: add `IntegerRangeSet` const classes

Outside of simple rename and splitting, this commit changes the `__eq__`
methods so that it's possible to compare const and non-const objects
together.

I also renamed the `_range_type` to `_range_pycls` to follow what is
done in other files and `_borrow_range_by_index_ptr` to
`_borrow_range_ptr_by_index` to increase readability.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I04b4027d297d088c6531be04681598653601579d
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2118
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/bindings/python/bt2/bt2/__init__.py
src/bindings/python/bt2/bt2/field_class.py
src/bindings/python/bt2/bt2/integer_range_set.py
tests/bindings/python/bt2/test_field_class.py
tests/bindings/python/bt2/test_integer_range_set.py
tests/bindings/python/bt2/test_package.py
This page took 0.024748 seconds and 4 git commands to generate.