impulse::Array Class Reference

An Array is a sequential block of Values, indexed by number. More...

#include <array.h>

Inherits impulse::Frame.

Inherited by impulse::GCArray.

List of all members.

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 ()
Valuedata ()


Detailed Description

An Array is a sequential block of Values, indexed by number.

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.


Constructor & Destructor Documentation

impulse::Array::Array ( unsigned int  size = 0  )  [inline]

impulse::Array::Array ( Value  value1  )  [inline]

impulse::Array::Array ( Value  value1,
Value  value2 
) [inline]


Member Function Documentation

string impulse::Array::inspect (  )  [inline, virtual]

Reimplemented from impulse::Frame.

Value impulse::Array::at ( unsigned int  i  )  [inline]

Value impulse::Array::atPut ( unsigned int  i,
Value  value 
) [inline]

void impulse::Array::push ( Value  value  )  [inline]

void impulse::Array::clear (  )  [inline]

unsigned int impulse::Array::size (  )  [inline]

Value* impulse::Array::data (  )  [inline]


The documentation for this class was generated from the following file:

Generated on Wed May 13 20:04:19 2009 for impulse by  doxygen 1.5.8