Add missing C++ interface for the libbabeltrace2 trace IR API
[babeltrace.git] / src / cpp-common / bt2 / field-class.hpp
index a1cba0bf4b97d6612a6e35246ca9f1905fcaf32d..787a8cb3bdd5b5eff4de06c967ec29c1c2e0e49e 100644 (file)
@@ -113,6 +113,15 @@ class ConstVariantWithIntegerSelectorFieldClassOption;
 template <typename LibObjT, typename RangeSetT>
 class CommonVariantWithIntegerSelectorFieldClass;
 
+template <typename LibObjT>
+class CommonEventClass;
+
+template <typename LibObjT>
+class CommonStreamClass;
+
+template <typename LibObjT>
+class CommonTraceClass;
+
 enum class FieldClassType
 {
     BOOL = BT_FIELD_CLASS_TYPE_BOOL,
@@ -160,6 +169,13 @@ class CommonFieldClass : public internal::BorrowedObj<LibObjT>
         ConstVariantWithIntegerSelectorFieldClassOption<
             const bt_field_class_variant_with_selector_field_integer_signed_option>>;
 
+    // Allow *FieldClass() to call `fc._libObjPtr()`
+    friend class CommonEventClass<bt_event_class>;
+    friend class CommonStreamClass<bt_stream_class>;
+
+    // Allow create*FieldClass() to call `fc._libObjPtr()`
+    friend class CommonTraceClass<bt_trace_class>;
+
 private:
     using typename internal::BorrowedObj<LibObjT>::_ThisBorrowedObj;
 
This page took 0.023963 seconds and 4 git commands to generate.