Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SH::ShDataVariantCast< Dest, DestDT, Src, SrcDT > Struct Template Reference

Handles casting between S and D storage types. More...

#include <ShVariantCast.hpp>

Collaboration diagram for SH::ShDataVariantCast< Dest, DestDT, Src, SrcDT >:

Collaboration graph
[legend]
List of all members.

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 ShDataVariantCastinstance ()

Static Public Attributes

static const ShValueType DestValueType
static const ShValueType SrcValueType

Detailed Description

template<typename Dest, ShDataType DestDT, typename Src, ShDataType SrcDT>
struct SH::ShDataVariantCast< Dest, DestDT, Src, SrcDT >

Handles casting between S and D storage types.

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.


The documentation for this struct was generated from the following files:
Generated on Mon Jan 24 18:38:27 2005 for Sh by  doxygen 1.4.1