public enum OpenCLType extends Enum<OpenCLType>
| Enum Constant and Description |
|---|
Byte |
Char |
Double |
Float |
Half |
Int |
Long |
Short |
| Modifier and Type | Method and Description |
|---|---|
static OpenCLType |
fromClass(Class<? extends Number> valueType) |
String |
toCType() |
static OpenCLType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenCLType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenCLType Int
public static final OpenCLType Char
public static final OpenCLType Long
public static final OpenCLType Short
public static final OpenCLType Byte
public static final OpenCLType Double
public static final OpenCLType Float
public static final OpenCLType Half
public static OpenCLType[] values()
for (OpenCLType c : OpenCLType.values()) System.out.println(c);
public static OpenCLType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static OpenCLType fromClass(Class<? extends Number> valueType)
Copyright © 2009-2015. All Rights Reserved.