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

ShDataType.hpp File Reference

Defines the host computation and memory storage c++ types associated with each Sh value type. More...

#include "ShUtility.hpp"
#include "ShVariableType.hpp"
#include "ShHalf.hpp"
#include "ShFraction.hpp"
#include "ShStorageType.hpp"
#include "ShDataTypeImpl.hpp"

Include dependency graph for ShDataType.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SH

Classes

struct  SH::ShDataTypeCppType< T, SH_HOST >
struct  SH::ShDataTypeCppType< T, SH_MEM >
struct  SH::ShHostType< T >
struct  SH::ShMemType< T >
struct  SH::ShDataTypeConstant< T, DT >
 Sets the constant values for a given data type. More...
#define SH_VALUETYPE_DATATYPE(T, hostType, memType)
 SH::SH_VALUETYPE_DATATYPE (ShHalf, float, ShHalf)
template<typename T>
bool SH::shDataTypeEqual (const T &a, const T &b)
 Returns a whether the two values are exactly the same.
template<typename T>
bool SH::shDataTypeIsPositive (const T &a)
 Returns whether the value is always greater than zero (i.e.

Enumerations

enum  SH::ShDataType { SH_HOST, SH_MEM, SH_DATATYPE_END }
 Used to denote the kinds of C++ data types associated with a Value type.

Functions

template<typename T, ShDataType DT>
ShDataTypeCppType< T, DT
>::type 
SH::shDataTypeCond (bool cond)
 Returns the boolean cond in the requested data type.
template<typename T1, ShDataType DT1, typename T2, ShDataType DT2>
void SH::shDataTypeCast (typename ShDataTypeCppType< T1, DT1 >::type &dest, const typename ShDataTypeCppType< T2, DT2 >::type &src)
 Casts one data type to another data type All the built-in types can use C++ casts for all the casts required by Sh internally.


Detailed Description

Defines the host computation and memory storage c++ types associated with each Sh value type.

Also defines

Definition in file ShDataType.hpp.


Generated on Thu Jul 28 17:33:25 2005 for Sh by  doxygen 1.4.3-20050530