QCField< T, rank > Class Template Reference

Class designed to encapsulate information on Quantum Fields. In this case the information is maintained in a Blitz++ dynamic array. More...

#include <qcfield.h>

List of all members.

Public Member Functions

Constructors
 QCField (void)
 Standard Constructor.
 QCField (int noOfRows, int noOfCols)
 Overloaded Constructor designed to set the size of the field upon construction.
 ~QCField (void)
 Standard Destructor.
Array Operations
void setSize (int noOfRows, int noOfCols)
 Sets the size of the Field destroying data currently held.
void resize (int noOfRows, int noOfCols)
 Resizes the Field while perserving data currently held (if within resized area).
Array< T, rank > * accessArray ()
 Returns a Blitz++ Array pointer to the Field.
Array< T, rank > & array ()
 Returns a Blitz++ Array of the Field.
Information Operations
int noOfRows ()
 Returns the number of Rows (x-direction) in the Field.
int noOfColumns ()
 Returns the number of Columns (y-direction) in the Field.
int height ()
 Returns the height (z-direction) in the Field.
Data Operations
void assignElement (int atRow, int atCol, T value)
 Assigns value to a particular element in the Field.
void assignElement (int atRow, int atCol, int atHeight, T value)
 Assigns value to a particular element in the 3-D Field.
retrieveElement (int atRow, int atCol)
 Returns value at row and column provided.
retrieveElement (int atRow, int atCol, int atHeight)
 Returns value at row, column and height provided.
I/O Operations
void dumpToStdErr ()
 Writes values (in Blitz++ Array format) from the Field to standard error device.
bool readFromFile (const char *fileName)
 Reads values from file in Blitz++ Array format and stores in the Field. Returns true if successful.
bool writeToFile (const char *fileName)
 Writes values to file in Blitz++ Array format from the Field. Returns true if successful.

Protected Attributes

Array< T, rank > Field
 Multi-Dimensional Array holding Field Values.


Detailed Description

template<typename T, int rank>
class QCField< T, rank >

Class designed to encapsulate information on Quantum Fields. In this case the information is maintained in a Blitz++ dynamic array.

Author:
Shekhar Chandra

Definition at line 47 of file qcfield.h.


The documentation for this class was generated from the following file:
Generated on Sat May 13 13:22:50 2006 for Quantum Construct (qC++) by  doxygen 1.4.6-NO