#include <ParticleArray.h>
Public Member Functions | |
| ParticleArray (uint32 total_temp) | |
| Constructor, allocates memory for particles, sets total to the argument passed. | |
| ParticleArray () | |
| Default Constructor, sets total to zero. | |
| ~ParticleArray () | |
| Destructor. | |
| void | resize (uint32 total_temp) |
| Allocates or reallocates memory, sets total to argument passed. | |
| int | size () |
| Returns the number of particles. | |
| void | printData (std::ostream &os) |
| Prints all of the data. | |
| void | printXYZ (std::ostream &os) |
| Prints only the xyz data. | |
| void | printRasmol (std::ostream &os) |
| Prints only the xyz data in rasmol format. | |
| void | printRasmol (std::ostream &os, float scaleWidth, float scaleHeight, float scaleDepth) |
| Prints only the xyz data in rasmol format that utilizes centroid data and the actual dimensions of the system. | |
| T | getValue (int i, int j) |
| Routine to fetch value at specific index location (i,j). | |
| void | setValue (int i, int j, T value) |
Public Attributes | |
| uint32 | total |
| number of particles | |
| T * | particle |
| particle array | |
| ParticleArray< T >::ParticleArray | ( | uint32 | total_temp | ) | [inline] |
Constructor, allocates memory for particles, sets total to the argument passed.
| total_temp | Number of particles. |
| ParticleArray< T >::ParticleArray | ( | ) | [inline] |
Default Constructor, sets total to zero.
| ParticleArray< T >::~ParticleArray | ( | ) | [inline] |
Destructor.
| void ParticleArray< T >::resize | ( | uint32 | total_temp | ) | [inline] |
Allocates or reallocates memory, sets total to argument passed.
| total_temp | Number of particles |
| int ParticleArray< T >::size | ( | ) | [inline] |
Returns the number of particles.
| void ParticleArray< T >::printData | ( | std::ostream & | os | ) | [inline] |
Prints all of the data.
| os | Destination of output. Can be std::out, file, etc. |
| void ParticleArray< T >::printXYZ | ( | std::ostream & | os | ) | [inline] |
Prints only the xyz data.
| os | Destination of output. Can be std::out, file, etc. |
| void ParticleArray< T >::printRasmol | ( | std::ostream & | os | ) | [inline] |
Prints only the xyz data in rasmol format.
| os | Destination of output. Can be std::out, file, etc. |
| void ParticleArray< T >::printRasmol | ( | std::ostream & | os, | |
| float | scaleWidth, | |||
| float | scaleHeight, | |||
| float | scaleDepth | |||
| ) | [inline] |
Prints only the xyz data in rasmol format that utilizes centroid data and the actual dimensions of the system.
| os | Destination of output. Can be std::out, file, etc. | |
| scaleWidth | Length of a pixel in the width dimension | |
| scaleHeight | Length of a pixel in the height dimension | |
| scaleDepth | Length of a pixel in the depth dimension |
| T ParticleArray< T >::getValue | ( | int | i, | |
| int | j | |||
| ) | [inline] |
Routine to fetch value at specific index location (i,j).
Provides an easy routine to fetch a value since 1-D arrays are less user-friendly.
| i | Particle ID. | |
| j | Dimension (0-2), centroid (3-5), m_0 (6), m_2 (7) . |
| void ParticleArray< T >::setValue | ( | int | i, | |
| int | j, | |||
| T | value | |||
| ) | [inline] |
| uint32 ParticleArray< T >::total |
number of particles
| T* ParticleArray< T >::particle |
particle array
1.5.3