Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ONE::util::SafeDereference< Str > Class Template Reference

Inheritance diagram for ONE::util::SafeDereference< Str >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename Str>
class ONE::util::SafeDereference< Str >

throws an exception when a 0 pointer is dereferenced

This policy allows 0 SmartPointer s. The policy safeguards against 0 dereferences in both the debug and release build, at the cost slower dereferencing.

Author:
Daniel Seibert


Protected Member Functions

template<typename U>
 SafeDereference (const AssertDereference< U > &)
template<typename U>
 SafeDereference (const SafeDereference< U > &)
 SafeDereference ()

Static Protected Member Functions

static void checkDefault (const Str &)
static void checkDereference (const Str &s)
static void checkInit (const Str &)
static void swap (SafeDereference &)


Constructor & Destructor Documentation

template<typename Str>
ONE::util::SafeDereference< Str >::SafeDereference  )  [inline, protected]
 

template<typename Str>
template<typename U>
ONE::util::SafeDereference< Str >::SafeDereference const SafeDereference< U > &   )  [inline, protected]
 

template<typename Str>
template<typename U>
ONE::util::SafeDereference< Str >::SafeDereference const AssertDereference< U > &   )  [inline, protected]
 


Member Function Documentation

template<typename Str>
static void ONE::util::SafeDereference< Str >::checkDefault const Str &   )  [inline, static, protected]
 

template<typename Str>
static void ONE::util::SafeDereference< Str >::checkDereference const Str &  s  )  [inline, static, protected]
 

template<typename Str>
static void ONE::util::SafeDereference< Str >::checkInit const Str &   )  [inline, static, protected]
 

template<typename Str>
static void ONE::util::SafeDereference< Str >::swap SafeDereference< Str > &   )  [inline, static, protected]
 


Generated on Wed Sep 7 19:03:33 2005 for ONEngine by  doxygen 1.4.3