cpp-common: Add `CommonFieldClass::isReal()` method
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 24 Feb 2022 19:37:29 +0000 (14:37 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 11 Sep 2023 15:24:02 +0000 (11:24 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I420462ccfd78c06d7b496f4650af77cd2d2e57b7
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7385
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10756
CI-Build: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/bt2/field-class.hpp

index a248d9d1425d7c591419ad04a3ae5884f3b84745..642aff780ea2909920820fb0dfc744367ab37e27 100644 (file)
@@ -250,6 +250,11 @@ public:
         return this->_libTypeIs(BT_FIELD_CLASS_TYPE_SIGNED_ENUMERATION);
     }
 
+    bool isReal() const noexcept
+    {
+        return this->_libTypeIs(BT_FIELD_CLASS_TYPE_REAL);
+    }
+
     bool isSinglePrecisionReal() const noexcept
     {
         return this->_libTypeIs(BT_FIELD_CLASS_TYPE_SINGLE_PRECISION_REAL);
This page took 0.024777 seconds and 4 git commands to generate.