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

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

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

Inheritance graph
[legend]
List of all members.

Detailed Description

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

uses assert to safeguard against dereferenced 0 pointers

This policy allows 0 SmartPointer s, however, they may not be dereferenced (obviously). Due to the use of assert, this policy provides some degree of safety in the debug build but is effectively unchecked in the release build.

Author:
Daniel Seibert


Protected Member Functions

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

Static Protected Member Functions

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


Constructor & Destructor Documentation

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

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

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


Member Function Documentation

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

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

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

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


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