#include <ShVariantCast.hpp>
Collaboration diagram for SH::ShDataVariantCast< Dest, DestDT, Src, SrcDT >:
Public Types | |
typedef ShDataTypeCppType< Dest, DestDT >::type | D |
typedef ShDataTypeCppType< Src, SrcDT >::type | S |
typedef ShDataVariant< Dest, DestDT > | DestVariant |
typedef const ShDataVariant< Src, SrcDT > | SrcVariant |
Public Member Functions | |
void | doCast (ShVariant *dest, const ShVariant *src) const |
void | getCastTypes (ShValueType &dest, ShDataType &destDT, ShValueType &src, ShDataType &srcDT) const |
void | getDestTypes (ShValueType &valueType, ShDataType &dataType) const |
void | doCast (D &dest, const S &src) const |
Static Public Member Functions | |
static const ShDataVariantCast * | instance () |
Static Public Attributes | |
static const ShValueType | DestValueType |
static const ShValueType | SrcValueType |
The actual data cast will have type ShHostType<SRC> to ShHostType<DEST> and may have some extra conversion code (e.g. clamping) applied in addition to the default C cast for those types.
Definition at line 73 of file ShVariantCast.hpp.