1#ifndef icu4x_ReorderedIndexMap_HPP
2#define icu4x_ReorderedIndexMap_HPP
21 diplomat::capi::DiplomatUsizeView icu4x_ReorderedIndexMap_as_slice_mv1(
const icu4x::capi::ReorderedIndexMap* self);
23 size_t icu4x_ReorderedIndexMap_len_mv1(
const icu4x::capi::ReorderedIndexMap* self);
25 bool icu4x_ReorderedIndexMap_is_empty_mv1(
const icu4x::capi::ReorderedIndexMap* self);
27 size_t icu4x_ReorderedIndexMap_get_mv1(
const icu4x::capi::ReorderedIndexMap* self,
size_t index);
29 void icu4x_ReorderedIndexMap_destroy_mv1(ReorderedIndexMap* self);
36 auto result = icu4x::capi::icu4x_ReorderedIndexMap_as_slice_mv1(this->AsFFI());
41 auto result = icu4x::capi::icu4x_ReorderedIndexMap_len_mv1(this->AsFFI());
46 auto result = icu4x::capi::icu4x_ReorderedIndexMap_is_empty_mv1(this->AsFFI());
51 auto result = icu4x::capi::icu4x_ReorderedIndexMap_get_mv1(this->AsFFI(),
56inline const icu4x::capi::ReorderedIndexMap* icu4x::ReorderedIndexMap::AsFFI()
const {
57 return reinterpret_cast<const icu4x::capi::ReorderedIndexMap*
>(
this);
60inline icu4x::capi::ReorderedIndexMap* icu4x::ReorderedIndexMap::AsFFI() {
61 return reinterpret_cast<icu4x::capi::ReorderedIndexMap*
>(
this);
64inline const icu4x::ReorderedIndexMap* icu4x::ReorderedIndexMap::FromFFI(
const icu4x::capi::ReorderedIndexMap* ptr) {
65 return reinterpret_cast<const icu4x::ReorderedIndexMap*
>(ptr);
68inline icu4x::ReorderedIndexMap* icu4x::ReorderedIndexMap::FromFFI(icu4x::capi::ReorderedIndexMap* ptr) {
69 return reinterpret_cast<icu4x::ReorderedIndexMap*
>(ptr);
72inline void icu4x::ReorderedIndexMap::operator
delete(
void* ptr) {
73 icu4x::capi::icu4x_ReorderedIndexMap_destroy_mv1(
reinterpret_cast<icu4x::capi::ReorderedIndexMap*
>(ptr));
Definition diplomat_runtime.hpp:223
size_t operator[](size_t index) const
Definition ReorderedIndexMap.hpp:50
size_t len() const
Definition ReorderedIndexMap.hpp:40
diplomat::span< const size_t > as_slice() const
Definition ReorderedIndexMap.hpp:35
bool is_empty() const
Definition ReorderedIndexMap.hpp:45