bt2: add `IntegerRangeSet` const classes
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 3 Oct 2019 12:30:05 +0000 (08:30 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Oct 2019 18:14:29 +0000 (14:14 -0400)
commit8d99efe64b53dbcf1272be9b10e264fbd2eb6abb
tree113b7e6454f04078e5a8cb9f18997a9cfcfeef9a
parentf7c7acd16407bbf9fe897ae11c5116bd543352fa
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.024548 seconds and 4 git commands to generate.