X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fcpp-common%2Fbt2%2Ffield-class.hpp;h=787a8cb3bdd5b5eff4de06c967ec29c1c2e0e49e;hp=a1cba0bf4b97d6612a6e35246ca9f1905fcaf32d;hb=74fc764df204365c04acdff600bc6268fde5984a;hpb=a1e3187822e3320ce83e37a0e30bc68e176112d4 diff --git a/src/cpp-common/bt2/field-class.hpp b/src/cpp-common/bt2/field-class.hpp index a1cba0bf..787a8cb3 100644 --- a/src/cpp-common/bt2/field-class.hpp +++ b/src/cpp-common/bt2/field-class.hpp @@ -113,6 +113,15 @@ class ConstVariantWithIntegerSelectorFieldClassOption; template class CommonVariantWithIntegerSelectorFieldClass; +template +class CommonEventClass; + +template +class CommonStreamClass; + +template +class CommonTraceClass; + enum class FieldClassType { BOOL = BT_FIELD_CLASS_TYPE_BOOL, @@ -160,6 +169,13 @@ class CommonFieldClass : public internal::BorrowedObj ConstVariantWithIntegerSelectorFieldClassOption< const bt_field_class_variant_with_selector_field_integer_signed_option>>; + // Allow *FieldClass() to call `fc._libObjPtr()` + friend class CommonEventClass; + friend class CommonStreamClass; + + // Allow create*FieldClass() to call `fc._libObjPtr()` + friend class CommonTraceClass; + private: using typename internal::BorrowedObj::_ThisBorrowedObj;