return this->_libTypeIs(BT_FIELD_CLASS_TYPE_VARIANT_WITH_SIGNED_INTEGER_SELECTOR_FIELD);
}
+ template <typename FieldClassT>
+ FieldClassT as() const noexcept
+ {
+ return FieldClassT {this->libObjPtr()};
+ }
+
CommonBitArrayFieldClass<LibObjT> asBitArray() const noexcept;
CommonIntegerFieldClass<LibObjT> asInteger() const noexcept;
CommonBaseEnumerationFieldClass<LibObjT> asEnumeration() const noexcept;
return this->cls().isVariant();
}
+ template <typename FieldT>
+ FieldT as() const noexcept
+ {
+ return FieldT {this->libObjPtr()};
+ }
+
CommonBoolField<LibObjT> asBool() const noexcept;
CommonBitArrayField<LibObjT> asBitArray() const noexcept;
CommonUnsignedIntegerField<LibObjT> asUnsignedInteger() const noexcept;
return Shared::createWithRef(*this);
}
+ template <typename MessageT>
+ MessageT as() const noexcept
+ {
+ return MessageT {this->libObjPtr()};
+ }
+
CommonStreamBeginningMessage<LibObjT> asStreamBeginning() const noexcept;
CommonStreamEndMessage<LibObjT> asStreamEnd() const noexcept;
CommonEventMessage<LibObjT> asEvent() const noexcept;
return Shared::createWithRef(*this);
}
+ template <typename ValueT>
+ ValueT as() const noexcept
+ {
+ return ValueT {this->libObjPtr()};
+ }
+
CommonNullValue<LibObjT> asNull() const noexcept;
CommonBoolValue<LibObjT> asBool() const noexcept;
CommonSignedIntegerValue<LibObjT> asSignedInteger() const noexcept;