Package | Description |
---|---|
org.bytedeco.pytorch |
Modifier and Type | Method and Description |
---|---|
StorageImpl |
WeakStorage._unsafe_get_target() |
StorageImpl |
StorageImplPtr.access() |
StorageImpl |
StorageImplPtr.get() |
StorageImpl |
StorageImplPtr.multiply() |
StorageImpl |
WeakStorage.release()
Returns an owning (but still only weakly referenced) pointer to the
underlying object and makes the weak_intrusive_ptr instance invalid.
|
StorageImpl |
StorageImplPtr.release()
Returns an owning (!) pointer to the underlying object and makes the
intrusive_ptr instance invalid.
|
StorageImpl |
Storage.unsafeGetStorageImpl() |
StorageImpl |
Storage.unsafeReleaseStorageImpl() |
Modifier and Type | Method and Description |
---|---|
static WeakStorage |
WeakStorage.reclaim_copy(StorageImpl owning_ptr)
Takes a pointer to TTarget* (may be weak or strong) and creates a
new weak_intrusive_ptr representing a new weak reference, i.e.
|
static StorageImplPtr |
StorageImplPtr.reclaim_copy(StorageImpl owning_ptr)
Takes an owning pointer to TTarget* and creates an intrusive_ptr
representing a new reference, i.e.
|
static WeakStorage |
WeakStorage.reclaim(StorageImpl owning_weak_ptr)
Takes an owning (but must be weakly referenced) pointer to TTarget* and
creates a weak_intrusive_ptr that takes over ownership.
|
static StorageImplPtr |
StorageImplPtr.reclaim(StorageImpl owning_ptr)
Takes an owning pointer to TTarget* and creates an intrusive_ptr that takes
over ownership.
|
static StorageImplPtr |
StorageImplPtr.unsafe_adapt_non_heap_allocated(StorageImpl raw_ptr,
long expected_decrefs)
Turn an instance of TTarget that should not be reference counted
(e.g., allocated into an arena with placement new) into an
intrusive_ptr.
|
static StorageImplPtr |
StorageImplPtr.unsafe_reclaim_from_nonowning(StorageImpl raw_ptr)
Turn a **non-owning raw pointer** to an intrusive_ptr.
|
static StorageImplPtr |
StorageImplPtr.unsafe_steal_from_new(StorageImpl raw_ptr)
Turn a new instance of TTarget (e.g., literally allocated
using new TTarget(...) into an intrusive_ptr.
|
Constructor and Description |
---|
StorageImplPtr(StorageImpl target,
DontIncreaseRefcount arg1) |
Copyright © 2024. All rights reserved.