Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

cluster.cpp File Reference

Include dependency graph for cluster.cpp:

Go to the source code of this file.

Functions

ostream & operator<< (ostream &outStream, const Cluster &cluster)
bool operator== (const Cluster &lhs, const Cluster &rhs)


Function Documentation

ostream& operator<< ostream &  outStream,
const Cluster cluster
 

Outputs the contents of the cluster in the format of:
Positions:
x, y, z

Velocity:
x, y, z

Acceleration:
x, y, z

Potential Energies:
Each atoms' potential energy.

Kinetic Energies:
Each atoms' kinetic energy.
This is useful for debuging purposes.

Parameters:
outStream is the buffer to output to.
cluster is the cluster to output.
Returns:
a refrence to the outStream

Definition at line 238 of file cluster.cpp.

References Cluster::PRECISION, and Cluster::size().

Here is the call graph for this function:

bool operator== const Cluster lhs,
const Cluster rhs
 

Equivelant operator for the cluster.

Note:
we assume that all values have to be equal.
Parameters:
lhs is the left hand side cluster to compare to the rhs.
rhs is the right hand side cluster to compare to the lhs.
Returns:
True if lhs has the exact same contents as the rhs, false else wise.

Definition at line 261 of file cluster.cpp.

References Cluster::m_kineticEnergyTotal, Cluster::m_positionCentreMass, Cluster::m_potentialEnergyTotal, Cluster::m_velocityCentreMass, and Cluster::size().

Here is the call graph for this function:


Generated on Tue Mar 28 23:28:07 2006 for ClusterSim by  doxygen 1.4.4