|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opencl.CLVersion
public class CLVersion
Version of an OpenCL Implementation.
All comparison operations use the getSpecVersion()
for comparison.
Field Summary | |
---|---|
static CLVersion |
CL_1_0
|
static CLVersion |
CL_1_1
|
String |
fullversion
The full version String is defined as: OpenCL[space][major_version].[minor_version][space][platform-specific information] |
String |
implversion
The platform specific part of the version string. |
short |
major
Mayor version number. |
short |
minor
Minor version number. |
Constructor Summary | |
---|---|
protected |
CLVersion(String version)
|
Method Summary | |
---|---|
int |
compareTo(CLVersion other)
|
boolean |
equals(Object obj)
Returns true if both fullversion Strings match. |
String |
getFullVersion()
Returns the full, unfiltered version string. |
String |
getImplVersion()
|
short |
getMajor()
|
short |
getMinor()
|
String |
getSpecVersion()
Returns '"OpenCL " + major + "." + minor' . |
int |
hashCode()
|
boolean |
isAtLeast(CLVersion other)
|
boolean |
isAtLeast(int major,
int minor)
|
boolean |
isEqual(CLVersion other)
|
boolean |
isEqual(int major,
int minor)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CLVersion CL_1_0
public static final CLVersion CL_1_1
public final String fullversion
OpenCL[space][major_version].[minor_version][space][platform-specific information]
public final String implversion
fullversion
public final short minor
fullversion
public final short major
fullversion
Constructor Detail |
---|
protected CLVersion(String version)
Method Detail |
---|
public int compareTo(CLVersion other)
compareTo
in interface Comparable<CLVersion>
public boolean isAtLeast(CLVersion other)
public boolean isAtLeast(int major, int minor)
public boolean isEqual(CLVersion other)
public boolean isEqual(int major, int minor)
public String getSpecVersion()
'"OpenCL " + major + "." + minor'
.
public String getFullVersion()
fullversion
public String getImplVersion()
implversion
public short getMajor()
major
public short getMinor()
minor
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
fullversion
Strings match.
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |