#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. |
Also defines
Definition in file ShDataType.hpp.
|
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. |
|
Returns whether the value is always greater than zero (i.e. true) Definition at line 70 of file ShDataTypeImpl.hpp. |