Remove Realm suffix
This commit is contained in:
parent
70e1967782
commit
db36ca5b9c
|
@ -16,8 +16,8 @@
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef REALM_BINDING_CONTEXT_HPP
|
#ifndef BINDING_CONTEXT_HPP
|
||||||
#define REALM_BINDING_CONTEXT_HPP
|
#define BINDING_CONTEXT_HPP
|
||||||
|
|
||||||
#include "index_set.hpp"
|
#include "index_set.hpp"
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace realm {
|
namespace realm {
|
||||||
// RealmBindingContext is the extension point for adding binding-specific behavior to
|
// BindingContext is the extension point for adding binding-specific behavior to
|
||||||
// a SharedRealm. It can be used to store additonal data associated with the
|
// a SharedRealm. It can be used to store additonal data associated with the
|
||||||
// Realm which is needed by the binding, and there are several methods which
|
// Realm which is needed by the binding, and there are several methods which
|
||||||
// can be overridden to receive notifications of state changes within the Realm.
|
// can be overridden to receive notifications of state changes within the Realm.
|
||||||
|
@ -33,7 +33,7 @@ namespace realm {
|
||||||
// A simple implementation which lets the user register functions to be
|
// A simple implementation which lets the user register functions to be
|
||||||
// called on refresh could look like the following:
|
// called on refresh could look like the following:
|
||||||
//
|
//
|
||||||
// class BindingContextImplementation : public RealmBindingContext {
|
// class BindingContextImplementation : public BindingContext {
|
||||||
// public:
|
// public:
|
||||||
// // A token returned from add_notification that can be used to remove the
|
// // A token returned from add_notification that can be used to remove the
|
||||||
// // notification later
|
// // notification later
|
||||||
|
@ -66,9 +66,9 @@ namespace realm {
|
||||||
// private:
|
// private:
|
||||||
// std::list<std::function<void ()>> m_registered_notifications;
|
// std::list<std::function<void ()>> m_registered_notifications;
|
||||||
// };
|
// };
|
||||||
class RealmBindingContext {
|
class BindingContext {
|
||||||
public:
|
public:
|
||||||
virtual ~RealmBindingContext() = default;
|
virtual ~BindingContext() = default;
|
||||||
|
|
||||||
// Called by the Realm when a write transaction is committed to the file by
|
// Called by the Realm when a write transaction is committed to the file by
|
||||||
// a different Realm instance (possibly in a different process)
|
// a different Realm instance (possibly in a different process)
|
||||||
|
@ -147,8 +147,8 @@ public:
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
inline void RealmBindingContext::will_change(std::vector<ObserverState> const&, std::vector<void*> const&) { }
|
inline void BindingContext::will_change(std::vector<ObserverState> const&, std::vector<void*> const&) { }
|
||||||
inline void RealmBindingContext::did_change(std::vector<ObserverState> const&, std::vector<void*> const&) { }
|
inline void BindingContext::did_change(std::vector<ObserverState> const&, std::vector<void*> const&) { }
|
||||||
} // namespace realm
|
} // namespace realm
|
||||||
|
|
||||||
#endif /* REALM_BINDING_CONTEXT_HPP */
|
#endif /* BINDING_CONTEXT_HPP */
|
|
@ -19,7 +19,7 @@
|
||||||
#include "shared_realm.hpp"
|
#include "shared_realm.hpp"
|
||||||
|
|
||||||
#include "external_commit_helper.hpp"
|
#include "external_commit_helper.hpp"
|
||||||
#include "realm_binding_context.hpp"
|
#include "binding_context.hpp"
|
||||||
#include "schema.hpp"
|
#include "schema.hpp"
|
||||||
#include "transact_log_handler.hpp"
|
#include "transact_log_handler.hpp"
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ namespace realm {
|
||||||
class ClientHistory;
|
class ClientHistory;
|
||||||
class Realm;
|
class Realm;
|
||||||
class RealmCache;
|
class RealmCache;
|
||||||
class RealmBindingContext;
|
class BindingContext;
|
||||||
typedef std::shared_ptr<Realm> SharedRealm;
|
typedef std::shared_ptr<Realm> SharedRealm;
|
||||||
typedef std::weak_ptr<Realm> WeakRealm;
|
typedef std::weak_ptr<Realm> WeakRealm;
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ namespace realm {
|
||||||
std::shared_ptr<_impl::ExternalCommitHelper> m_notifier;
|
std::shared_ptr<_impl::ExternalCommitHelper> m_notifier;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
std::unique_ptr<RealmBindingContext> m_binding_context;
|
std::unique_ptr<BindingContext> m_binding_context;
|
||||||
|
|
||||||
// FIXME private
|
// FIXME private
|
||||||
Group *read_group();
|
Group *read_group();
|
||||||
|
|
Loading…
Reference in New Issue