Public Member Functions | Protected Attributes
SimpleIntArray Class Reference

#include <Array.h>

Inheritance diagram for SimpleIntArray:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void cleanup ()
 set length to zero
void CleanUp ()
 set length to zero
const int * const_data () const
 pointer to the data
int * Data ()
 pointer to the data
const int * Data () const
 pointer to the data
int * data ()
 pointer to the data
const int * data () const
 pointer to the data
void operator= (int ai)
 set the array equal to a constant
void operator= (const SimpleIntArray &b)
 copy the elements of an array
int & operator[] (int i)
 access element of the array - start at 0
int operator[] (int i) const
 access element of constant array
void resize (int i, bool keep=false)
 change length, keep data if keep = true
void ReSize (int i, bool keep=false)
 change length, keep data if keep = true
void resize_keep (int i)
 change length, keep data
 SimpleIntArray (int xn)
 build an array length xn
 SimpleIntArray ()
 build an array length 0
 SimpleIntArray (const SimpleIntArray &b)
 make a new array equal to an existing one
int Size () const
 return the size of the array
int size () const
 return the size of the array
 ~SimpleIntArray ()
 return the space to memory

Protected Attributes

int * a
 pointer to the array
int n
 length of the array

Detailed Description

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.

Definition at line 11 of file Array.h.


Constructor & Destructor Documentation

build an array length xn

Definition at line 1831 of file NewMatExhaustive.cpp.

build an array length 0

Definition at line 18 of file Array.h.

return the space to memory

Definition at line 1840 of file NewMatExhaustive.cpp.

make a new array equal to an existing one

Definition at line 1882 of file NewMatExhaustive.cpp.


Member Function Documentation

void SimpleIntArray::cleanup ( ) [inline]

set length to zero

Definition at line 43 of file Array.h.

void SimpleIntArray::CleanUp ( ) [inline, virtual]

set length to zero

Reimplemented from Janitor.

Definition at line 44 of file Array.h.

const int* SimpleIntArray::const_data ( ) const [inline]

pointer to the data

Definition at line 36 of file Array.h.

int* SimpleIntArray::Data ( ) [inline]

pointer to the data

Definition at line 32 of file Array.h.

const int* SimpleIntArray::Data ( ) const [inline]

pointer to the data

Definition at line 33 of file Array.h.

int* SimpleIntArray::data ( ) [inline]

pointer to the data

Definition at line 34 of file Array.h.

const int* SimpleIntArray::data ( ) const [inline]

pointer to the data

Definition at line 35 of file Array.h.

void SimpleIntArray::operator= ( int  ai)

set the array equal to a constant

Definition at line 1866 of file NewMatExhaustive.cpp.

void SimpleIntArray::operator= ( const SimpleIntArray b)

copy the elements of an array

Definition at line 1872 of file NewMatExhaustive.cpp.

int & SimpleIntArray::operator[] ( int  i)

access element of the array - start at 0

Definition at line 1847 of file NewMatExhaustive.cpp.

int SimpleIntArray::operator[] ( int  i) const

access element of constant array

Definition at line 1857 of file NewMatExhaustive.cpp.

void SimpleIntArray::resize ( int  i,
bool  keep = false 
)

change length, keep data if keep = true

Definition at line 1896 of file NewMatExhaustive.cpp.

void SimpleIntArray::ReSize ( int  i,
bool  keep = false 
) [inline]

change length, keep data if keep = true

Definition at line 39 of file Array.h.

void SimpleIntArray::resize_keep ( int  i) [inline]

change length, keep data

Definition at line 41 of file Array.h.

int SimpleIntArray::Size ( ) const [inline]

return the size of the array

Definition at line 28 of file Array.h.

int SimpleIntArray::size ( ) const [inline]

return the size of the array

Definition at line 30 of file Array.h.


Member Data Documentation

int* SimpleIntArray::a [protected]

pointer to the array

Definition at line 14 of file Array.h.

int SimpleIntArray::n [protected]

length of the array

Definition at line 15 of file Array.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


lo
Author(s): U. Klank
autogenerated on Thu May 23 2013 07:34:46