return OptionFieldClass::Shared::createWithoutRef(libObjPtr);
}
+ OptionFieldClass::Shared
+ createOptionWithoutSelectorFieldLocationFieldClass(const FieldClass optionalFieldClass) const
+ {
+ static_assert(!std::is_const<LibObjT>::value, "Not available with `bt2::ConstTraceClass`.");
+
+ const auto libObjPtr = bt_field_class_option_without_selector_field_location_create(
+ this->libObjPtr(), optionalFieldClass.libObjPtr());
+
+ internal::validateCreatedObjPtr(libObjPtr);
+ return OptionFieldClass::Shared::createWithoutRef(libObjPtr);
+ }
+
OptionWithBoolSelectorFieldClass::Shared
createOptionWithBoolSelectorFieldClass(const FieldClass optionalFieldClass,
const FieldClass selectorFieldClass) const
return OptionWithBoolSelectorFieldClass::Shared::createWithoutRef(libObjPtr);
}
+ OptionWithBoolSelectorFieldClass::Shared createOptionWithBoolSelectorFieldLocationFieldClass(
+ const FieldClass optionalFieldClass, const ConstFieldLocation selectorFieldLocation) const
+ {
+ static_assert(!std::is_const<LibObjT>::value, "Not available with `bt2::ConstTraceClass`.");
+
+ const auto libObjPtr = bt_field_class_option_with_selector_field_location_bool_create(
+ this->libObjPtr(), optionalFieldClass.libObjPtr(), selectorFieldLocation.libObjPtr());
+
+ internal::validateCreatedObjPtr(libObjPtr);
+ return OptionWithBoolSelectorFieldClass::Shared::createWithoutRef(libObjPtr);
+ }
+
OptionWithUnsignedIntegerSelectorFieldClass::Shared
createOptionWithUnsignedIntegerSelectorFieldClass(
const FieldClass optionalFieldClass, const IntegerFieldClass selectorFieldClass,
return OptionWithUnsignedIntegerSelectorFieldClass::Shared::createWithoutRef(libObjPtr);
}
+ OptionWithUnsignedIntegerSelectorFieldClass::Shared
+ createOptionWithUnsignedIntegerSelectorFieldLocationFieldClass(
+ const FieldClass optionalFieldClass, const ConstFieldLocation selectorFieldLocation,
+ const ConstUnsignedIntegerRangeSet ranges) const
+ {
+ static_assert(!std::is_const<LibObjT>::value, "Not available with `bt2::ConstTraceClass`.");
+
+ const auto libObjPtr =
+ bt_field_class_option_with_selector_field_location_integer_unsigned_create(
+ this->libObjPtr(), optionalFieldClass.libObjPtr(),
+ selectorFieldLocation.libObjPtr(), ranges.libObjPtr());
+
+ internal::validateCreatedObjPtr(libObjPtr);
+ return OptionWithUnsignedIntegerSelectorFieldClass::Shared::createWithoutRef(libObjPtr);
+ }
+
OptionWithSignedIntegerSelectorFieldClass::Shared
createOptionWithSignedIntegerSelectorFieldClass(const FieldClass optionalFieldClass,
const IntegerFieldClass selectorFieldClass,
return OptionWithSignedIntegerSelectorFieldClass::Shared::createWithoutRef(libObjPtr);
}
+ OptionWithSignedIntegerSelectorFieldClass::Shared
+ createOptionWithSignedIntegerSelectorFieldLocationFieldClass(
+ const FieldClass optionalFieldClass, const ConstFieldLocation selectorFieldLocation,
+ const ConstSignedIntegerRangeSet ranges) const
+ {
+ static_assert(!std::is_const<LibObjT>::value, "Not available with `bt2::ConstTraceClass`.");
+
+ const auto libObjPtr =
+ bt_field_class_option_with_selector_field_location_integer_signed_create(
+ this->libObjPtr(), optionalFieldClass.libObjPtr(),
+ selectorFieldLocation.libObjPtr(), ranges.libObjPtr());
+
+ internal::validateCreatedObjPtr(libObjPtr);
+ return OptionWithSignedIntegerSelectorFieldClass::Shared::createWithoutRef(libObjPtr);
+ }
+
VariantWithoutSelectorFieldClass::Shared createVariantFieldClass() const
{
static_assert(!std::is_const<LibObjT>::value, "Not available with `bt2::ConstTraceClass`.");