Spinning Topp Logo BlackTopp Studios
inc
Static Public Member Functions | List of all members
Mezzanine::CountedPtrCastImpl< ReturnPointer, OriginalPointer, CastNoneReturnZero > Class Template Reference

An implementation of the CountedPtrCast that always returns 0 cast to the original pointer type. Reached by putting CastNoneReturnZero in the ReferenceCountTraits of the target class. More...

#include <countedptr.h>

Static Public Member Functions

static ReturnPointer Cast (OriginalPointer)
 This accepts a parameter solely for compatibility with other templates and always returns 0. More...
 

Detailed Description

template<typename ReturnPointer, typename OriginalPointer>
class Mezzanine::CountedPtrCastImpl< ReturnPointer, OriginalPointer, CastNoneReturnZero >

An implementation of the CountedPtrCast that always returns 0 cast to the original pointer type. Reached by putting CastNoneReturnZero in the ReferenceCountTraits of the target class.

Parameters
ReturnPointerThe type of the NULL pointer to create.
OriginalPointerThe type of the pointer prior to casting.

Definition at line 551 of file countedptr.h.

Member Function Documentation

template<typename ReturnPointer , typename OriginalPointer >
static ReturnPointer Mezzanine::CountedPtrCastImpl< ReturnPointer, OriginalPointer, CastNoneReturnZero >::Cast ( OriginalPointer  )
inlinestatic

This accepts a parameter solely for compatibility with other templates and always returns 0.

Returns
Always 0

Definition at line 557 of file countedptr.h.


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