-
template<typename T, ptr::SafeProperty property> struct counted_ptr_traits
-
template<class T,ptr::SafeProperty property> class counted_ptr: public internal::ptr_base<T, counted_ptr_traits<T, property> >
- shared counted pointer, (not thread-safe);
- we use this pointer in case, when we need share one pointer between multiple owners; pointer is released, when last owner (counted_ptr ) is released;
- second template paramer (template<T,ptr::SafeProperty>) means safety: when safe_property is true, we throw NullPointerException on NULL access.
-
template<typename T, ptr::SafeProperty property> struct owned_ptr_traits
-
template<typename T, ptr::SafeProperty property> class owned_ptr: public internal::ptr_base<T, owned_ptr_traits<T, property> >
- owned_ptr: combination of pointer and explicit ownity flag;
- we use this pointer, when we want explicity set memory ownership of pointer during transfer or copying;
- second template parameter means safety.
-
struct NullPointerException: public std::runtime_error
- those exception is thrown, when we try acess to null pointer throught safe pointer wrapper class
-
namespace ptr
- this is namespace for ptr categories
-
template<typename ClassType, typename ReturnType, typename Signature> class MemberFunctionCall
- Member function, binded with object
-
template<typename ClassType, typename Signature> class VoidMemberFunctionCall
- void member function, binded with object
-
namespace internal
-
-
template<typename T> struct safe_ptr_traits
-
template<typename T> class safe_ptr: public internal::ptr_base<T, safe_ptr_traits<T> >
- safe_ptr : pointer wrapper, which throw exception on NULL access
-
template<typename T> class safe_auto_ptr: public internal::ptr_base<T, safe_auto_ptr_traits<T> >
- safe_auto_ptr: safe auto_ptr; requirements for T type are the same, as in auto_ptr template
Documentation
template<typename T, ptr::SafeProperty property> struct owned_ptr_traits
template<typename T> struct safe_ptr_traits
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.