#include <array.h>
Inherits impulse::Frame.
Inherited by impulse::GCArray.
Public Member Functions | |
Array (unsigned int size=0) | |
Array (Value value1) | |
Array (Value value1, Value value2) | |
string | inspect () |
Value | at (unsigned int i) |
Value | atPut (unsigned int i, Value value) |
void | push (Value value) |
void | clear () |
unsigned int | size () |
Value * | data () |
If the array size is less than 10, it uses an inline array for quick access, else it allocates a dynamic array. If a value is set outside of bounds of the array, the value is stored in a hash. This allows it to be used as a sparse array.
impulse::Array::Array | ( | unsigned int | size = 0 |
) | [inline] |
impulse::Array::Array | ( | Value | value1 | ) | [inline] |
string impulse::Array::inspect | ( | ) | [inline, virtual] |
Reimplemented from impulse::Frame.
Value impulse::Array::at | ( | unsigned int | i | ) | [inline] |
void impulse::Array::push | ( | Value | value | ) | [inline] |
void impulse::Array::clear | ( | ) | [inline] |
unsigned int impulse::Array::size | ( | ) | [inline] |
Value* impulse::Array::data | ( | ) | [inline] |