Contents
1. 참고링크 [Bottom] [Top]
Boost Smart Pointers Library http://www.boost.org/libs/smart_ptr/smart_ptr.htm
스마트 포인터 http://jacking75.cafe24.com/Boost/smart_ptr/smart_ptr.htm
2. 참고도서 [Bottom] [Top]
- C++ 표준 라이브러리 확장: 튜토리얼 및 레퍼런스
Pete Becker 저, 류광 역, 지앤선(志&嬋)
ISBN: 8955508697
3. boost::scoped_ptr 라이브러리 [Bottom] [Top]
#include <boost/scoped_ptr.hpp>
설명 정리 중... 동적으로 할당된 객체를 일정범위(예>함수)를 벗어날 때 자동으로 제거해주는 기능 수행, 복사 불가
- ...
3.1. 클래스 [Bottom] [Top]
설명 정리 중... - ...
4. boost::scoped_array 라이브러리 [Bottom] [Top]
#include <boost/scoped_array.hpp>
설명 정리 중... 동적으로 할당된 객체 배열을 일정범위(예>함수)를 벗어날 때 자동으로 제거해주는 기능 수행, 복사 불가
- ...
4.1. 클래스 [Bottom] [Top]
설명 정리 중... - ...
5. boost::shared_ptr 라이브러리 [Bottom] [Top]
#include <boost/shared_ptr.hpp>
설명 정리 중... 동적으로 할당된 객체를 공유하는 기능 수행
- 내부적으로 참조 카운터(reference counter)를 사용하며, 0일 경우 객체를 제거.
- ...
5.1. 클래스 [Bottom] [Top]
설명 정리 중... - ...
5.2. boost::enable_shared_from_this 클래스 템플릿 [Bottom] [Top]
#include <boost/enable_shared_from_this.hpp>
설명 정리 중... enable_shared_from_this 클래스 템플릿을 상속하여 사용하며, shared_from_this() 함수를 사용하여 현재 객체의 shared_ptr<T> 객체를 반환받는다.
- ...
6. boost::shared_array 라이브러리 [Bottom] [Top]
#include <boost/shared_array.hpp>
설명 정리 중... 동적으로 할당된 객체 배열을 공유하는 기능 수행
- 내부적으로 참조 카운터(reference counter)를 사용하며, 0일 경우 객체 배열을 제거.
- ...
6.1. 클래스 [Bottom] [Top]
설명 정리 중... - ...
7. boost::weak_ptr 라이브러리 [Bottom] [Top]
#include <boost/weak_ptr.hpp>
설명 정리 중... shared_ptr 가 소유한 객체를 참조 카운터 사용 없이 공유하는 기능 수행
- 내부적으로 약 참조(weak reference)를 사용하지만, 약 참조 와는 상관없이 참조 카운터가 0일 경우 객체를 제거
순환 참조로 인한 메모리 누설 방지 - ...
7.1. 클래스 [Bottom] [Top]
설명 정리 중... - ...
8. boost::intrusive_ptr 라이브러리 [Bottom] [Top]
#include <boost/intrusive_ptr.hpp>
설명 정리 중... Shared ownership of objects with an embedded reference count.
- ...
8.1. 클래스 [Bottom] [Top]
설명 정리 중... - ...
9. boost::make_shared and allocate_shared 라이브러리 [Bottom] [Top]
#include <boost/make_shared.hpp>
설명 정리 중... - Efficient creation of shared_ptr objects.
- ...
9.1. 클래스 [Bottom] [Top]
설명 정리 중... - ...
