System::WeakReference< T > class

WeakReference< T > class

객체를 참조하면서도 해당 객체가 삭제될 수 있도록 허용하는 약한 참조를 나타냅니다.

template<typename T>class WeakReference< T > : public System::Object
매개변수설명
T참조된 객체의 타입.

메서드

메서드설명
operator!=(std::nullptr_t) const참조된 객체가 null이 아닌지 확인합니다.
operator!=(const WeakReference<T>&) const참조된 객체를 다른 인스턴스 WeakReference 클래스와 비교합니다.
operator==(std::nullptr_t) const참조된 객체가 null인지 확인합니다.
operator==(const WeakReference<T>&) const참조된 객체를 다른 인스턴스 WeakReference 클래스와 비교합니다.
reset()
SetTarget(const SmartPtr<T>&)현재 WeakReference 객체가 참조하고 있는 객체(대상)를 설정합니다.
TryGetTarget(const SmartPtr<T>&) const현재 WeakReference 객체가 참조하고 있는 객체(대상)를 가져옵니다.
WeakReference()기본 생성자.
WeakReference(std::nullptr_t)nullptr를 사용한 생성자.
WeakReference(const SmartPtr<T>&)WeakReference 클래스의 새 인스턴스를 초기화하고, 지정된 객체를 참조합니다.
WeakReference(const SmartPtr<T>&, bool)WeakReference 클래스의 새 인스턴스를 초기화하고, 지정된 객체를 참조합니다.

또 보기