mbo::NullPointer< _Ty > Class Template Reference

Incomplete null pointer type. More...

#include <MboRefCntPtr.h>

List of all members.

Public Member Functions

_Ty & operator * ()
const _Ty & operator * () const
 operator bool () const

Classes

class  nullptr_access
 exception for null-pointer access violations More...


Detailed Description

template<class _Ty>
class mbo::NullPointer< _Ty >

Incomplete null pointer type.

This null pointer implementation throws an error for any read access, However write access is not implemented yet.

Definition at line 151 of file MboRefCntPtr.h.


Member Function Documentation

template<class _Ty>
_Ty& mbo::NullPointer< _Ty >::operator * (  )  [inline]

Read access throws a nullptr_access expection

Exceptions:
exception nullptr_access

Definition at line 173 of file MboRefCntPtr.h.

00174     {
00175         throw nullptr_access();
00176 #if defined(_MSC_VER) && _MSC_VER < 1300
00177         return *((_Ty*)(0));
00178 #endif
00179     }

template<class _Ty>
const _Ty& mbo::NullPointer< _Ty >::operator * (  )  const [inline]

Read access throws a nullptr_access expection

Exceptions:
exception nullptr_access

Definition at line 184 of file MboRefCntPtr.h.

00185     {
00186         throw nullptr_access();
00187 #if defined(_MSC_VER) && _MSC_VER < 1300
00188         return *((const _Ty*)(0));
00189 #endif
00190     }

template<class _Ty>
mbo::NullPointer< _Ty >::operator bool (  )  const [inline]

Read access throws a nullptr_access expection

Exceptions:
exception nullptr_access

Definition at line 195 of file MboRefCntPtr.h.

00196     {
00197         return false;
00198     }


The documentation for this class was generated from the following file:
  Hosted on code.google.com  
© Marcus Börger
Generated on Fri Jan 18 21:21:12 2008 for MBO-lib by doxygen 1.5.4