com.jogamp.opencl
Class CLVersion

java.lang.Object
  extended by com.jogamp.opencl.CLVersion
All Implemented Interfaces:
Comparable<CLVersion>

public class CLVersion
extends Object
implements Comparable<CLVersion>

Version of an OpenCL Implementation. All comparison operations use the getSpecVersion() for comparison.

Author:
Michael Bien

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

CL_1_0

public static final CLVersion CL_1_0

CL_1_1

public static final CLVersion CL_1_1

fullversion

public final String fullversion
The full version String is defined as: OpenCL[space][major_version].[minor_version][space][platform-specific information]


implversion

public final String implversion
The platform specific part of the version string.

See Also:
fullversion

minor

public final short minor
Minor version number.

See Also:
fullversion

major

public final short major
Mayor version number.

See Also:
fullversion
Constructor Detail

CLVersion

protected CLVersion(String version)
Method Detail

compareTo

public int compareTo(CLVersion other)
Specified by:
compareTo in interface Comparable<CLVersion>

isAtLeast

public boolean isAtLeast(CLVersion other)

isAtLeast

public boolean isAtLeast(int major,
                         int minor)

isEqual

public boolean isEqual(CLVersion other)

isEqual

public boolean isEqual(int major,
                       int minor)

getSpecVersion

public String getSpecVersion()
Returns '"OpenCL " + major + "." + minor'.


getFullVersion

public String getFullVersion()
Returns the full, unfiltered version string.

See Also:
fullversion

getImplVersion

public String getImplVersion()
See Also:
implversion

getMajor

public short getMajor()
See Also:
major

getMinor

public short getMinor()
See Also:
minor

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Returns true if both fullversion Strings match.

Overrides:
equals in class Object