19#ifndef CPPREALM_BRIDGE_SET_HPP
20#define CPPREALM_BRIDGE_SET_HPP
26#include <cpprealm/internal/bridge/utils.hpp>
29 namespace object_store {
34namespace realm::internal::bridge {
45 struct notification_token;
46 struct collection_change_callback;
51 set& operator=(
const set& other) ;
53 set& operator=(
set&& other);
55 set(
const object_store::Set&);
56 operator object_store::Set()
const;
59 mixed get_any(
const size_t& i)
const;
60 obj get_obj(
const size_t& i)
const;
62 [[nodiscard]]
size_t size()
const;
65 table get_table()
const;
67 std::pair<size_t, bool> insert(
const std::string&);
68 std::pair<size_t, bool> insert(
const int64_t &);
69 std::pair<size_t, bool> insert(
const double &);
70 std::pair<size_t, bool> insert(
const bool &);
71 std::pair<size_t, bool> insert(
const binary &);
72 std::pair<size_t, bool> insert(
const uuid &);
73 std::pair<size_t, bool> insert(
const object_id &);
74 std::pair<size_t, bool> insert(
const mixed &);
75 std::pair<size_t, bool> insert(
const obj_key &);
76 std::pair<size_t, bool> insert(
const timestamp &);
78 void remove(
const int64_t &);
79 void remove(
const bool &);
80 void remove(
const double &);
81 void remove(
const std::string &);
82 void remove(
const uuid &);
84 void remove(
const mixed &);
86 void remove(
const binary&);
89 size_t find(
const int64_t &);
90 size_t find(
const bool &);
91 size_t find(
const double &);
92 size_t find(
const std::string &);
93 size_t find(
const uuid &);
95 size_t find(
const mixed &);
97 size_t find(
const binary&);
99 notification_token add_notification_callback(std::shared_ptr<collection_change_callback>);
101 const object_store::Set* get_set()
const;
102 object_store::Set* get_set();
103#ifdef CPPREALM_HAVE_GENERATED_BRIDGE_TYPES
104 storage::Set m_set[1];
106 std::shared_ptr<object_store::Set> m_set;
Definition: binary.hpp:30
Definition: col_key.hpp:28
Definition: object.hpp:45
Definition: obj_key.hpp:33
Definition: object_id.hpp:31
Definition: timestamp.hpp:30