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

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

#include <countedptr.h>

Static Public Member Functions

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

Detailed Description

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

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

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

Definition at line 600 of file countedptr.h.

Member Function Documentation

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

Simply dynamic 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, tests show this as performant as a normal call to dynamic_cast.

Definition at line 608 of file countedptr.h.


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