NAME
src/pmc/capture.pmc - Capture PMC
DESCRIPTION
These are the vtable functions for the Capture PMC.
Functions
void init()
Initializes the Capture instance.
void destroy()
Free structures.
PMC *clone()
Creates an identical copy of the Capture.
void set_number_keyed_int(INTVAL key, FLOATVAL value)
void set_integer_keyed_int(INTVAL key, INTVAL value)
void set_pmc_keyed_int(INTVAL key, PMC *value)
void set_string_keyed_int(INTVAL key, STRING *value)
Sets a value in the array component of the Capture.
FLOATVAL get_number_keyed_int(INTVAL key)
INTVAL get_integer_keyed_int(INTVAL key)
PMC *get_pmc_keyed_int(INTVAL key)
STRING *get_string_keyed_int(INTVAL key)
Retrieves a value in the array component of the Capture.
void push_float(FLOATVAL value)
void push_integer(INTVAL value)
void push_pmc(PMC *value)
void push_string(STRING *value)
Push a value onto the array component of the Capture.
void unshift_float(FLOATVAL value)
void unshift_integer(INTVAL value)
void unshift_pmc(PMC *value)
void unshift_string(STRING *value)
Unshift a value onto the array component of the Capture.
FLOATVAL pop_float()
INTVAL pop_integer()
PMC *pop_pmc()
STRING *pop_string()
Pop a value from the array component of the Capture.
FLOATVAL shift_float()
INTVAL shift_integer()
PMC *shift_pmc()
STRING *shift_string()
Shift a value from the array component of the Capture.
INTVAL elements()
Return the number of elements in the array component of the Capture.
INTVAL defined_keyed_int(INTVAL key)
Return true if element INTVAL exists_keyed_int(INTVAL key)
Return true if element void delete_keyed_int(INTVAL key)
Delete the element corresponding to void set_number_keyed(PMC *key, FLOATVAL value)
void set_integer_keyed(PMC *key, INTVAL value)
void set_pmc_keyed(PMC *key, PMC *value)
void set_string_keyed(PMC *key, STRING *value)
Sets a value in the hash component of the Capture.
FLOATVAL get_number_keyed(PMC *key)
INTVAL get_integer_keyed(PMC *key)
PMC *get_pmc_keyed(PMC *key)
STRING *get_string_keyed(PMC *key)
Retrieves a value from the hash component of the Capture.
INTVAL defined_keyed(PMC *key)
Return true if element INTVAL exists_keyed(PMC *key)
Return true if element void delete_keyed(PMC *key)
Delete the element corresponding to void set_pmc(PMC *capture)
Set this capture to hold the value of another.
If set to PMCNULL,
erase the contents of the array and hash components.
STRING get_string()
Return a string representation of the hash,
showing class and memory address.
void mark(void)
Mark the array.
key
of the array component is defined.
key
of the array component exists.
key
in the array component.
key
of the hash component is defined.
key
of the hash component exists.
key
in the hash component.
Methods
HISTORY
Initial version - Patrick Michaud 2006-11-03