PyTorch
Loading...
Searching...
No Matches
Public Member Functions | List of all members
c10::WeakIValue Struct Referencefinal

#include <ivalue.h>

Public Member Functions

 WeakIValue ()=default
 
 WeakIValue (const WeakIValue &rhs)
 
 WeakIValue (const IValue &rhs)
 
 WeakIValue (WeakIValue &&rhs) noexcept
 
 ~WeakIValue ()
 
WeakIValueoperator= (WeakIValue &&rhs) &noexcept
 
WeakIValueoperator= (WeakIValue const &rhs) &
 
void swap (WeakIValue &rhs) noexcept
 
bool isSameIdentity (const WeakIValue &rhs) const
 
IValue lock () const
 
size_t use_count () const noexcept
 
size_t weak_use_count () const noexcept
 
size_t hash () const
 

Constructor & Destructor Documentation

◆ WeakIValue() [1/4]

c10::WeakIValue::WeakIValue ( )
default

◆ WeakIValue() [2/4]

c10::WeakIValue::WeakIValue ( const WeakIValue rhs)
inline

◆ WeakIValue() [3/4]

c10::WeakIValue::WeakIValue ( const IValue rhs)
inline

◆ WeakIValue() [4/4]

c10::WeakIValue::WeakIValue ( WeakIValue &&  rhs)
inlinenoexcept

◆ ~WeakIValue()

c10::WeakIValue::~WeakIValue ( )
inline

Member Function Documentation

◆ hash()

size_t c10::WeakIValue::hash ( ) const
inline

◆ isSameIdentity()

bool c10::WeakIValue::isSameIdentity ( const WeakIValue rhs) const
inline

◆ lock()

IValue c10::WeakIValue::lock ( ) const
inline

◆ operator=() [1/2]

WeakIValue & c10::WeakIValue::operator= ( WeakIValue &&  rhs) &
inlinenoexcept

◆ operator=() [2/2]

WeakIValue & c10::WeakIValue::operator= ( WeakIValue const &  rhs) &
inline

◆ swap()

void c10::WeakIValue::swap ( WeakIValue rhs)
inlinenoexcept

◆ use_count()

size_t c10::WeakIValue::use_count ( ) const
inlinenoexcept

◆ weak_use_count()

size_t c10::WeakIValue::weak_use_count ( ) const
inlinenoexcept

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