Realm C++ SDK Version v2.1.0
Public Member Functions | Public Attributes | List of all members

realm::object_change_callback_wrapper< T > Struct Template Reference

Inheritance diagram for realm::object_change_callback_wrapper< T >:
realm::internal::bridge::collection_change_callback

Public Member Functions

 object_change_callback_wrapper (std::function< void(object_change< T >)> &&b, const T *obj, std::shared_ptr< internal::bridge::object > internal_object)
 
void populate_properties (internal::bridge::collection_change_set const &c)
 
std::optional< std::vector< typename decltype(T::schema)::variant_t > > read_values (internal::bridge::collection_change_set const &c)
 
void before (internal::bridge::collection_change_set const &c) override
 
void after (internal::bridge::collection_change_set const &c) override
 
void error (std::exception_ptr err)
 
void forward_change (const T *ptr, std::vector< std::string > property_names, std::vector< typename decltype(T::schema)::variant_t > old_values, std::vector< typename decltype(T::schema)::variant_t > new_values, const std::exception_ptr &error)
 
virtual void before (collection_change_set const &c)=0
 
virtual void after (collection_change_set const &c)=0
 

Public Attributes

std::function< void(object_change< T >)> block
 
const T object
 
std::shared_ptr< internal::bridge::objectm_object
 
std::optional< std::vector< std::string > > property_names = std::nullopt
 
std::optional< std::vector< typename decltype(T::schema)::variant_t > > old_values = std::nullopt
 
bool deleted = false
 

Member Function Documentation

◆ after()

template<typename T >
void realm::object_change_callback_wrapper< T >::after ( internal::bridge::collection_change_set const &  c)
inlineoverridevirtual

◆ before()

template<typename T >
void realm::object_change_callback_wrapper< T >::before ( internal::bridge::collection_change_set const &  c)
inlineoverridevirtual

The documentation for this struct was generated from the following file: