WeekdaySetIterator.d.hpp (1731B)
1 #ifndef icu4x_WeekdaySetIterator_D_HPP 2 #define icu4x_WeekdaySetIterator_D_HPP 3 4 #include <stdio.h> 5 #include <stdint.h> 6 #include <stddef.h> 7 #include <stdbool.h> 8 #include <memory> 9 #include <functional> 10 #include <optional> 11 #include <cstdlib> 12 #include "../diplomat_runtime.hpp" 13 14 namespace icu4x { 15 class Weekday; 16 } 17 18 19 namespace icu4x { 20 namespace capi { 21 struct WeekdaySetIterator; 22 } // namespace capi 23 } // namespace 24 25 namespace icu4x { 26 /** 27 * Documents which days of the week are considered to be a part of the weekend 28 * 29 * See the [Rust documentation for `WeekdaySetIterator`](https://docs.rs/icu/latest/icu/calendar/week/struct.WeekdaySetIterator.html) for more information. 30 */ 31 class WeekdaySetIterator { 32 public: 33 34 /** 35 * See the [Rust documentation for `next`](https://docs.rs/icu/latest/icu/calendar/week/struct.WeekdaySetIterator.html#method.next) for more information. 36 */ 37 inline std::optional<icu4x::Weekday> next(); 38 39 inline const icu4x::capi::WeekdaySetIterator* AsFFI() const; 40 inline icu4x::capi::WeekdaySetIterator* AsFFI(); 41 inline static const icu4x::WeekdaySetIterator* FromFFI(const icu4x::capi::WeekdaySetIterator* ptr); 42 inline static icu4x::WeekdaySetIterator* FromFFI(icu4x::capi::WeekdaySetIterator* ptr); 43 inline static void operator delete(void* ptr); 44 private: 45 WeekdaySetIterator() = delete; 46 WeekdaySetIterator(const icu4x::WeekdaySetIterator&) = delete; 47 WeekdaySetIterator(icu4x::WeekdaySetIterator&&) noexcept = delete; 48 WeekdaySetIterator operator=(const icu4x::WeekdaySetIterator&) = delete; 49 WeekdaySetIterator operator=(icu4x::WeekdaySetIterator&&) noexcept = delete; 50 static void operator delete[](void*, size_t) = delete; 51 }; 52 53 } // namespace 54 #endif // icu4x_WeekdaySetIterator_D_HPP