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

An implementation of the CountedPtrCast that naively static casts the passed pointer. Reached by putting CastStatic in the ReferenceCountTraits of the target class. More...

#include <countedptr.h>

Static Public Member Functions

static ReturnPointer Cast (OriginalPointer Original)
 Simply static cast the passed pointer. More...
 

Detailed Description

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

An implementation of the CountedPtrCast that naively static casts the passed pointer. Reached by putting CastStatic in the ReferenceCountTraits of the target class.

Parameters
ReturnPointerThe type of the pointer to target with the static cast
OriginalPointerThe type of the pointer prior to casting.

Definition at line 583 of file countedptr.h.

Member Function Documentation

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

Simply static cast the passed pointer.

Parameters
Originalthe passed pointer.
Returns
The pointer after the cast.
Note
This will almost certainly never actually exists as a function, in even basic testing the compiles completely optimizes this out during compilation.

Definition at line 591 of file countedptr.h.


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