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

Atom Class Reference

Collaboration diagram for Atom:

Collaboration graph
[legend]
List of all members.

Detailed Description

This represents an atom.

Author:
John Schneiderman

Definition at line 28 of file atom.h.

Public Member Functions

 Atom (const Atom &atom)
 Atom ()
bool operator!= (const Atom &rhs) const
Atomoperator= (const Atom &rhs)
bool operator== (const Atom &rhs) const

Public Attributes

atom_t properties

Classes

struct  atom_t


Constructor & Destructor Documentation

Atom::Atom  ) 
 

Default constructor.

Definition at line 20 of file atom.cpp.

References Atom::atom_t::acceleration, Atom::atom_t::kineticEnergy, Atom::atom_t::position, Atom::atom_t::potentialEnergy, properties, and Atom::atom_t::velocity.

Atom::Atom const Atom atom  ) 
 

Copy constructor.

Parameters:
atom is the atom to copy.

Definition at line 29 of file atom.cpp.


Member Function Documentation

bool Atom::operator!= const Atom rhs  )  const
 

Unequivalant opperator for an atom.

Note:
We assume that that no two atoms can occupy the same position.
Parameters:
rhs is the atom to compare *this to.
Returns:
ture if the positions are not the same, false else wise.

Definition at line 55 of file atom.cpp.

Atom & Atom::operator= const Atom rhs  ) 
 

Assignment operator for an atom.

Parameters:
rhs is the right hand side atom to be assigned into *this.
Returns:
*this.

Definition at line 34 of file atom.cpp.

References Atom::atom_t::acceleration, Atom::atom_t::kineticEnergy, Atom::atom_t::position, Atom::atom_t::potentialEnergy, properties, and Atom::atom_t::velocity.

bool Atom::operator== const Atom rhs  )  const
 

Equivalant opperator for an atom.

Note:
We assume that that no two atoms can occupy the same position.
Parameters:
rhs is the atom to compare *this to.
Returns:
ture if the positions are the same, false else wise.

Definition at line 47 of file atom.cpp.

References Atom::atom_t::position, and properties.


Member Data Documentation

atom_t Atom::properties
 

Parameters:
properties is the accessor and modifier for the atoms physical information.

Definition at line 50 of file atom.h.

Referenced by Atom(), operator=(), operator==(), MCLJ_Simulation::potentialEnergyDifference(), and Cluster::read().


The documentation for this class was generated from the following files:
Generated on Tue Mar 28 23:28:44 2006 for ClusterSim by  doxygen 1.4.4