8.42. File tom/InvocationResult

class tom.InvocationResult

inherits

State supers: State, Constants

methods


protected instance (id)
  with pointer result;

Return a freshly allocated instance with the result, which is a struct trt_invocation_result.

instance tom.InvocationResult

variables

pointer values;

The actual result.

methods


protected id
  init pointer result;

Designated initializer.


dynamic
  components;

Retrieve all values from this result. The expected return type must fully match the actual return type.


dynamic
  component int n;

Retrieve the nth element from the result. The index of the first element is 0.

The expected return type must fully match, or can be an object, in which case numeric values are returned in a Number instance, and selectors in a Selector. Pointer values on a mismatch cause a condition to be signaled.


int
  length;

Return the number of elements in this result.


void
  setReturnValues (pointer, pointer) (first_value, extra_values)
      forSelector selector sel;

From the values held by this InvocationResult, update the builtin_return_type value pointed to by first_value, and any extra return value pointers as pointed to by the va_list extra_values.


TypeDescription
  typeDescription;

Return a the TypeDescription for this result.


OutputStream
  writeFields OutputStream s;

Output the elements in this result.


void
  dealloc;

Free the values.


void
  gc_mark_elements;

Mark the objects in this result.


void
  encodeUsingCoder Encoder coder;

Undocumented.


void
  initWithCoder Decoder coder;

Undocumented.


protected void
  encodeToCoder Encoder coder;

Private method to do the hard work of encoding all information carried by this result.


protected void
  decodeFromCoder Decoder coder;

Private method to do the hard work of decoding all information from the coder into this result.