#include <newmat.h>
Public Member Functions | |
void | cleanup () |
set length to zero More... | |
void | CleanUp () |
set length to zero More... | |
const int * | const_data () const |
pointer to the data More... | |
int * | Data () |
pointer to the data More... | |
const int * | Data () const |
pointer to the data More... | |
int * | data () |
pointer to the data More... | |
const int * | data () const |
pointer to the data More... | |
void | ReSize (int i, bool keep=false) |
change length, keep data if keep = true More... | |
void | resize_keep (int i) |
change length, keep data More... | |
SimpleIntArray () | |
build an array length 0 More... | |
int | Size () const |
return the size of the array More... | |
int | size () const |
return the size of the array More... | |
SimpleIntArray (int xn) | |
build an array length xn More... | |
~SimpleIntArray () | |
return the space to memory More... | |
int & | operator[] (int i) |
access element of the array - start at 0 More... | |
int | operator[] (int i) const |
access element of constant array More... | |
void | operator= (int ai) |
set the array equal to a constant More... | |
void | operator= (const SimpleIntArray &b) |
copy the elements of an array More... | |
SimpleIntArray (const SimpleIntArray &b) | |
make a new array equal to an existing one More... | |
void | resize (int i, bool keep=false) |
change length, keep data if keep = true More... | |
Public Member Functions inherited from Janitor | |
Janitor () | |
virtual | ~Janitor () |
Protected Attributes | |
int * | a |
pointer to the array More... | |
int | n |
length of the array More... | |
A very simple integer array class. A minimal array class to imitate a C style array but giving dynamic storage mostly intended for internal use by newmat. Probably to be replaced by a templated class when I start using templates.
SimpleIntArray::SimpleIntArray | ( | int | xn | ) |
build an array length xn
Definition at line 1163 of file newmat4.cpp.
|
inline |
SimpleIntArray::~SimpleIntArray | ( | ) |
return the space to memory
Definition at line 1172 of file newmat4.cpp.
SimpleIntArray::SimpleIntArray | ( | const SimpleIntArray & | b | ) |
make a new array equal to an existing one
Definition at line 1214 of file newmat4.cpp.
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
void SimpleIntArray::operator= | ( | int | ai | ) |
set the array equal to a constant
Definition at line 1198 of file newmat4.cpp.
void SimpleIntArray::operator= | ( | const SimpleIntArray & | b | ) |
copy the elements of an array
Definition at line 1204 of file newmat4.cpp.
int & SimpleIntArray::operator[] | ( | int | i | ) |
access element of the array - start at 0
Definition at line 1179 of file newmat4.cpp.
int SimpleIntArray::operator[] | ( | int | i | ) | const |
access element of constant array
Definition at line 1189 of file newmat4.cpp.
void SimpleIntArray::resize | ( | int | i, |
bool | keep = false |
||
) |
change length, keep data if keep = true
Definition at line 1228 of file newmat4.cpp.
|
inline |
|
inline |
|
inline |
|
inline |