X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=src%2Fcpp-common%2Fbt2%2Ffield-class.hpp;h=857c33a718335514caad8ad78d26936c188f103a;hb=bd6e66fd0c3012ad6bcb03cdb3fb687767fb6ccf;hp=c6c4d690ff7870e93b26ee6bc4852630991c3d9c;hpb=5ca48ae961d956ce188ff45b2d2c04127874276a;p=babeltrace.git diff --git a/src/cpp-common/bt2/field-class.hpp b/src/cpp-common/bt2/field-class.hpp index c6c4d690..857c33a7 100644 --- a/src/cpp-common/bt2/field-class.hpp +++ b/src/cpp-common/bt2/field-class.hpp @@ -2551,21 +2551,18 @@ struct TypeDescr : template CommonBitArrayFieldClass CommonFieldClass::asBitArray() const noexcept { - BT_ASSERT_DBG(this->isBitArray()); return CommonBitArrayFieldClass {this->libObjPtr()}; } template CommonIntegerFieldClass CommonFieldClass::asInteger() const noexcept { - BT_ASSERT_DBG(this->isInteger()); return CommonIntegerFieldClass {this->libObjPtr()}; } template CommonBaseEnumerationFieldClass CommonFieldClass::asEnumeration() const noexcept { - BT_ASSERT_DBG(this->isEnumeration()); return CommonBaseEnumerationFieldClass {this->libObjPtr()}; } @@ -2590,21 +2587,18 @@ CommonFieldClass::asSignedEnumeration() const noexcept template CommonStructureFieldClass CommonFieldClass::asStructure() const noexcept { - BT_ASSERT_DBG(this->isStructure()); return CommonStructureFieldClass {this->libObjPtr()}; } template CommonArrayFieldClass CommonFieldClass::asArray() const noexcept { - BT_ASSERT_DBG(this->isArray()); return CommonArrayFieldClass {this->libObjPtr()}; } template CommonStaticArrayFieldClass CommonFieldClass::asStaticArray() const noexcept { - BT_ASSERT_DBG(this->isStaticArray()); return CommonStaticArrayFieldClass {this->libObjPtr()}; } @@ -2612,14 +2606,12 @@ template CommonDynamicArrayWithLengthFieldClass CommonFieldClass::asDynamicArrayWithLength() const noexcept { - BT_ASSERT_DBG(this->isDynamicArrayWithLength()); return CommonDynamicArrayWithLengthFieldClass {this->libObjPtr()}; } template CommonOptionFieldClass CommonFieldClass::asOption() const noexcept { - BT_ASSERT_DBG(this->isOption()); return CommonOptionFieldClass {this->libObjPtr()}; } @@ -2627,7 +2619,6 @@ template CommonOptionWithSelectorFieldClass CommonFieldClass::asOptionWithSelector() const noexcept { - BT_ASSERT_DBG(this->isOptionWithSelector()); return CommonOptionWithSelectorFieldClass {this->libObjPtr()}; } @@ -2635,7 +2626,6 @@ template CommonOptionWithBoolSelectorFieldClass CommonFieldClass::asOptionWithBoolSelector() const noexcept { - BT_ASSERT_DBG(this->isOptionWithBoolSelector()); return CommonOptionWithBoolSelectorFieldClass {this->libObjPtr()}; } @@ -2660,7 +2650,6 @@ CommonFieldClass::asOptionWithSignedIntegerSelector() const noexcept template CommonVariantFieldClass CommonFieldClass::asVariant() const noexcept { - BT_ASSERT_DBG(this->isVariant()); return CommonVariantFieldClass {this->libObjPtr()}; } @@ -2668,7 +2657,6 @@ template CommonVariantWithoutSelectorFieldClass CommonFieldClass::asVariantWithoutSelector() const noexcept { - BT_ASSERT_DBG(this->isVariantWithoutSelector()); return CommonVariantWithoutSelectorFieldClass {this->libObjPtr()}; } @@ -2676,7 +2664,6 @@ template CommonVariantWithSelectorFieldClass CommonFieldClass::asVariantWithSelector() const noexcept { - BT_ASSERT_DBG(this->isVariantWithSelector()); return CommonVariantWithSelectorFieldClass {this->libObjPtr()}; }