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

SmartPointerChecking.h File Reference


Detailed Description

contains Checking Policies for the SmartPointer

Checking policies describe when the pointee is checked for validity. Generally, such policies should follow the following example

 template <typename Str>
 class ExamplePolicy {
 protected:
     ExamplePolicy();
     template <typename U> ExamplePolicy(const ExamplePolicy<U>&);
     static void checkDefault(const Str&);
     static void checkInit(const Str&);
     static void checkDereference(const Str&);
     static void swap(ExamplePolicy&);
 };
Policies should be convertible from lax to strict if such a conversion is appropriate. The provided policy are convertible in the following way: NoChecking -> AssertDereference -> SafeDereference


Namespaces

namespace  ONE
namespace  ONE::util

Classes

class  ONE::util::AssertDereference< Str >
 uses assert to safeguard against dereferenced 0 pointers More...
class  ONE::util::NoChecking< Str >
 performs no checking More...
class  ONE::util::SafeDereference< Str >
 throws an exception when a 0 pointer is dereferenced More...


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