Package org.jocl

Class cl_abstract_properties

java.lang.Object
org.jocl.NativePointerObject
org.jocl.cl_abstract_properties
Direct Known Subclasses:
cl_context_properties, cl_device_partition_property, cl_pipe_properties, cl_queue_properties, cl_sampler_properties

abstract class cl_abstract_properties extends NativePointerObject
Abstract base class for CL properties, like cl_context_properties and cl_device_partition_property
  • Constructor Details

    • cl_abstract_properties

      cl_abstract_properties()
      Creates new, empty cl_abstract_properties
  • Method Details

    • addProperty

      public void addProperty(long id, long value)
      Add the specified property to these properties
      Parameters:
      id - The property ID
      value - The property value
    • propertyString

      protected abstract String propertyString(long value)
      Returns the string identifying the given property
      Parameters:
      value - The property value
      Returns:
      The string representation
    • buildString

      protected String buildString()
      Returns a String containing the contents of these properties
      Returns:
      A String representation of the contents of these properties