MercuryDPM  0.10
 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.

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

Output statistical variables to ostream.

Definition at line 1048 of file StatisticsPoint.hcc.

1048  {
1049  os.precision(16);
1050  if (stat.mirrorParticle<0) {
1051  //only write std particles, not mirrored particles
1052  os << stat.get_Position() << " " << stat.write() << std::endl;
1053  }
1054  return os;
1055 }
Vec3D get_Position() 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< RAZ > &  stat 
)

Definition at line 1057 of file StatisticsPoint.hcc.

1057  {
1058  os.precision(16); if (stat.mirrorParticle<0) os << stat.get_Position().GetCylindricalCoordinates() << " " << stat.write() << std::endl; return os;
1059 }
Vec3D get_Position() 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.
Vec3D GetCylindricalCoordinates() const
Definition: Vector.h:228
template<>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< RA > &  stat 
)

Definition at line 1060 of file StatisticsPoint.hcc.

1060  {
1061  os.precision(16); if (stat.mirrorParticle<0) os << stat.get_Position().GetCylindricalCoordinates() << " " << stat.write() << std::endl; return os;
1062 }
Vec3D get_Position() 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.
Vec3D GetCylindricalCoordinates() const
Definition: Vector.h:228
template<>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< RZ > &  stat 
)

Definition at line 1063 of file StatisticsPoint.hcc.

1063  {
1064  os.precision(16); if (stat.mirrorParticle<0) os << stat.get_Position().GetCylindricalCoordinates() << " " << stat.write() << std::endl; return os;
1065 }
Vec3D get_Position() 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.
Vec3D GetCylindricalCoordinates() const
Definition: Vector.h:228
template<>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< AZ > &  stat 
)

Definition at line 1066 of file StatisticsPoint.hcc.

1066  {
1067  os.precision(16); if (stat.mirrorParticle<0) os << stat.get_Position().GetCylindricalCoordinates() << " " << stat.write() << std::endl; return os;
1068 }
Vec3D get_Position() 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.
Vec3D GetCylindricalCoordinates() const
Definition: Vector.h:228
template<>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< R > &  stat 
)

Definition at line 1069 of file StatisticsPoint.hcc.

1069  {
1070  os.precision(16); if (stat.mirrorParticle<0) os << stat.get_Position().GetCylindricalCoordinates() << " " << stat.write() << std::endl; return os;
1071 }
Vec3D get_Position() 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.
Vec3D GetCylindricalCoordinates() const
Definition: Vector.h:228
template<>
std::ostream& operator<< ( std::ostream &  os,
const StatisticsPoint< A > &  stat 
)

Definition at line 1072 of file StatisticsPoint.hcc.

1072  {
1073  os.precision(16); if (stat.mirrorParticle<0) os << stat.get_Position().GetCylindricalCoordinates() << " " << stat.write() << std::endl; return os;
1074 }
Vec3D get_Position() 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.
Vec3D GetCylindricalCoordinates() const
Definition: Vector.h:228