19#ifndef CPPREALM_BRIDGE_LIST_HPP
20#define CPPRALM_BRIDGE_LIST_HPP
26#include <cpprealm/internal/bridge/utils.hpp>
32namespace realm::internal::bridge {
44 structnotification_token ;
45 struct collection_change_callback;
60 [[nodiscard]]
size_t size()
const;
62 remove_all()을
무효화 합니다.
64 테이블 get_table()
const;
66 무효 add(
const std::string&);
67 무효 add(
const int64_t &);
68 무효 add(
const double &);
79 void 설정하다(
size_t pos,
const int64_t &);
80 void set(
size_t pos,
const double &);
81 void 설정하다(
size_t pos,
const bool &);
82 void set(
size_t pos,
const std::string &);
86 void set(
size_t pos,
const 혼합 &);
90 size_t find(
const int64_t &);
91 size_t find(
const bool &);
92 size_t find(
const double &);
93 size_t find(
const std::string &);
94 size_t find(
const uuid &);
97 size_t find(
const 혼합 &);
98 size_t find(
const 타임스탬프 &);
99 size_t find(
const 바이너리&);
102 결과 sort(
const std::vector<sort_descriptor>&);
103 [[nodiscard]]
결과 as_results()
const;
105 notification_token add_notification_callback(std::shared_ptr<collection_change_callback>);
107 템플릿 <
typename ValueType>
108 친구 ValueType get(
const list&,
size_t idx);
109 친구 인라인 List* get_list(
list& lst);
110 친구 인라인 const List* get_list(
const list& lst);
111 inline :: 영역::List* get_list();
112 inline const :: 영역::List* get_list()
const;
113#ifdef CPPRALM_HAVE_GENERATED_BRIDGE_TYPES
114 storage::List m_list[1];
116 std::shared_ptr<::realm::List> m_list;
120 템플릿 <
typename ValueType>
121 [[nodiscard]] ValueType get(
const list&,
size_t idx);
123 [[nodiscard]] std::string get(
const list&,
size_t idx);
125 [[nodiscard]] int64_t get(
const list&,
size_t idx);
127 [[nodiscard]]
double get(
const list&,
size_t idx);
129 [[nodiscard]]
바이너리 get(
const list&,
size_t idx);
131 [[nodiscard]]
uuid get(
const list&,
size_t idx);
137 [[nodiscard]]
mixed get(
const list&,
size_t idx);
139 [[nodiscard]]
obj get(
const list&,
size_t idx);
142 [[nodiscard]] std::optional<int64_t> get(
const list& lst,
size_t idx);
144 [[nodiscard]] std::optional<double> get(
const list& lst,
size_t idx);
146 [[nodiscard]] std::optional<bool> get(
const list& lst,
size_t idx);
148 [[nodiscard]] std::optional<uuid> get(
const list& lst,
size_t idx);
150 [[nodiscard]] std::optional<object_id> get(
const list& lst,
size_t idx);
152 [[nodiscard]] std::optional<std::string> get(
const list& lst,
size_t idx);
154 [[nodiscard]] std::optional<binary> get(
const list& lst,
size_t idx);
156 [[nodiscard]] std::optional<timestamp> get(
const list& lst,
size_t idx);