Add C++ interface for the libbabeltrace2 `bt_integer_range_*` API
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 16 Dec 2020 21:16:55 +0000 (16:16 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 28 Jan 2022 16:22:26 +0000 (11:22 -0500)
commite0c2afae96a9cdfd2a5bab7f97a6342131da499c
treeca6b65695e7cbb169a9394cc446d0fc1e77de27c
parent33a17831def0537394f436c42d02ba53da8133c3
Add C++ interface for the libbabeltrace2 `bt_integer_range_*` API

This patch adds C++ wrappers for Babeltrace 2 integer range objects.

The two new available types are `bt2::ConstUnsignedIntegerRange` and
`bt2::ConstSignedIntegerRange`.

Get the lower and upper bounds of an integer range object with its
lower() and upper() methods.

Compare compatible integer ranges with with operator==() and
operator!=().

You can't create such objects: they are what integer range set methods
(not part of `src/cpp-common/bt2` yet) return.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I712a34756aa170b862b358e3553814ffa59547e8
Reviewed-on: https://review.lttng.org/c/babeltrace/+/4597
src/cpp-common/bt2/integer-range.hpp [new file with mode: 0644]
This page took 0.024125 seconds and 4 git commands to generate.