@dittolive/ditto 4.5.0 → 4.5.1-experimental.aarch64-linux.1.aarch64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/node/ditto.cjs.js +2 -9620
- package/node/{ditto.linux-x64.node → ditto.linux-arm64.node} +0 -0
- package/package.json +38 -34
- package/types/ditto.d.ts +0 -2
- package/web/ditto.es6.js +1 -1
- package/web/ditto.umd.js +1 -1
- package/web/ditto.wasm +0 -0
- package/DittoReactNative.podspec +0 -27
- package/node/ditto.darwin-arm64.node +0 -0
- package/node/ditto.darwin-x64.node +0 -0
- package/node/ditto.linux-arm.node +0 -0
- package/node/ditto.win32-x64.node +0 -0
- package/node/transports.darwin-arm64.node +0 -0
- package/node/transports.darwin-x64.node +0 -0
- package/react-native/android/CMakeLists.txt +0 -37
- package/react-native/android/build.gradle +0 -203
- package/react-native/android/cpp-adapter.cpp +0 -254
- package/react-native/android/gradle.properties +0 -5
- package/react-native/android/src/main/AndroidManifest.xml +0 -4
- package/react-native/android/src/main/java/com/dittolive/rnsdk/DittoRNSDKModule.java +0 -85
- package/react-native/android/src/main/java/com/dittolive/rnsdk/DittoRNSDKPackage.java +0 -28
- package/react-native/boost/boost/assert.hpp +0 -85
- package/react-native/boost/boost/config/abi/borland_prefix.hpp +0 -27
- package/react-native/boost/boost/config/abi/borland_suffix.hpp +0 -12
- package/react-native/boost/boost/config/abi/msvc_prefix.hpp +0 -22
- package/react-native/boost/boost/config/abi/msvc_suffix.hpp +0 -8
- package/react-native/boost/boost/config/abi_prefix.hpp +0 -25
- package/react-native/boost/boost/config/abi_suffix.hpp +0 -25
- package/react-native/boost/boost/config/assert_cxx03.hpp +0 -211
- package/react-native/boost/boost/config/assert_cxx11.hpp +0 -209
- package/react-native/boost/boost/config/assert_cxx14.hpp +0 -47
- package/react-native/boost/boost/config/assert_cxx17.hpp +0 -62
- package/react-native/boost/boost/config/assert_cxx20.hpp +0 -59
- package/react-native/boost/boost/config/assert_cxx98.hpp +0 -23
- package/react-native/boost/boost/config/auto_link.hpp +0 -525
- package/react-native/boost/boost/config/compiler/borland.hpp +0 -339
- package/react-native/boost/boost/config/compiler/clang.hpp +0 -366
- package/react-native/boost/boost/config/compiler/clang_version.hpp +0 -83
- package/react-native/boost/boost/config/compiler/codegear.hpp +0 -385
- package/react-native/boost/boost/config/compiler/comeau.hpp +0 -59
- package/react-native/boost/boost/config/compiler/common_edg.hpp +0 -183
- package/react-native/boost/boost/config/compiler/compaq_cxx.hpp +0 -19
- package/react-native/boost/boost/config/compiler/cray.hpp +0 -446
- package/react-native/boost/boost/config/compiler/diab.hpp +0 -26
- package/react-native/boost/boost/config/compiler/digitalmars.hpp +0 -143
- package/react-native/boost/boost/config/compiler/gcc.hpp +0 -383
- package/react-native/boost/boost/config/compiler/gcc_xml.hpp +0 -114
- package/react-native/boost/boost/config/compiler/greenhills.hpp +0 -28
- package/react-native/boost/boost/config/compiler/hp_acc.hpp +0 -149
- package/react-native/boost/boost/config/compiler/intel.hpp +0 -577
- package/react-native/boost/boost/config/compiler/kai.hpp +0 -33
- package/react-native/boost/boost/config/compiler/metrowerks.hpp +0 -198
- package/react-native/boost/boost/config/compiler/mpw.hpp +0 -140
- package/react-native/boost/boost/config/compiler/nvcc.hpp +0 -61
- package/react-native/boost/boost/config/compiler/pathscale.hpp +0 -138
- package/react-native/boost/boost/config/compiler/pgi.hpp +0 -23
- package/react-native/boost/boost/config/compiler/sgi_mipspro.hpp +0 -29
- package/react-native/boost/boost/config/compiler/sunpro_cc.hpp +0 -222
- package/react-native/boost/boost/config/compiler/vacpp.hpp +0 -186
- package/react-native/boost/boost/config/compiler/visualc.hpp +0 -391
- package/react-native/boost/boost/config/compiler/xlcpp.hpp +0 -299
- package/react-native/boost/boost/config/compiler/xlcpp_zos.hpp +0 -173
- package/react-native/boost/boost/config/detail/cxx_composite.hpp +0 -203
- package/react-native/boost/boost/config/detail/posix_features.hpp +0 -95
- package/react-native/boost/boost/config/detail/select_compiler_config.hpp +0 -157
- package/react-native/boost/boost/config/detail/select_platform_config.hpp +0 -147
- package/react-native/boost/boost/config/detail/select_stdlib_config.hpp +0 -121
- package/react-native/boost/boost/config/detail/suffix.hpp +0 -1294
- package/react-native/boost/boost/config/header_deprecated.hpp +0 -26
- package/react-native/boost/boost/config/helper_macros.hpp +0 -37
- package/react-native/boost/boost/config/no_tr1/cmath.hpp +0 -28
- package/react-native/boost/boost/config/no_tr1/complex.hpp +0 -28
- package/react-native/boost/boost/config/no_tr1/functional.hpp +0 -28
- package/react-native/boost/boost/config/no_tr1/memory.hpp +0 -28
- package/react-native/boost/boost/config/no_tr1/utility.hpp +0 -28
- package/react-native/boost/boost/config/platform/aix.hpp +0 -33
- package/react-native/boost/boost/config/platform/amigaos.hpp +0 -15
- package/react-native/boost/boost/config/platform/beos.hpp +0 -26
- package/react-native/boost/boost/config/platform/bsd.hpp +0 -83
- package/react-native/boost/boost/config/platform/cloudabi.hpp +0 -18
- package/react-native/boost/boost/config/platform/cray.hpp +0 -18
- package/react-native/boost/boost/config/platform/cygwin.hpp +0 -71
- package/react-native/boost/boost/config/platform/haiku.hpp +0 -31
- package/react-native/boost/boost/config/platform/hpux.hpp +0 -87
- package/react-native/boost/boost/config/platform/irix.hpp +0 -31
- package/react-native/boost/boost/config/platform/linux.hpp +0 -106
- package/react-native/boost/boost/config/platform/macos.hpp +0 -87
- package/react-native/boost/boost/config/platform/qnxnto.hpp +0 -31
- package/react-native/boost/boost/config/platform/solaris.hpp +0 -31
- package/react-native/boost/boost/config/platform/symbian.hpp +0 -97
- package/react-native/boost/boost/config/platform/vms.hpp +0 -25
- package/react-native/boost/boost/config/platform/vxworks.hpp +0 -422
- package/react-native/boost/boost/config/platform/wasm.hpp +0 -23
- package/react-native/boost/boost/config/platform/win32.hpp +0 -90
- package/react-native/boost/boost/config/platform/zos.hpp +0 -32
- package/react-native/boost/boost/config/pragma_message.hpp +0 -31
- package/react-native/boost/boost/config/requires_threads.hpp +0 -92
- package/react-native/boost/boost/config/stdlib/dinkumware.hpp +0 -324
- package/react-native/boost/boost/config/stdlib/libcomo.hpp +0 -93
- package/react-native/boost/boost/config/stdlib/libcpp.hpp +0 -180
- package/react-native/boost/boost/config/stdlib/libstdcpp3.hpp +0 -482
- package/react-native/boost/boost/config/stdlib/modena.hpp +0 -79
- package/react-native/boost/boost/config/stdlib/msl.hpp +0 -98
- package/react-native/boost/boost/config/stdlib/roguewave.hpp +0 -208
- package/react-native/boost/boost/config/stdlib/sgi.hpp +0 -168
- package/react-native/boost/boost/config/stdlib/stlport.hpp +0 -258
- package/react-native/boost/boost/config/stdlib/vacpp.hpp +0 -74
- package/react-native/boost/boost/config/stdlib/xlcpp_zos.hpp +0 -61
- package/react-native/boost/boost/config/user.hpp +0 -133
- package/react-native/boost/boost/config/warning_disable.hpp +0 -47
- package/react-native/boost/boost/config/workaround.hpp +0 -305
- package/react-native/boost/boost/config.hpp +0 -67
- package/react-native/boost/boost/cstdint.hpp +0 -556
- package/react-native/boost/boost/intrusive_ptr.hpp +0 -18
- package/react-native/boost/boost/smart_ptr/detail/atomic_count.hpp +0 -103
- package/react-native/boost/boost/smart_ptr/detail/atomic_count_gcc.hpp +0 -79
- package/react-native/boost/boost/smart_ptr/detail/atomic_count_gcc_atomic.hpp +0 -63
- package/react-native/boost/boost/smart_ptr/detail/atomic_count_gcc_x86.hpp +0 -88
- package/react-native/boost/boost/smart_ptr/detail/atomic_count_nt.hpp +0 -66
- package/react-native/boost/boost/smart_ptr/detail/atomic_count_pt.hpp +0 -104
- package/react-native/boost/boost/smart_ptr/detail/atomic_count_spin.hpp +0 -69
- package/react-native/boost/boost/smart_ptr/detail/atomic_count_std_atomic.hpp +0 -67
- package/react-native/boost/boost/smart_ptr/detail/atomic_count_sync.hpp +0 -72
- package/react-native/boost/boost/smart_ptr/detail/atomic_count_win32.hpp +0 -70
- package/react-native/boost/boost/smart_ptr/detail/local_counted_base.hpp +0 -148
- package/react-native/boost/boost/smart_ptr/detail/local_sp_deleter.hpp +0 -91
- package/react-native/boost/boost/smart_ptr/detail/operator_bool.hpp +0 -64
- package/react-native/boost/boost/smart_ptr/detail/requires_cxx11.hpp +0 -23
- package/react-native/boost/boost/smart_ptr/detail/shared_count.hpp +0 -707
- package/react-native/boost/boost/smart_ptr/detail/sp_convertible.hpp +0 -92
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base.hpp +0 -92
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp +0 -163
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_aix.hpp +0 -152
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +0 -185
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp +0 -148
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp +0 -170
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp +0 -200
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp +0 -194
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp +0 -179
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp +0 -186
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_nt.hpp +0 -119
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_pt.hpp +0 -147
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_snc_ps3.hpp +0 -174
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_spin.hpp +0 -141
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp +0 -147
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_sync.hpp +0 -165
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp +0 -163
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_base_w32.hpp +0 -140
- package/react-native/boost/boost/smart_ptr/detail/sp_counted_impl.hpp +0 -309
- package/react-native/boost/boost/smart_ptr/detail/sp_disable_deprecated.hpp +0 -40
- package/react-native/boost/boost/smart_ptr/detail/sp_forward.hpp +0 -52
- package/react-native/boost/boost/smart_ptr/detail/sp_has_gcc_intrinsics.hpp +0 -27
- package/react-native/boost/boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp +0 -69
- package/react-native/boost/boost/smart_ptr/detail/sp_interlocked.hpp +0 -173
- package/react-native/boost/boost/smart_ptr/detail/sp_noexcept.hpp +0 -48
- package/react-native/boost/boost/smart_ptr/detail/sp_nullptr_t.hpp +0 -45
- package/react-native/boost/boost/smart_ptr/detail/sp_obsolete.hpp +0 -32
- package/react-native/boost/boost/smart_ptr/detail/sp_thread_pause.hpp +0 -51
- package/react-native/boost/boost/smart_ptr/detail/sp_thread_sleep.hpp +0 -104
- package/react-native/boost/boost/smart_ptr/detail/sp_thread_yield.hpp +0 -100
- package/react-native/boost/boost/smart_ptr/detail/sp_typeinfo_.hpp +0 -58
- package/react-native/boost/boost/smart_ptr/detail/sp_win32_sleep.hpp +0 -49
- package/react-native/boost/boost/smart_ptr/intrusive_ptr.hpp +0 -409
- package/react-native/boost/boost/smart_ptr/intrusive_ref_counter.hpp +0 -188
- package/react-native/cpp/include/Attachment.h +0 -16
- package/react-native/cpp/include/Authentication.h +0 -23
- package/react-native/cpp/include/Collection.h +0 -13
- package/react-native/cpp/include/DQL.h +0 -21
- package/react-native/cpp/include/Document.h +0 -17
- package/react-native/cpp/include/Identity.h +0 -17
- package/react-native/cpp/include/Lifecycle.h +0 -16
- package/react-native/cpp/include/LiveQuery.h +0 -17
- package/react-native/cpp/include/Logger.h +0 -22
- package/react-native/cpp/include/Misc.h +0 -26
- package/react-native/cpp/include/Presence.h +0 -14
- package/react-native/cpp/include/RetainableState.h +0 -24
- package/react-native/cpp/include/SmallPeerInfo.h +0 -17
- package/react-native/cpp/include/Transports.h +0 -25
- package/react-native/cpp/include/TypedArray.hpp +0 -167
- package/react-native/cpp/include/Utils.h +0 -61
- package/react-native/cpp/include/main.h +0 -10
- package/react-native/cpp/src/Attachment.cpp +0 -86
- package/react-native/cpp/src/Authentication.cpp +0 -224
- package/react-native/cpp/src/Collection.cpp +0 -54
- package/react-native/cpp/src/DQL.cpp +0 -254
- package/react-native/cpp/src/Document.cpp +0 -146
- package/react-native/cpp/src/Identity.cpp +0 -123
- package/react-native/cpp/src/Lifecycle.cpp +0 -75
- package/react-native/cpp/src/LiveQuery.cpp +0 -64
- package/react-native/cpp/src/Logger.cpp +0 -200
- package/react-native/cpp/src/Misc.cpp +0 -271
- package/react-native/cpp/src/Presence.cpp +0 -77
- package/react-native/cpp/src/RetainableState.cpp +0 -15
- package/react-native/cpp/src/SmallPeerInfo.cpp +0 -108
- package/react-native/cpp/src/Transports.cpp +0 -270
- package/react-native/cpp/src/TypedArray.cpp +0 -303
- package/react-native/cpp/src/Utils.cpp +0 -138
- package/react-native/cpp/src/main.cpp +0 -149
- package/react-native/dittoffi/dittoffi.h +0 -4698
- package/react-native/dittoffi/ifaddrs.cpp +0 -385
- package/react-native/dittoffi/ifaddrs.h +0 -206
- package/react-native/ios/DittoRNSDK.h +0 -7
- package/react-native/ios/DittoRNSDK.mm +0 -107
- package/react-native/ios/YeetJSIUtils.h +0 -60
- package/react-native/ios/YeetJSIUtils.mm +0 -196
- package/react-native/lib/commonjs/ditto.rn.js +0 -93
- package/react-native/lib/commonjs/ditto.rn.js.map +0 -1
- package/react-native/lib/commonjs/index.js +0 -14
- package/react-native/lib/commonjs/index.js.map +0 -1
- package/react-native/lib/module/ditto.rn.js +0 -83
- package/react-native/lib/module/ditto.rn.js.map +0 -1
- package/react-native/lib/module/index.js +0 -13
- package/react-native/lib/module/index.js.map +0 -1
- package/react-native/lib/typescript/ditto.rn.d.ts +0 -15
- package/react-native/lib/typescript/ditto.rn.d.ts.map +0 -1
- package/react-native/lib/typescript/index.d.ts +0 -1
- package/react-native/lib/typescript/index.d.ts.map +0 -1
- package/react-native/scripts/ruby/include_local_boost.rb +0 -78
- package/react-native/src/ditto.rn.ts +0 -91
- package/react-native/src/environment/environment.fallback.ts +0 -4
- package/react-native/src/index.ts +0 -26
- package/react-native/src/sources/@cbor-redux.ts +0 -2
- package/react-native/src/sources/@ditto.core.ts +0 -1
- package/react-native/src/sources/@environment.ts +0 -2
- package/react-native/src/sources/attachment-fetch-event.ts +0 -54
- package/react-native/src/sources/attachment-fetcher-manager.ts +0 -129
- package/react-native/src/sources/attachment-fetcher.ts +0 -124
- package/react-native/src/sources/attachment-token.ts +0 -48
- package/react-native/src/sources/attachment.ts +0 -59
- package/react-native/src/sources/augment.ts +0 -89
- package/react-native/src/sources/authenticator.ts +0 -314
- package/react-native/src/sources/base-pending-cursor-operation.ts +0 -237
- package/react-native/src/sources/base-pending-id-specific-operation.ts +0 -109
- package/react-native/src/sources/bridge.ts +0 -549
- package/react-native/src/sources/build-time-constants.ts +0 -4
- package/react-native/src/sources/cbor.ts +0 -35
- package/react-native/src/sources/collection-interface.ts +0 -67
- package/react-native/src/sources/collection.ts +0 -212
- package/react-native/src/sources/collections-event.ts +0 -99
- package/react-native/src/sources/counter.ts +0 -77
- package/react-native/src/sources/ditto.ts +0 -945
- package/react-native/src/sources/document-id.ts +0 -159
- package/react-native/src/sources/document-path.ts +0 -303
- package/react-native/src/sources/document.ts +0 -192
- package/react-native/src/sources/epilogue.ts +0 -24
- package/react-native/src/sources/error-codes.ts +0 -52
- package/react-native/src/sources/error.ts +0 -203
- package/react-native/src/sources/essentials.ts +0 -53
- package/react-native/src/sources/ffi-error.ts +0 -117
- package/react-native/src/sources/ffi.ts +0 -1972
- package/react-native/src/sources/identity.ts +0 -163
- package/react-native/src/sources/init.ts +0 -70
- package/react-native/src/sources/internal.ts +0 -113
- package/react-native/src/sources/keep-alive.ts +0 -69
- package/react-native/src/sources/key-path.ts +0 -195
- package/react-native/src/sources/live-query-event.ts +0 -208
- package/react-native/src/sources/live-query-manager.ts +0 -101
- package/react-native/src/sources/live-query.ts +0 -164
- package/react-native/src/sources/logger.ts +0 -196
- package/react-native/src/sources/observer-manager.ts +0 -175
- package/react-native/src/sources/observer.ts +0 -77
- package/react-native/src/sources/pending-collections-operation.ts +0 -232
- package/react-native/src/sources/pending-cursor-operation.ts +0 -218
- package/react-native/src/sources/pending-id-specific-operation.ts +0 -216
- package/react-native/src/sources/presence-manager.ts +0 -160
- package/react-native/src/sources/presence.ts +0 -238
- package/react-native/src/sources/query-result-item.ts +0 -116
- package/react-native/src/sources/query-result.ts +0 -55
- package/react-native/src/sources/register.ts +0 -92
- package/react-native/src/sources/small-peer-info.ts +0 -176
- package/react-native/src/sources/static-tcp-client.ts +0 -6
- package/react-native/src/sources/store-observer.ts +0 -176
- package/react-native/src/sources/store.ts +0 -365
- package/react-native/src/sources/subscription-manager.ts +0 -98
- package/react-native/src/sources/subscription.ts +0 -88
- package/react-native/src/sources/sync-subscription.ts +0 -90
- package/react-native/src/sources/sync.ts +0 -495
- package/react-native/src/sources/test-helpers.ts +0 -24
- package/react-native/src/sources/transport-conditions-manager.ts +0 -104
- package/react-native/src/sources/transport-config.ts +0 -428
- package/react-native/src/sources/update-result.ts +0 -66
- package/react-native/src/sources/update-results-map.ts +0 -57
- package/react-native/src/sources/websocket-client.ts +0 -6
- package/react-native/src/sources/write-transaction-collection.ts +0 -122
- package/react-native/src/sources/write-transaction-pending-cursor-operation.ts +0 -101
- package/react-native/src/sources/write-transaction-pending-id-specific-operation.ts +0 -72
- package/react-native/src/sources/write-transaction.ts +0 -119
- package/react-native.config.js +0 -9
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
#ifndef BOOST_SMART_PTR_DETAIL_LOCAL_COUNTED_BASE_HPP_INCLUDED
|
|
2
|
-
#define BOOST_SMART_PTR_DETAIL_LOCAL_COUNTED_BASE_HPP_INCLUDED
|
|
3
|
-
|
|
4
|
-
// MS compatible compilers support #pragma once
|
|
5
|
-
|
|
6
|
-
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
|
7
|
-
# pragma once
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
// detail/local_counted_base.hpp
|
|
11
|
-
//
|
|
12
|
-
// Copyright 2017 Peter Dimov
|
|
13
|
-
//
|
|
14
|
-
// Distributed under the Boost Software License, Version 1.0. (See
|
|
15
|
-
// accompanying file LICENSE_1_0.txt or copy at
|
|
16
|
-
// http://www.boost.org/LICENSE_1_0.txt)
|
|
17
|
-
//
|
|
18
|
-
// See http://www.boost.org/libs/smart_ptr/ for documentation.
|
|
19
|
-
|
|
20
|
-
#include <boost/smart_ptr/detail/shared_count.hpp>
|
|
21
|
-
#include <boost/config.hpp>
|
|
22
|
-
#include <utility>
|
|
23
|
-
|
|
24
|
-
namespace boost
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
namespace detail
|
|
28
|
-
{
|
|
29
|
-
|
|
30
|
-
class BOOST_SYMBOL_VISIBLE local_counted_base
|
|
31
|
-
{
|
|
32
|
-
private:
|
|
33
|
-
|
|
34
|
-
local_counted_base & operator= ( local_counted_base const & );
|
|
35
|
-
|
|
36
|
-
private:
|
|
37
|
-
|
|
38
|
-
// not 'int' or 'unsigned' to avoid aliasing and enable optimizations
|
|
39
|
-
enum count_type { min_ = 0, initial_ = 1, max_ = 2147483647 };
|
|
40
|
-
|
|
41
|
-
count_type local_use_count_;
|
|
42
|
-
|
|
43
|
-
public:
|
|
44
|
-
|
|
45
|
-
BOOST_CONSTEXPR local_counted_base() BOOST_SP_NOEXCEPT: local_use_count_( initial_ )
|
|
46
|
-
{
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
BOOST_CONSTEXPR local_counted_base( local_counted_base const & ) BOOST_SP_NOEXCEPT: local_use_count_( initial_ )
|
|
50
|
-
{
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
virtual ~local_counted_base() /*BOOST_SP_NOEXCEPT*/
|
|
54
|
-
{
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
virtual void local_cb_destroy() BOOST_SP_NOEXCEPT = 0;
|
|
58
|
-
|
|
59
|
-
virtual boost::detail::shared_count local_cb_get_shared_count() const BOOST_SP_NOEXCEPT = 0;
|
|
60
|
-
|
|
61
|
-
void add_ref() BOOST_SP_NOEXCEPT
|
|
62
|
-
{
|
|
63
|
-
#if !defined(__NVCC__)
|
|
64
|
-
#if defined( __has_builtin )
|
|
65
|
-
# if __has_builtin( __builtin_assume )
|
|
66
|
-
|
|
67
|
-
__builtin_assume( local_use_count_ >= 1 );
|
|
68
|
-
|
|
69
|
-
# endif
|
|
70
|
-
#endif
|
|
71
|
-
#endif
|
|
72
|
-
|
|
73
|
-
local_use_count_ = static_cast<count_type>( local_use_count_ + 1 );
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
void release() BOOST_SP_NOEXCEPT
|
|
77
|
-
{
|
|
78
|
-
local_use_count_ = static_cast<count_type>( local_use_count_ - 1 );
|
|
79
|
-
|
|
80
|
-
if( local_use_count_ == 0 )
|
|
81
|
-
{
|
|
82
|
-
local_cb_destroy();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
long local_use_count() const BOOST_SP_NOEXCEPT
|
|
87
|
-
{
|
|
88
|
-
return local_use_count_;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
class BOOST_SYMBOL_VISIBLE local_counted_impl: public local_counted_base
|
|
93
|
-
{
|
|
94
|
-
private:
|
|
95
|
-
|
|
96
|
-
local_counted_impl( local_counted_impl const & );
|
|
97
|
-
|
|
98
|
-
private:
|
|
99
|
-
|
|
100
|
-
shared_count pn_;
|
|
101
|
-
|
|
102
|
-
public:
|
|
103
|
-
|
|
104
|
-
explicit local_counted_impl( shared_count const& pn ) BOOST_SP_NOEXCEPT: pn_( pn )
|
|
105
|
-
{
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
#if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
|
|
109
|
-
|
|
110
|
-
explicit local_counted_impl( shared_count && pn ) BOOST_SP_NOEXCEPT: pn_( std::move(pn) )
|
|
111
|
-
{
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
#endif
|
|
115
|
-
|
|
116
|
-
void local_cb_destroy() BOOST_SP_NOEXCEPT BOOST_OVERRIDE
|
|
117
|
-
{
|
|
118
|
-
delete this;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
boost::detail::shared_count local_cb_get_shared_count() const BOOST_SP_NOEXCEPT BOOST_OVERRIDE
|
|
122
|
-
{
|
|
123
|
-
return pn_;
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
class BOOST_SYMBOL_VISIBLE local_counted_impl_em: public local_counted_base
|
|
128
|
-
{
|
|
129
|
-
public:
|
|
130
|
-
|
|
131
|
-
shared_count pn_;
|
|
132
|
-
|
|
133
|
-
void local_cb_destroy() BOOST_SP_NOEXCEPT BOOST_OVERRIDE
|
|
134
|
-
{
|
|
135
|
-
shared_count().swap( pn_ );
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
boost::detail::shared_count local_cb_get_shared_count() const BOOST_SP_NOEXCEPT BOOST_OVERRIDE
|
|
139
|
-
{
|
|
140
|
-
return pn_;
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
} // namespace detail
|
|
145
|
-
|
|
146
|
-
} // namespace boost
|
|
147
|
-
|
|
148
|
-
#endif // #ifndef BOOST_SMART_PTR_DETAIL_LOCAL_COUNTED_BASE_HPP_INCLUDED
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
#ifndef BOOST_SMART_PTR_DETAIL_LOCAL_SP_DELETER_HPP_INCLUDED
|
|
2
|
-
#define BOOST_SMART_PTR_DETAIL_LOCAL_SP_DELETER_HPP_INCLUDED
|
|
3
|
-
|
|
4
|
-
// MS compatible compilers support #pragma once
|
|
5
|
-
|
|
6
|
-
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
|
7
|
-
# pragma once
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
// detail/local_sp_deleter.hpp
|
|
11
|
-
//
|
|
12
|
-
// Copyright 2017 Peter Dimov
|
|
13
|
-
//
|
|
14
|
-
// Distributed under the Boost Software License, Version 1.0. (See
|
|
15
|
-
// accompanying file LICENSE_1_0.txt or copy at
|
|
16
|
-
// http://www.boost.org/LICENSE_1_0.txt)
|
|
17
|
-
//
|
|
18
|
-
// See http://www.boost.org/libs/smart_ptr/ for documentation.
|
|
19
|
-
|
|
20
|
-
#include <boost/smart_ptr/detail/local_counted_base.hpp>
|
|
21
|
-
#include <boost/config.hpp>
|
|
22
|
-
|
|
23
|
-
namespace boost
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
namespace detail
|
|
27
|
-
{
|
|
28
|
-
|
|
29
|
-
template<class D> class local_sp_deleter: public local_counted_impl_em
|
|
30
|
-
{
|
|
31
|
-
private:
|
|
32
|
-
|
|
33
|
-
D d_;
|
|
34
|
-
|
|
35
|
-
public:
|
|
36
|
-
|
|
37
|
-
local_sp_deleter(): d_()
|
|
38
|
-
{
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
explicit local_sp_deleter( D const& d ) BOOST_SP_NOEXCEPT: d_( d )
|
|
42
|
-
{
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
#if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
|
|
46
|
-
|
|
47
|
-
explicit local_sp_deleter( D&& d ) BOOST_SP_NOEXCEPT: d_( std::move(d) )
|
|
48
|
-
{
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
#endif
|
|
52
|
-
|
|
53
|
-
D& deleter() BOOST_SP_NOEXCEPT
|
|
54
|
-
{
|
|
55
|
-
return d_;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
template<class Y> void operator()( Y* p ) BOOST_SP_NOEXCEPT
|
|
59
|
-
{
|
|
60
|
-
d_( p );
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
#if !defined( BOOST_NO_CXX11_NULLPTR )
|
|
64
|
-
|
|
65
|
-
void operator()( boost::detail::sp_nullptr_t p ) BOOST_SP_NOEXCEPT
|
|
66
|
-
{
|
|
67
|
-
d_( p );
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
#endif
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
template<> class local_sp_deleter<void>
|
|
74
|
-
{
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
template<class D> D * get_local_deleter( local_sp_deleter<D> * p ) BOOST_SP_NOEXCEPT
|
|
78
|
-
{
|
|
79
|
-
return &p->deleter();
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
inline void * get_local_deleter( local_sp_deleter<void> * /*p*/ ) BOOST_SP_NOEXCEPT
|
|
83
|
-
{
|
|
84
|
-
return 0;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
} // namespace detail
|
|
88
|
-
|
|
89
|
-
} // namespace boost
|
|
90
|
-
|
|
91
|
-
#endif // #ifndef BOOST_SMART_PTR_DETAIL_LOCAL_SP_DELETER_HPP_INCLUDED
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// This header intentionally has no include guards.
|
|
2
|
-
//
|
|
3
|
-
// Copyright (c) 2001-2009, 2012 Peter Dimov
|
|
4
|
-
//
|
|
5
|
-
// Distributed under the Boost Software License, Version 1.0.
|
|
6
|
-
// See accompanying file LICENSE_1_0.txt or copy at
|
|
7
|
-
// http://www.boost.org/LICENSE_1_0.txt
|
|
8
|
-
|
|
9
|
-
#if !defined( BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS ) && !defined( BOOST_NO_CXX11_NULLPTR )\
|
|
10
|
-
&& !(defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, <= 0x5130))
|
|
11
|
-
|
|
12
|
-
explicit operator bool () const BOOST_SP_NOEXCEPT
|
|
13
|
-
{
|
|
14
|
-
return px != 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
#elif ( defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, < 0x570) ) || defined(__CINT__)
|
|
18
|
-
|
|
19
|
-
operator bool () const BOOST_SP_NOEXCEPT
|
|
20
|
-
{
|
|
21
|
-
return px != 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
#elif defined( _MANAGED )
|
|
25
|
-
|
|
26
|
-
static void unspecified_bool( this_type*** )
|
|
27
|
-
{
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
typedef void (*unspecified_bool_type)( this_type*** );
|
|
31
|
-
|
|
32
|
-
operator unspecified_bool_type() const BOOST_SP_NOEXCEPT
|
|
33
|
-
{
|
|
34
|
-
return px == 0? 0: unspecified_bool;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
#elif \
|
|
38
|
-
( defined(__MWERKS__) && BOOST_WORKAROUND(__MWERKS__, < 0x3200) ) || \
|
|
39
|
-
( defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ < 304) ) || \
|
|
40
|
-
( defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590) )
|
|
41
|
-
|
|
42
|
-
typedef element_type * (this_type::*unspecified_bool_type)() const;
|
|
43
|
-
|
|
44
|
-
operator unspecified_bool_type() const BOOST_SP_NOEXCEPT
|
|
45
|
-
{
|
|
46
|
-
return px == 0? 0: &this_type::get;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
#else
|
|
50
|
-
|
|
51
|
-
typedef element_type * this_type::*unspecified_bool_type;
|
|
52
|
-
|
|
53
|
-
operator unspecified_bool_type() const BOOST_SP_NOEXCEPT
|
|
54
|
-
{
|
|
55
|
-
return px == 0? 0: &this_type::px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
#endif
|
|
59
|
-
|
|
60
|
-
// operator! is redundant, but some compilers need it
|
|
61
|
-
bool operator! () const BOOST_SP_NOEXCEPT
|
|
62
|
-
{
|
|
63
|
-
return px == 0;
|
|
64
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#ifndef BOOST_SMART_PTR_DETAIL_REQUIRES_CXX11_HPP_INCLUDED
|
|
2
|
-
#define BOOST_SMART_PTR_DETAIL_REQUIRES_CXX11_HPP_INCLUDED
|
|
3
|
-
|
|
4
|
-
// Copyright 2023 Peter Dimov
|
|
5
|
-
// Distributed under the Boost Software License, Version 1.0.
|
|
6
|
-
// https://www.boost.org/LICENSE_1_0.txt
|
|
7
|
-
|
|
8
|
-
#include <boost/config.hpp>
|
|
9
|
-
#include <boost/config/pragma_message.hpp>
|
|
10
|
-
|
|
11
|
-
#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || \
|
|
12
|
-
defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
|
|
13
|
-
defined(BOOST_NO_CXX11_DECLTYPE) || \
|
|
14
|
-
defined(BOOST_NO_CXX11_CONSTEXPR) || \
|
|
15
|
-
defined(BOOST_NO_CXX11_NOEXCEPT) || \
|
|
16
|
-
defined(BOOST_NO_CXX11_NULLPTR) || \
|
|
17
|
-
defined(BOOST_NO_CXX11_SMART_PTR)
|
|
18
|
-
|
|
19
|
-
BOOST_PRAGMA_MESSAGE("C++03 support is deprecated in Boost.SmartPtr 1.82 and will be removed in Boost.SmartPtr 1.84.")
|
|
20
|
-
|
|
21
|
-
#endif
|
|
22
|
-
|
|
23
|
-
#endif // #ifndef BOOST_SMART_PTR_DETAIL_REQUIRES_CXX11_HPP_INCLUDED
|