Inherits From:
NSObject
Conforms To: NSObject (NSObject)
Declared in: itkRuntime/ITKValue.h
The instance method scriptingLanguage will return an object conforming to the ITKScriptingLanguage protocol that can be used to access meta information about the language which the wrapped value comes from.
nullValue
Implemented by concrete subclasses to return the scripting language's closest equivalent to a null, undefined, or void value. The isNull method is guaranteed to return YES for the ITKValue returned from this method.
See also: - isNull
valueWithArray:
(NSArray *)valuesCreates and returns the concrete scripting language's closest equivalent to a list, array, or similar ordered sequence composed of values, all of which have to be of the same ITKValue subclass this message is sent to.
See also: - initWithArray:
valueWithBool:
(BOOL)valueCreates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithBytes:
(void *)value objCType:
(const char *)typeCreates and returns an ITKValue wrapping the concrete scripting language's representation of value, which is interpreted as being of the Objective-C type type. type should be created with the Objective-C @encode() compiler directive; it shouldn't be hard-coded as a C string.
See also: - initWithBytes:objCType:
valueWithChar:
(char)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithDouble:
(double)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithFloat:
(float)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithInt:
(int)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithLong:
(long)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithLongLong:
(long long)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithNativeRep:
(void *)value Creates and returns an ITKValue wrapping value, which is taken to be the native representation of some value in the concrete scripting language.
See also: - initWithNativeRep:
valueWithObject:
(id)object Creates and returns an ITKValue wrapping the concrete scripting language's representation of object.
valueWithPointer:
(void *)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithPointer:
(void *)addr toObjCType:
(const char *)type Creates and returns an ITKValue wrapping the concrete scripting language's representation of a pointer pointing to the Objective-C type type at address addr. type should be created with the Objective-C @encode() compiler directive; it shouldn't be hard-coded as a C string.
valueWithShort:
(short)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithString:
(NSString *)string Creates and returns an ITKValue wrapping the concrete scripting language's representation of string.
See also: - initWithString:
valueWithUnsignedChar:
(unsigned char)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithUnsignedInt:
(unsigned int)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithUnsignedLong:
(unsigned long)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithUnsignedLongLong:
(unsigned long long)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
valueWithUnsignedShort:
(unsigned short)value Creates and returns an ITKValue wrapping the concrete scripting language's representation of value.
arrayValue
Implemented by concrete subclasses to convert the wrapped value to the scripting language's closest equivalent of a list, array, or similar ordered sequence of values and return the components of that sequence as an NSArray of ITKValues, all of which are of the same class as the receiving object. Raises an exception if unsuccessful.
boolValue
Returns the result of converting the wrapped value to a BOOL. Raises an exception if unsuccessful.
charValue
Returns the result of converting the wrapped value to a char. Raises an exception if unsuccessful.
doubleValue
Returns the result of converting the wrapped value to a double. Raises an exception if unsuccessful.
floatValue
Returns the result of converting the wrapped value to a float. Raises an exception if unsuccessful.
getValue:
(void *)buffer objCType:
(const char *)type Implemented by concrete subclasses to interpret the wrapped value as the Objective-C type type and store the result in buffer. type should be created with the Objective-C @encode() compiler directive; it shouldn't be hard-coded as a C string. buffer should be large enough to hold the value. Raises an exception if unsuccessful.
initWithArray:
(NSArray *)valuesImplemented by concrete subclasses to initialize a newly created ITKValue with the scripting language's closest equivalent to a list, array, or similar ordered sequence composed of values, all of which have to be of the same ITKValue subclass as the receiver.
See also: + valueWithArray:
initWithBytes:
(void *)value objCType:
(const char *)typeImplemented by concrete subclasses to initialize a newly created ITKValue with the scripting language's representation of value, which is interpreted as being of the Objective-C type type. type should be created with the Objective-C @encode() compiler directive; it shouldn't be hard-coded as a C string.
See also: + valueWithBytes:objCType:
initWithNativeRep:
(void *)value Implemented by concrete subclasses to initialize a newly created ITKValue with value, which is taken to be the native representation of some value in the concrete scripting language.
See also: + valueWithNativeRep:
initWithString:
(NSString *)string Implemented by concrete subclasses to initialize a newly created ITKValue with the scripting language's representation of string.
See also: + valueWithString:
intValue
Returns the result of converting the wrapped value to an int. Raises an exception if unsuccessful.
isNull
Implemented by concrete subclasses to return YES if the wrapped value equals the scripting language's closest equivalent to a null, undefined, or void value.
See also: + nullValue
longLongValue
Returns the result of converting the wrapped value to a long long. Raises an exception if unsuccessful.
longValue
Returns the result of converting the wrapped value to a long. Raises an exception if unsuccessful.
nativeRep
Implemented by concrete subclasses to return the native representation wrapped by the receiver. You won't ever need to use this method unless you want to use the low-level API of some scripting language.
objectValue
Returns the result of converting the wrapped value to an Objective-C id. Raises an exception if unsuccessful.
pointerValue
Returns the result of converting the wrapped value to a pointer. Raises an exception if unsuccessful.
scriptingLanguage
- (id <ITKScriptingLanguage>)scriptingLanguage
Implemented by concrete subclasses to return an ITKScriptingLanguage conforming object providing meta information about the language which the wrapped value comes from.
shortValue
Returns the result of converting the wrapped value to a short. Raises an exception if unsuccessful.
source
Implemented by concrete subclasses to return a string, which, when evaluated as a script in the corresponding scripting language, will result in the original value. Raises an exception if unsuccessful.
stringValue
Implemented by concrete subclasses to return the result of converting the wrapped value to a string. Raises an exception if unsuccessful.
unsignedCharValue
Returns the result of converting the wrapped value to an unsigned char. Raises an exception if unsuccessful.
unsignedIntValue
Returns the result of converting the wrapped value to an unsigned int. Raises an exception if unsuccessful.
unsignedLongLongValue
Returns the result of converting the wrapped value to an unsigned long long. Raises an exception if unsuccessful.
unsignedLongValue
Returns the result of converting the wrapped value to an unsigned long. Raises an exception if unsuccessful.
unsignedShortValue
Returns the result of converting the wrapped value to an unsigned short. Raises an exception if unsuccessful.