NAME

src/pmc/pointer.pmc - Pointer PMC

DESCRIPTION

These are the vtable functions for the Pointer base class.

The actual pointer is in PMC_data.

Methods

void init()
Initializes the pointer.
void mark()
Marks the pointer as live.
PMC *clone()
Creates and returns a clone of the pointer.
void set_pointer(void *)
Sets the pointer value.
void *get_pointer()
Returns the pointer value.
INTVAL get_integer()
Returns the pointer value as an integer.
FLOATVAL get_number()
Returns the pointer value as a floating-point number.
STRING *get_repr()
Returns the pointer value as a Parrot string.
STRING *get_string()
Returns the pointer value as a Parrot string.
INTVAL get_bool()
Returns whether the pointer is not NULL.
INTVAL is_same(PMC *pmc2)
Returns whether the pointer has the same value as *pmc2.