FreeTensor
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
freetensor::EnableSelf< T > Class Template Reference

#include <ref.h>

Inheritance diagram for freetensor::EnableSelf< T >:
Inheritance graph
[legend]
Collaboration diagram for freetensor::EnableSelf< T >:
Collaboration graph
[legend]

Public Types

typedef T Self
 

Public Member Functions

Ref< T > self () const
 

Friends

template<class U >
class Ref
 

Detailed Description

template<class T>
class freetensor::EnableSelf< T >

Similar to std::enable_shared_from_this, but returns a Ref

Pybind11 has a bug with std::enable_shared_from_this (https://github.com/pybind/pybind11/issues/3851), so we make our own implementation, rather than wrap around std::enable_shared_from_this

Member Typedef Documentation

◆ Self

template<class T >
typedef T freetensor::EnableSelf< T >::Self

Member Function Documentation

◆ self()

template<class T >
Ref< T > freetensor::EnableSelf< T >::self ( ) const
inline

Friends And Related Function Documentation

◆ Ref

template<class T >
template<class U >
friend class Ref
friend

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