Add C++ interface for the libbabeltrace2 `bt_clock_class` API
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 17 Dec 2020 04:33:50 +0000 (23:33 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 28 Jan 2022 16:22:26 +0000 (11:22 -0500)
commitcfc44919ddd4ae370a1ef47bf45fc05f0afac57a
tree40ae038f67d5d4a042b00b3024e33ae9b6540daa
parentb239731a3e335b5f7371fcfcfa553013a58733e3
Add C++ interface for the libbabeltrace2 `bt_clock_class` API

This patch adds C++ wrappers for Babeltrace 2 clock class objects.

The two new available types are `bt2::ClockClass` and
`bt2::ConstClockClass`.

This new template class follows the approach of other wrappers in
`src/cpp-common/bt2`.

Because `bt2::ClockClass::userAttributes()` needs to access the
libbabeltrace2 pointer of the map value, `bt2::CommonValue` makes
`bt2::ClockClass` a friend.

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