Caffe2 - C++ API
A deep learning, cross platform ML framework
Protected Member Functions | Friends
c10::intrusive_ptr_target Class Reference

intrusive_ptr<T> is an alternative to shared_ptr<T> that has better performance because it does the refcounting intrusively (i.e. More...

#include <intrusive_ptr.h>

Inheritance diagram for c10::intrusive_ptr_target:
c10::ivalue::ConstantString c10::ivalue::List< Elem > c10::StorageImpl c10::TensorImpl caffe2::Blob c10::ivalue::List< IValue > torch::jit::InterpreterStateImpl torch::jit::QualifiedName torch::jit::Scope

Protected Member Functions

 intrusive_ptr_target (intrusive_ptr_target &&other) noexcept
 
intrusive_ptr_targetoperator= (intrusive_ptr_target &&other) noexcept
 
 intrusive_ptr_target (const intrusive_ptr_target &other) noexcept
 
intrusive_ptr_targetoperator= (const intrusive_ptr_target &other) noexcept
 

Friends

template<typename T , typename NullType >
class intrusive_ptr
 
template<typename T , typename NullType >
class weak_intrusive_ptr
 

Detailed Description

intrusive_ptr<T> is an alternative to shared_ptr<T> that has better performance because it does the refcounting intrusively (i.e.

in a member of the object itself). Your class T needs to inherit from intrusive_ptr_target to allow it to be used in an intrusive_ptr<T>.

Definition at line 35 of file intrusive_ptr.h.


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