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 "ShInterval.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

Defines

#define SH_VALUETYPE_DATATYPE(T, hostType, memType)

Enumerations

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

Functions

 SH_VALUETYPE_DATATYPE (ShHalf, float, ShHalf)
template<typename T, ShDataType DT>
ShDataTypeCppType< T, DT
>::type 
shDataTypeCond (bool cond)
 Returns the boolean cond in the requested data type.
template<typename T>
bool shDataTypeEqual (const T &a, const T &b)
 Returns a whether the two values are exactly the same.
template<typename T>
bool shDataTypeIsPositive (const T &a)
 Returns whether the value is always greater than zero (i.e.
template<typename T1, ShDataType DT1, typename T2, ShDataType DT2>
void 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.


Function Documentation

template<typename T>
bool SH::shDataTypeEqual const T &  a,
const T &  b
[inline]
 

Returns a whether the two values are exactly the same.

This is is useful for the range types.

Definition at line 51 of file ShDataTypeImpl.hpp.

template<typename T>
bool SH::shDataTypeIsPositive const T &  a  )  [inline]
 

Returns whether the value is always greater than zero (i.e.

true)

Definition at line 70 of file ShDataTypeImpl.hpp.


Generated on Mon Jan 24 18:36:53 2005 for Sh by  doxygen 1.4.1