pArray< T > Class Template Reference

This pArray class is a template class that provides arrays of classes containing pointers. More...

#include <array.h>

Inheritance diagram for pArray< T >:

Inheritance graph
[legend]
Collaboration diagram for pArray< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void copyAndPrependColumn (pArray &source)
 Copies data from source to the current object prepending an empty column.
void copySubset (pArray &source, long lastColumnToCopy)
 Copies a subset of data from source to the current object.
void copySubset (pArray &source, long firstColumnToCopy, long lastColumnToCopy, long startingColumn)
 Copies a subset of data from source to the current object.
pArray< T > & operator= (pArray< T > &source)
pArray< T > operator= (pArray< T > &source) const
void copyAndPrependColumn (pArray &source)
 Copies data from source to the current object prepending an empty column.
void copySubset (pArray &source, long lastColumnToCopy)
 Copies a subset of data from source to the current object.
void copySubset (pArray &source, long firstColumnToCopy, long lastColumnToCopy, long startingColumn)
 Copies a subset of data from source to the current object.
pArray< T > & operator= (pArray< T > &source)
pArray< T > operator= (pArray< T > &source) const

Detailed Description

template<class T>
class pArray< T >

This pArray class is a template class that provides arrays of classes containing pointers.

pArray stores the array elements directly in the array. Array provides an easy way to acess the elements through the parenthesis operator.

Author:
Lynn Hazan


Member Function Documentation

template<class T>
void pArray< T >::copyAndPrependColumn ( pArray< T > &  source  )  [inline]

Copies data from source to the current object prepending an empty column.

Parameters:
source pArray containing the data to put in the current pArray.

template<class T>
void pArray< T >::copySubset ( pArray< T > &  source,
long  lastColumnToCopy 
) [inline]

Copies a subset of data from source to the current object.

Copy from the first column to the lastColumnToCopy.

Parameters:
source pArray containing the data to put in the current pArray.
lastColumnToCopy last column containing data to copy, start at 1.

template<class T>
void pArray< T >::copySubset ( pArray< T > &  source,
long  firstColumnToCopy,
long  lastColumnToCopy,
long  startingColumn 
) [inline]

Copies a subset of data from source to the current object.

Copy from firstColumnToCopy to the lastColumnToCopy inserting them after startingColumn. Assumes that the Array has the correct size.

Parameters:
source pArray containing the data to put in the current Array.
firstColumnToCopy first column containing data to copy, start at 1.
lastColumnToCopy last column containing data to copy, start at 1.
startingColumn column from where to start copying to.

template<class T>
void pArray< T >::copyAndPrependColumn ( pArray< T > &  source  )  [inline]

Copies data from source to the current object prepending an empty column.

Parameters:
source pArray containing the data to put in the current pArray.

template<class T>
void pArray< T >::copySubset ( pArray< T > &  source,
long  lastColumnToCopy 
) [inline]

Copies a subset of data from source to the current object.

Copy from the first column to the lastColumnToCopy.

Parameters:
source pArray containing the data to put in the current pArray.
lastColumnToCopy last column containing data to copy, start at 1.

template<class T>
void pArray< T >::copySubset ( pArray< T > &  source,
long  firstColumnToCopy,
long  lastColumnToCopy,
long  startingColumn 
) [inline]

Copies a subset of data from source to the current object.

Copy from firstColumnToCopy to the lastColumnToCopy inserting them after startingColumn. Assumes that the Array has the correct size.

Parameters:
source pArray containing the data to put in the current Array.
firstColumnToCopy first column containing data to copy, start at 1.
lastColumnToCopy last column containing data to copy, start at 1.
startingColumn column from where to start copying to.


The documentation for this class was generated from the following files:
Generated on Mon Sep 17 20:47:34 2007 for NeuroScope by  doxygen 1.5.1