RejectNullStatic< P > Struct Template Reference

#include <smart_ptr.h>

List of all members.

Public Member Functions

 RejectNullStatic ()
template<class P1 >
 RejectNullStatic (const RejectNullStatic< P1 > &)
template<class P1 >
 RejectNullStatic (const NoCheck< P1 > &)
template<class P1 >
 RejectNullStatic (const AssertCheck< P1 > &)
template<class P1 >
 RejectNullStatic (const AssertCheckStrict< P1 > &)

Static Public Member Functions

static void OnDefault (const P &)
static void OnInit (const P &val)
static void OnDereference (const P &val)
static void Swap (RejectNullStatic &)


Detailed Description

template<class P>
struct RejectNullStatic< P >

Definition at line 333 of file smart_ptr.h.


Constructor & Destructor Documentation

template<class P >
RejectNullStatic< P >::RejectNullStatic (  )  [inline]

Definition at line 335 of file smart_ptr.h.

00336         {}

template<class P >
template<class P1 >
RejectNullStatic< P >::RejectNullStatic ( const RejectNullStatic< P1 > &   )  [inline]

Definition at line 339 of file smart_ptr.h.

00340         {}

template<class P >
template<class P1 >
RejectNullStatic< P >::RejectNullStatic ( const NoCheck< P1 > &   )  [inline]

Definition at line 343 of file smart_ptr.h.

00344         {}

template<class P >
template<class P1 >
RejectNullStatic< P >::RejectNullStatic ( const AssertCheck< P1 > &   )  [inline]

Definition at line 347 of file smart_ptr.h.

00348         {}

template<class P >
template<class P1 >
RejectNullStatic< P >::RejectNullStatic ( const AssertCheckStrict< P1 > &   )  [inline]

Definition at line 351 of file smart_ptr.h.

00352         {}


Member Function Documentation

template<class P >
static void RejectNullStatic< P >::OnDefault ( const P &   )  [inline, static]

Definition at line 354 of file smart_ptr.h.

00355         {
00356             // Make it depended on template parameter
00357             static const bool DependedFalse = sizeof(P*) == 0;
00358 
00359             STATIC_CHECK(DependedFalse, ERROR_This_Policy_Does_Not_Allow_Default_Initialization);
00360         }

template<class P >
static void RejectNullStatic< P >::OnInit ( const P &  val  )  [inline, static]

Definition at line 362 of file smart_ptr.h.

00363         { if (!val) throw NullPointerException(); }

template<class P >
static void RejectNullStatic< P >::OnDereference ( const P &  val  )  [inline, static]

Definition at line 365 of file smart_ptr.h.

00366         { if (!val) throw NullPointerException(); }

template<class P >
static void RejectNullStatic< P >::Swap ( RejectNullStatic< P > &   )  [inline, static]

Definition at line 368 of file smart_ptr.h.

00369         {}


The documentation for this struct was generated from the following file:

Generated on Tue Aug 30 02:37:00 2011 for Smacky by  doxygen 1.5.8