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 const WeakCount<T>& GetCount() const
public inline nothrow T* GetPtrForSharedPtr() 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 396 of System.Base/SharedPtr.cm


WeakPtr Constructor

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

Definition
Line 399 of System.Base/SharedPtr.cm


WeakPtr Constructor

public nothrow WeakPtr(const WeakPtr& that)

Definition
Line 402 of System.Base/SharedPtr.cm


Member Function Details

Assign Member Function

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

Definition
Line 455 of System.Base/SharedPtr.cm


GetCount Member Function

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

Definition
Line 451 of System.Base/SharedPtr.cm


GetPtrForSharedPtr Member Function

public inline nothrow T* GetPtrForSharedPtr()

Definition
Line 447 of System.Base/SharedPtr.cm


GetUseCount Member Function

public nothrow int GetUseCount()

Definition
Line 417 of System.Base/SharedPtr.cm


IsExpired Member Function

public nothrow bool IsExpired()

Definition
Line 421 of System.Base/SharedPtr.cm


Lock Member Function

public nothrow SharedPtr<T> Lock()

Definition
Line 425 of System.Base/SharedPtr.cm


Reset Member Function

public nothrow void Reset()

Definition
Line 433 of System.Base/SharedPtr.cm


Swap Member Function

public nothrow void Swap(WeakPtr& that)

Definition
Line 437 of System.Base/SharedPtr.cm


operator= Member Function

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

Definition
Line 412 of System.Base/SharedPtr.cm


operator= Member Function

public nothrow void operator=(const WeakPtr& that)

Definition
Line 407 of System.Base/SharedPtr.cm