Main Page | Class Hierarchy | Class List | File List | Class Members

Sphere_Space Class Reference

#include <sphere_space.h>

List of all members.

Public Member Functions

 Sphere_Space (SPH &sph, const int nspheres)
void reset ()
bool next ()
bool at_end () const
const Sphereget_sphere () const
void to_xml (std::ostream &o)


Detailed Description

Approximates a 3D SPH structure with spheres.

Author:
Moritz Franosch


Constructor & Destructor Documentation

Sphere_Space::Sphere_Space SPH sph,
const int  nspheres
 

Constructs a sphere space from a sph space.

nspheres Number of spheres to construct.


Member Function Documentation

bool Sphere_Space::at_end  )  const
 

Last next() has returned false.

const Sphere & Sphere_Space::get_sphere  )  const
 

Returns a reference to the current sphere.

bool Sphere_Space::next  ) 
 

Iterator set to next sphere.

Returns false if no next sphere exists.

void Sphere_Space::reset  ) 
 

Resets iterator through spheres.

void Sphere_Space::to_xml std::ostream &  o  ) 
 

Output as XML into o.


The documentation for this class was generated from the following files:
Generated on Fri Apr 22 11:06:49 2005 for partsim.kdevelop by doxygen 1.3.6