#include <array.h>
Collaboration diagram for Array< Type >:
Public Member Functions | |
Array (int length) | |
Array (Type *data, int length) | |
Array (const Array< Type > &source) | |
~Array () | |
void | setvalue (const Type &value) |
void | inject (const Type *source) |
void | inject (const Array< Type > &source) |
Array< Type > & | operator= (const Type *source) |
Array< Type > & | operator= (const Array< Type > &source) |
void | copyto (Type *dest) const |
int | length () const |
Type & | operator[] (int i) |
const Type & | operator[] (int i) const |
bool | operator== (const Array< Type > &a) const |
bool | operator!= (const Array< Type > &a) const |
Protected Attributes | |
Type * | elems |
int | n |
bool | owner |
Definition at line 37 of file array.h.
Definition at line 94 of file array.h.
References Array< Type >::elems, Array< Type >::n, and Array< Type >::owner.
Definition at line 101 of file array.h.
References Array< Type >::elems, Array< Type >::n, and Array< Type >::owner.
Definition at line 107 of file array.h.
References Array< Type >::elems, Array< Type >::n, and Array< Type >::owner.
void Array< Type >::setvalue | ( | const Type & | value | ) |
void Array< Type >::inject | ( | const Type * | source | ) |
Definition at line 123 of file array.h.
References Array< Type >::elems, and Array< Type >::n.
Referenced by Array< Type >::copyto(), and Array< Type >::inject().
Definition at line 131 of file array.h.
References Array< Type >::elems, Array< Type >::inject(), and Array< Type >::n.
void Array< Type >::copyto | ( | Type * | dest | ) | const |
int Array< Type >::length | ( | ) | const [inline] |
Type & Array< Type >::operator[] | ( | int | i | ) |
const Type & Array< Type >::operator[] | ( | int | i | ) | const |
Definition at line 84 of file array.h.
Referenced by Array< Type >::Array(), Array< Type >::inject(), Array< Type >::operator[](), Array< Type >::setvalue(), and Array< Type >::~Array().
Definition at line 88 of file array.h.
Referenced by Array< Type >::Array(), Array< Type >::copyto(), Array< Type >::inject(), Array< Matrix * >::length(), Array< Matrix * >::operator==(), and Array< Type >::setvalue().
Definition at line 89 of file array.h.
Referenced by Array< Type >::Array(), and Array< Type >::~Array().