MercuryDPM  0.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StatisticsPoint.hcc File Reference

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CG S)
 
template<StatType T>
std::ostream & operator<< (std::ostream &os, const StatisticsPoint< T > &stat)
 Output statistical variables to ostream. More...
 
template<>
std::ostream & operator<< (std::ostream &os, const StatisticsPoint< RAZ > &stat)
 
template<>
std::ostream & operator<< (std::ostream &os, const StatisticsPoint< RA > &stat)
 
template<>
std::ostream & operator<< (std::ostream &os, const StatisticsPoint< RZ > &stat)
 
template<>
std::ostream & operator<< (std::ostream &os, const StatisticsPoint< AZ > &stat)
 
template<>
std::ostream & operator<< (std::ostream &os, const StatisticsPoint< R > &stat)
 
template<>
std::ostream & operator<< (std::ostream &os, const StatisticsPoint< A > &stat)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CG  S 
)

Definition at line 26 of file StatisticsPoint.hcc.

References Gaussian, HeavisideSphere, and Polynomial.

27 {
28  if (S == HeavisideSphere)
29  os << "HeavisideSphere";
30  else if (S == Gaussian)
31  os << "Gaussian";
32  else if (S == Polynomial)
33  os << "Polynomial";
34  return os;
35 }
template<StatType T>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< T > &  stat 
)

Output statistical variables to ostream.

Definition at line 1367 of file StatisticsPoint.hcc.

1368 {
1369  os.precision(16);
1370  if (stat.mirrorParticle < 0)
1371  {
1372  //only write std particles, not mirrored particles
1373  os << stat.getPosition() << " " << stat.write() << std::endl;
1374  }
1375  return os;
1376 }
template<>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< RAZ > &  stat 
)

Definition at line 1378 of file StatisticsPoint.hcc.

1379 {
1380  os.precision(16);
1381  if (stat.mirrorParticle < 0)
1382  os << stat.getPosition().getCylindricalCoordinates() << " " << stat.write() << std::endl;
1383  return os;
1384 }
Vec3D getCylindricalCoordinates() const
Returns the representation of this Vec3D in cylindrical coordinates.
Definition: Vector.cc:367
Vec3D getPosition() const
returns Position
int mirrorParticle
indicates that a position is a (fake) particles used for periodic walls
std::string write() const
Outputs statistical variables in computer-readable format.
template<>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< RA > &  stat 
)

Definition at line 1385 of file StatisticsPoint.hcc.

1386 {
1387  os.precision(16);
1388  if (stat.mirrorParticle < 0)
1389  os << stat.getPosition().getCylindricalCoordinates() << " " << stat.write() << std::endl;
1390  return os;
1391 }
Vec3D getCylindricalCoordinates() const
Returns the representation of this Vec3D in cylindrical coordinates.
Definition: Vector.cc:367
Vec3D getPosition() const
returns Position
int mirrorParticle
indicates that a position is a (fake) particles used for periodic walls
std::string write() const
Outputs statistical variables in computer-readable format.
template<>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< RZ > &  stat 
)

Definition at line 1392 of file StatisticsPoint.hcc.

1393 {
1394  os.precision(16);
1395  if (stat.mirrorParticle < 0)
1396  os << stat.getPosition().getCylindricalCoordinates() << " " << stat.write() << std::endl;
1397  return os;
1398 }
Vec3D getCylindricalCoordinates() const
Returns the representation of this Vec3D in cylindrical coordinates.
Definition: Vector.cc:367
Vec3D getPosition() const
returns Position
int mirrorParticle
indicates that a position is a (fake) particles used for periodic walls
std::string write() const
Outputs statistical variables in computer-readable format.
template<>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< AZ > &  stat 
)

Definition at line 1399 of file StatisticsPoint.hcc.

1400 {
1401  os.precision(16);
1402  if (stat.mirrorParticle < 0)
1403  os << stat.getPosition().getCylindricalCoordinates() << " " << stat.write() << std::endl;
1404  return os;
1405 }
Vec3D getCylindricalCoordinates() const
Returns the representation of this Vec3D in cylindrical coordinates.
Definition: Vector.cc:367
Vec3D getPosition() const
returns Position
int mirrorParticle
indicates that a position is a (fake) particles used for periodic walls
std::string write() const
Outputs statistical variables in computer-readable format.
template<>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< R > &  stat 
)

Definition at line 1406 of file StatisticsPoint.hcc.

1407 {
1408  os.precision(16);
1409  if (stat.mirrorParticle < 0)
1410  os << stat.getPosition().getCylindricalCoordinates() << " " << stat.write() << std::endl;
1411  return os;
1412 }
Vec3D getCylindricalCoordinates() const
Returns the representation of this Vec3D in cylindrical coordinates.
Definition: Vector.cc:367
Vec3D getPosition() const
returns Position
int mirrorParticle
indicates that a position is a (fake) particles used for periodic walls
std::string write() const
Outputs statistical variables in computer-readable format.
template<>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< A > &  stat 
)

Definition at line 1413 of file StatisticsPoint.hcc.

1414 {
1415  os.precision(16);
1416  if (stat.mirrorParticle < 0)
1417  os << stat.getPosition().getCylindricalCoordinates() << " " << stat.write() << std::endl;
1418  return os;
1419 }
Vec3D getCylindricalCoordinates() const
Returns the representation of this Vec3D in cylindrical coordinates.
Definition: Vector.cc:367
Vec3D getPosition() const
returns Position
int mirrorParticle
indicates that a position is a (fake) particles used for periodic walls
std::string write() const
Outputs statistical variables in computer-readable format.