Namespace for internal Ditto SDK functionality. More...
Classes | |
| class | SynchronizedValue |
| Wrapper for a value that can be safely accessed from multiple threads. | |
Functions | |
| template<class R, class F, class T, class M> | |
| R | apply (F &&f, SynchronizedValue< T, M > &sv) |
| Applies a function to the wrapped value of a SynchronizedValue. | |
| template<class R, class F, class T, class M> | |
| R | apply (F &&f, const SynchronizedValue< T, M > &sv) |
| Applies a function to the wrapped value of a SynchronizedValue. | |
| template<class F, class T, class M> | |
| void | apply (F &&f, SynchronizedValue< T, M > &sv) |
| Applies a function to the wrapped value of a SynchronizedValue without returning a result. | |
| template<class F, class T, class M> | |
| void | apply (F &&f, const SynchronizedValue< T, M > &sv) |
| Applies a function to the wrapped value of a const SynchronizedValue without returning a result. | |
| template<class F, class T, class U, class M, class N> | |
| void | apply (F &&f, SynchronizedValue< T, M > &lhs, SynchronizedValue< U, N > &rhs) |
| Apply a function to the values of two SynchronizedValue objects. | |
| template<class T, class M, class N> | |
| void | swap (SynchronizedValue< T, M > &lhs, SynchronizedValue< T, N > &rhs) |
| Swaps the values of two SynchronizedValue objects. | |
| void | transaction_execute_cb (void *env_ptr, dittoffi_result_dittoffi_query_result_ptr_t ffi_result) |
Namespace for internal Ditto SDK functionality.
Customer code should not use any of the definitions in this namespace. These elements are not documented nor supported, and may change in any release without notice.
| R ditto::internal::apply | ( | F && | f, |
| const SynchronizedValue< T, M > & | sv ) |
Applies a function to the wrapped value of a SynchronizedValue.
| f | Function to apply, which takes a reference to the value type. |
| sv | Synchronized value to apply the function to. |
| void ditto::internal::apply | ( | F && | f, |
| const SynchronizedValue< T, M > & | sv ) |
Applies a function to the wrapped value of a const SynchronizedValue without returning a result.
| f | Function to apply, which takes a const reference to the value type. |
| sv | Const synchronized value to apply the function to. |
| void ditto::internal::apply | ( | F && | f, |
| SynchronizedValue< T, M > & | lhs, | ||
| SynchronizedValue< U, N > & | rhs ) |
Apply a function to the values of two SynchronizedValue objects.
| F | Function type, which must accept two references to the value type |
| T | Value type of first SynchronizedValue |
| U | Value type of second SynchronizedValue |
| M | Mutex type of first SynchronizedValue |
| N | Mutex type of second SynchronizedValue |
| lhs | First SynchronizedValue |
| rhs | Second SynchronizedValue |
| R ditto::internal::apply | ( | F && | f, |
| SynchronizedValue< T, M > & | sv ) |
Applies a function to the wrapped value of a SynchronizedValue.
| f | Function to apply, which takes a reference to the value type. |
| sv | Synchronized value to apply the function to. |
| void ditto::internal::apply | ( | F && | f, |
| SynchronizedValue< T, M > & | sv ) |
Applies a function to the wrapped value of a SynchronizedValue without returning a result.
| f | Function to apply, which takes a reference to the value type. |
| sv | Synchronized value to apply the function to. |
| void ditto::internal::swap | ( | SynchronizedValue< T, M > & | lhs, |
| SynchronizedValue< T, N > & | rhs ) |
Swaps the values of two SynchronizedValue objects.
std::swap<T> must be valid.
| T | Value type |
| M | Mutex type of first SynchronizedValue |
| N | Mutex type of second SynchronizedValue |
| lhs | First SynchronizedValue |
| rhs | Second SynchronizedValue |