public final class JITOptions extends Object
CUjit_option
identifiers to
their respective values, so that the options may be passed
to methods that require the parameters unsigned int numOptions, CUjit_option *options,
void **optionValues
Constructor and Description |
---|
JITOptions()
Creates new, empty JITOptions
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(int key)
Returns the value of the given option.
|
float |
getFloat(int key)
Returns the value of the given option.
|
int |
getInt(int key)
Returns the value of the given option.
|
String |
getString(int key)
Convenience method that returns the value of the given option
as a string.
|
void |
put(int key)
Put the specified option into these options (without a value)
|
void |
putBytes(int key,
byte[] value)
Put the given value for the specified option into these options
|
void |
putFloat(int key,
float value)
Put the given value for the specified option into these options
|
void |
putInt(int key,
int value)
Put the given value for the specified option into these options
|
void |
remove(int key)
Removes the specified option
|
String |
toFormattedString()
Creates and returns a formatted (aligned, multi-line) String
representation of this object
|
String |
toString()
Returns a String representation of this object.
|
public void remove(int key)
key
- An option identifierpublic void put(int key)
key
- An option identifierpublic void putInt(int key, int value)
key
- An option identifiervalue
- The option valuepublic void putFloat(int key, float value)
key
- An option identifiervalue
- The option valuepublic void putBytes(int key, byte[] value)
key
- An option identifiervalue
- The option valuepublic int getInt(int key)
int
or
unsigned int
value.key
- An option identifierpublic float getFloat(int key)
float
value.key
- An option identifierpublic byte[] getBytes(int key)
null
if
the specified option is unknown or not a byte[]
value.key
- An option identifierpublic String getString(int key)
null
if
the specified option is unknown or not a byte[]
value.key
- An option identifierpublic String toString()
public String toFormattedString()
Copyright © 2020. All rights reserved.