O2 2.0
A communication protocol for interactive music and media applications.
Public Member Functions | Protected Attributes | List of all members
Vec< T > Class Template Reference
Inheritance diagram for Vec< T >:
O2obj

Public Member Functions

 Vec (int siz)
 
 Vec (int siz, bool z)
 
 Vec (Vec &v)
 
void init (int siz)
 
void init (int siz, bool z)
 
void finish ()
 
void zero ()
 
T & operator[] (int index)
 
T & last ()
 
void clear ()
 
void remove (int index)
 
void push_back (T data)
 
void append (const T *data, int count)
 
T * append_space (int count)
 
void erase (int first, int last)
 
void erase (int i)
 
void drop_front (int n)
 
void insert (int i, T data)
 
void retrieve (T *data)
 
pop_back ()
 
bool bounds_check (int i)
 
int size ()
 
int get_allocated ()
 
- Public Member Functions inherited from O2obj
void * operator new (size_t size)
 
void operator delete (void *ptr)
 

Protected Attributes

int allocated
 
int length
 
T * array
 

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