WeakPtr<T> Class

Template Parameters

T

Constructors & Destructor

public nothrow WeakPtr()
public nothrow WeakPtr(const SharedPtr<T>& that)
public nothrow WeakPtr(const WeakPtr& that)

Member Functions

public nothrow void Assign(T* ptr_, const SharedCount<T>& count_)
public inline nothrow T* Get() const
public inline nothrow const WeakCount<T>& GetCount() const
public inline nothrow T* GetPtr() const
public nothrow int GetUseCount() const
public nothrow bool IsExpired() const
public nothrow SharedPtr<T> Lock() const
public nothrow void Reset()
public nothrow void Swap(WeakPtr& that)
public nothrow void operator=(const SharedPtr<T>& that)
public nothrow void operator=(const WeakPtr& that)

Typedefs

private typedef CountType WeakCount<T>
private typedef Self WeakPtr

Member Variables

private WeakCount<T> count
private T* ptr

Constructor& Destructor Details

WeakPtr Constructor

public nothrow WeakPtr()

Definition
Line 380 of System.Base/SharedPtr.cm


WeakPtr Constructor

public nothrow WeakPtr(const SharedPtr<T>& that)

Definition
Line 383 of System.Base/SharedPtr.cm


WeakPtr Constructor

public nothrow WeakPtr(const WeakPtr& that)

Definition
Line 386 of System.Base/SharedPtr.cm


Member Function Details

Assign Member Function

public nothrow void Assign(T* ptr_, const SharedCount<T>& count_)

Definition
Line 438 of System.Base/SharedPtr.cm


Get Member Function

public inline nothrow T* Get()

Definition
Line 434 of System.Base/SharedPtr.cm


GetCount Member Function

public inline nothrow const WeakCount<T>& GetCount()

Definition
Line 426 of System.Base/SharedPtr.cm


GetPtr Member Function

public inline nothrow T* GetPtr()

Definition
Line 430 of System.Base/SharedPtr.cm


GetUseCount Member Function

public nothrow int GetUseCount()

Definition
Line 401 of System.Base/SharedPtr.cm


IsExpired Member Function

public nothrow bool IsExpired()

Definition
Line 405 of System.Base/SharedPtr.cm


Lock Member Function

public nothrow SharedPtr<T> Lock()

Definition
Line 409 of System.Base/SharedPtr.cm


Reset Member Function

public nothrow void Reset()

Definition
Line 417 of System.Base/SharedPtr.cm


Swap Member Function

public nothrow void Swap(WeakPtr& that)

Definition
Line 421 of System.Base/SharedPtr.cm


operator= Member Function

public nothrow void operator=(const SharedPtr<T>& that)

Definition
Line 396 of System.Base/SharedPtr.cm


operator= Member Function

public nothrow void operator=(const WeakPtr& that)

Definition
Line 391 of System.Base/SharedPtr.cm