A class that represents a type of scalar math value.
More...
#include <omScalarType.h>
|
enum | Enum {
UNDEFINED = 0,
BOOLEAN = 1,
INT8 = 2,
UINT8 = 3,
INT16 = 4,
UINT16 = 5,
INT32 = 6,
UINT32 = 7,
INT64 = 8,
UINT64 = 9,
FLOAT16 = 10,
FLOAT32 = 11,
FLOAT64 = 12,
COMPLEX_FLOAT16 = 13,
COMPLEX_FLOAT32 = 14,
COMPLEX_FLOAT64 = 15,
COUNT = 16
} |
| An enum type used to indicate a primitive built-in type. More...
|
|
|
template<typename T > |
static ScalarType | of () |
| Get the scalar type of a templated type. More...
|
|
template<typename T > |
static void | check () |
| Check to see if the templated type is a supported scalar type. More...
|
|
A class that represents a type of scalar math value.
An enum type used to indicate a primitive built-in type.
Enumerator |
---|
UNDEFINED |
An undefined scalar type.
|
BOOLEAN |
A scalar type representing the 'bool' type.
|
INT8 |
A scalar type representing an 8-bit signed integer type.
|
UINT8 |
A scalar type representing an 8-bit unsigned integer type.
|
INT16 |
A scalar type representing an 16-bit signed signed integer type.
|
UINT16 |
A scalar type representing an 16-bit unsigned integer type.
|
INT32 |
A scalar type representing a 32-bit signed integer type.
|
UINT32 |
A scalar type representing a 32-bit unsigned integer type.
|
INT64 |
A scalar type representing a 64-bit signed integer type.
|
UINT64 |
A scalar type representing a 64-bit unsigned integer type.
|
FLOAT16 |
A scalar type representing an 16-bit floating-point type.
|
FLOAT32 |
A scalar type representing a 32-bit floating-point type.
|
FLOAT64 |
A scalar type representing a 64-bit floating-point type.
|
COMPLEX_FLOAT16 |
A scalar type representing a 16-bit complex floating-point type.
|
COMPLEX_FLOAT32 |
A scalar type representing a 32-bit complex floating-point type.
|
COMPLEX_FLOAT64 |
A scalar type representing a 64-bit complex floating-point type.
|
COUNT |
The number of scalar type enum values.
|
om::math::ScalarType::ScalarType |
( |
Enum |
newType | ) |
|
|
inline |
Create a new scalar type with the specified scalar type enum value.
Get the scalar type of a templated type.
If the templated type is not a scalar type, an UNDEFINED scalar type is returned.
template<typename T >
static void om::math::ScalarType::check |
( |
| ) |
|
|
inlinestatic |
Check to see if the templated type is a supported scalar type.
Calling this empty method will produce a compiler error if the templated type is not a supported scalar type.
om::math::ScalarType::operator Enum |
( |
| ) |
const |
|
inline |
Convert this scalar type to an enum value.
Size om::math::ScalarType::getSizeInBits |
( |
| ) |
const |
|
inline |
Return the size of this scalar type in bits.
Size om::math::ScalarType::getSizeInBytes |
( |
| ) |
const |
Return the size of this scalar type in bytes.
Bool om::math::ScalarType::isSigned |
( |
| ) |
const |
Return whether or not this scalar type can represent negative numbers.
Bool om::math::ScalarType::isInteger |
( |
| ) |
const |
Return whether or not this scalar type is an integer type.
Bool om::math::ScalarType::isFloatingPoint |
( |
| ) |
const |
Return whether or not this scalar type is a floating point type.
Return a string representation of the scalar type.
Convert this scalar type into a string representation.
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
template<>
void om::math::ScalarType::check |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: