X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=src%2Fcpp-common%2Fbt2%2Ffield.hpp;h=6853510eb0cf55ddfc4536d93a0500540a01b1e6;hb=bd6e66fd0c3012ad6bcb03cdb3fb687767fb6ccf;hp=427cdd51017b7b79af64251b6cbbfac256e72703;hpb=5ca48ae961d956ce188ff45b2d2c04127874276a;p=babeltrace.git diff --git a/src/cpp-common/bt2/field.hpp b/src/cpp-common/bt2/field.hpp index 427cdd51..6853510e 100644 --- a/src/cpp-common/bt2/field.hpp +++ b/src/cpp-common/bt2/field.hpp @@ -1537,98 +1537,84 @@ struct TypeDescr : public VariantFieldTypeDescr template CommonBoolField CommonField::asBool() const noexcept { - BT_ASSERT_DBG(this->isBool()); return CommonBoolField {this->libObjPtr()}; } template CommonBitArrayField CommonField::asBitArray() const noexcept { - BT_ASSERT_DBG(this->isBitArray()); return CommonBitArrayField {this->libObjPtr()}; } template CommonUnsignedIntegerField CommonField::asUnsignedInteger() const noexcept { - BT_ASSERT_DBG(this->isUnsignedInteger()); return CommonUnsignedIntegerField {this->libObjPtr()}; } template CommonSignedIntegerField CommonField::asSignedInteger() const noexcept { - BT_ASSERT_DBG(this->isSignedInteger()); return CommonSignedIntegerField {this->libObjPtr()}; } template CommonUnsignedEnumerationField CommonField::asUnsignedEnumeration() const noexcept { - BT_ASSERT_DBG(this->isUnsignedEnumeration()); return CommonUnsignedEnumerationField {this->libObjPtr()}; } template CommonSignedEnumerationField CommonField::asSignedEnumeration() const noexcept { - BT_ASSERT_DBG(this->isSignedEnumeration()); return CommonSignedEnumerationField {this->libObjPtr()}; } template CommonSinglePrecisionRealField CommonField::asSinglePrecisionReal() const noexcept { - BT_ASSERT_DBG(this->isSinglePrecisionReal()); return CommonSinglePrecisionRealField {this->libObjPtr()}; } template CommonDoublePrecisionRealField CommonField::asDoublePrecisionReal() const noexcept { - BT_ASSERT_DBG(this->isDoublePrecisionReal()); return CommonDoublePrecisionRealField {this->libObjPtr()}; } template CommonStringField CommonField::asString() const noexcept { - BT_ASSERT_DBG(this->isString()); return CommonStringField {this->libObjPtr()}; } template CommonStructureField CommonField::asStructure() const noexcept { - BT_ASSERT_DBG(this->isStructure()); return CommonStructureField {this->libObjPtr()}; } template CommonArrayField CommonField::asArray() const noexcept { - BT_ASSERT_DBG(this->isArray()); return CommonArrayField {this->libObjPtr()}; } template CommonDynamicArrayField CommonField::asDynamicArray() const noexcept { - BT_ASSERT_DBG(this->isDynamicArray()); return CommonDynamicArrayField {this->libObjPtr()}; } template CommonOptionField CommonField::asOption() const noexcept { - BT_ASSERT_DBG(this->isOption()); return CommonOptionField {this->libObjPtr()}; } template CommonVariantField CommonField::asVariant() const noexcept { - BT_ASSERT_DBG(this->isVariant()); return CommonVariantField {this->libObjPtr()}; }