Enum CLMemory.Map

    • Enum Constant Detail

      • READ_WRITE

        public static final CLMemory.Map READ_WRITE
        Enum representing CL_MAP_READ | CL_MAP_WRITE. This flag specifies that the memory object will be mapped for read and write operation.
      • WRITE

        public static final CLMemory.Map WRITE
        Enum representing CL_MAP_WRITE. This flag specifies that the memory object will be mapped for write operation.
      • READ

        public static final CLMemory.Map READ
        Enum representing CL_MAP_READ. This flag specifies that the memory object will be mapped for read operation.
    • Field Detail

      • FLAGS

        public final int FLAGS
        Value of wrapped OpenCL flag.
    • Method Detail

      • values

        public static CLMemory.Map[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CLMemory.Map c : CLMemory.Map.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CLMemory.Map valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • valueOf

        public CLMemory.Map valueOf​(int flag)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        flag - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null