template<typename T> class GradSoft::safe_ptr

safe_ptr : pointer wrapper, which throw exception on NULL access

Inheritance:


Public Methods

[more]explicit safe_ptr(T* p = NULL) throw()
constructor
[more]safe_ptr& operator=(T* p)
[more]T* operator->() const throw(NullPointerException)
[more]T& operator*() const throw(NullPointerException)
[more]T* get() const throw()
return pointer
[more]T* call_get() const throw(NullPointerException)
return wrapped pointer, if one is not Null; otherwise throw NulPointerException


Documentation

safe_ptr : pointer wrapper, which throw exception on NULL access
oexplicit safe_ptr(T* p = NULL) throw()
constructor

osafe_ptr& operator=(T* p)

oT* operator->() const throw(NullPointerException)

oT& operator*() const throw(NullPointerException)

oT* get() const throw()
return pointer

oT* call_get() const throw(NullPointerException)
return wrapped pointer, if one is not Null; otherwise throw NulPointerException


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.