private:
void _updateCurrentValue() noexcept
{
- if (_mIdx < _mContainer.size()) {
+ if (_mIdx < _mContainer.length()) {
_mCurrVal = _mContainer[_mIdx];
} else {
_mCurrVal = nonstd::nullopt;
return *this;
}
- std::uint64_t size() const noexcept
+ std::uint64_t length() const noexcept
{
return bt_field_class_enumeration_get_mapping_count(this->libObjPtr());
}
Iterator end() const noexcept
{
- return Iterator {*this, this->size()};
+ return Iterator {*this, this->length()};
}
Shared shared() const noexcept
this->appendMember(name.data(), fc);
}
- std::uint64_t size() const noexcept
+ std::uint64_t length() const noexcept
{
return bt_field_class_structure_get_member_count(this->libObjPtr());
}
Iterator end() const noexcept
{
- return Iterator {*this, this->size()};
+ return Iterator {*this, this->length()};
}
Member operator[](const std::uint64_t index) const noexcept
return *this;
}
- std::uint64_t size() const noexcept
+ std::uint64_t length() const noexcept
{
return bt_field_class_variant_get_option_count(this->libObjPtr());
}
Iterator end() const noexcept
{
- return Iterator {*this, this->size()};
+ return Iterator {*this, this->length()};
}
Option operator[](const std::uint64_t index) const noexcept
Iterator end() const noexcept
{
- return Iterator {*this, this->size()};
+ return Iterator {*this, this->length()};
}
Shared shared() const noexcept
return static_cast<Scope>(bt_field_path_get_root_scope(this->libObjPtr()));
}
- std::uint64_t size() const noexcept
+ std::uint64_t length() const noexcept
{
return bt_field_path_get_item_count(this->libObjPtr());
}
Iterator end() const noexcept
{
- return Iterator {*this, this->size()};
+ return Iterator {*this, this->length()};
}
Shared shared() const noexcept
explicit EnumerationFieldClassMappingLabels(
const bt_field_class_enumeration_mapping_label_array labels, const std::uint64_t size) :
_mLabels {labels},
- _mSize {size}
+ _mLen {size}
{
}
EnumerationFieldClassMappingLabels&
operator=(const EnumerationFieldClassMappingLabels&) noexcept = default;
- std::uint64_t size() const noexcept
+ std::uint64_t length() const noexcept
{
- return _mSize;
+ return _mLen;
}
bpstd::string_view operator[](const std::uint64_t index) const noexcept
private:
bt_field_class_enumeration_mapping_label_array _mLabels;
- std::uint64_t _mSize;
+ std::uint64_t _mLen;
};
template <typename LibObjT>
return Class {internal::CommonFieldSpec<LibObjT>::cls(this->libObjPtr())};
}
- std::uint64_t size() const noexcept
+ std::uint64_t length() const noexcept
{
- return this->cls().size();
+ return this->cls().length();
}
CommonField<LibObjT> operator[](const std::uint64_t index) const noexcept
template <>
struct CommonIntegerRangeSetSpec<const bt_integer_range_set_unsigned> final
{
- static std::uint64_t size(const bt_integer_range_set_unsigned * const libRangePtr) noexcept
+ static std::uint64_t length(const bt_integer_range_set_unsigned * const libRangePtr) noexcept
{
return bt_integer_range_set_get_range_count(
bt_integer_range_set_unsigned_as_range_set_const(libRangePtr));
template <>
struct CommonIntegerRangeSetSpec<const bt_integer_range_set_signed> final
{
- static std::uint64_t size(const bt_integer_range_set_signed * const libRangePtr) noexcept
+ static std::uint64_t length(const bt_integer_range_set_signed * const libRangePtr) noexcept
{
return bt_integer_range_set_get_range_count(
bt_integer_range_set_signed_as_range_set_const(libRangePtr));
}
}
- std::uint64_t size() const noexcept
+ std::uint64_t length() const noexcept
{
- return _Spec::size(this->libObjPtr());
+ return _Spec::length(this->libObjPtr());
}
Range operator[](const std::uint64_t index) const noexcept
Iterator end() const noexcept
{
- return Iterator {*this, this->size()};
+ return Iterator {*this, this->length()};
}
Shared shared() const noexcept
return nonstd::nullopt;
}
- std::uint64_t size() const noexcept
+ std::uint64_t length() const noexcept
{
return bt_trace_get_stream_count(this->libObjPtr());
}
return nonstd::nullopt;
}
- std::uint64_t size() const noexcept
+ std::uint64_t length() const noexcept
{
return bt_stream_class_get_event_class_count(this->libObjPtr());
}
bt_trace_class_assigns_automatic_stream_class_id(this->libObjPtr()));
}
- std::uint64_t size() const noexcept
+ std::uint64_t length() const noexcept
{
return bt_trace_class_get_stream_class_count(this->libObjPtr());
}
return bt_value_array_get_length(this->libObjPtr());
}
- /* Required by the `CommonIterator` template class */
- std::uint64_t size() const noexcept
- {
- return this->length();
- }
-
Iterator begin() const noexcept
{
return Iterator {*this, 0};
return *this;
}
- std::uint64_t size() const noexcept
+ std::uint64_t length() const noexcept
{
return bt_value_map_get_size(this->libObjPtr());
}
bool isEmpty() const noexcept
{
- return this->size() == 0;
+ return this->length() == 0;
}
nonstd::optional<CommonValue<LibObjT>> operator[](const char * const key) const noexcept