G4INCL::InterpolationNode Class Reference

Interpolation node. More...

#include <G4INCLInverseInterpolationTable.hh>


Public Member Functions

 InterpolationNode (const G4double x0, const G4double y0, const G4double yPrime0)
virtual ~InterpolationNode ()
G4bool operator< (const InterpolationNode &rhs) const
G4bool operator<= (const InterpolationNode &rhs) const
G4bool operator> (const InterpolationNode &rhs) const
G4bool operator>= (const InterpolationNode &rhs) const
G4double getX () const
G4double getY () const
G4double getYPrime () const
void setX (const G4double x0)
void setY (const G4double y0)
void setYPrime (const G4double yPrime0)
std::string print () const

Protected Attributes

G4double x
 abscissa
G4double y
 function value
G4double yPrime
 function derivative

Friends

G4bool operator< (const InterpolationNode &lhs, const G4double rhs)
 Overloaded comparison operator for STL algorithms.


Detailed Description

Interpolation node.

Definition at line 58 of file G4INCLInverseInterpolationTable.hh.


Constructor & Destructor Documentation

G4INCL::InterpolationNode::InterpolationNode ( const G4double  x0,
const G4double  y0,
const G4double  yPrime0 
) [inline]

Definition at line 60 of file G4INCLInverseInterpolationTable.hh.

00060                                                                                       :
00061         x(x0),
00062         y(y0),
00063         yPrime(yPrime0)
00064     {}

virtual G4INCL::InterpolationNode::~InterpolationNode (  )  [inline, virtual]

Definition at line 66 of file G4INCLInverseInterpolationTable.hh.

00066 {}


Member Function Documentation

G4double G4INCL::InterpolationNode::getX (  )  const [inline]

Definition at line 89 of file G4INCLInverseInterpolationTable.hh.

References x.

Referenced by G4INCL::InverseInterpolationTable::getNodeAbscissae().

00089 { return x; }

G4double G4INCL::InterpolationNode::getY (  )  const [inline]

Definition at line 90 of file G4INCLInverseInterpolationTable.hh.

References y.

Referenced by G4INCL::InverseInterpolationTable::getNodeValues().

00090 { return y; }

G4double G4INCL::InterpolationNode::getYPrime (  )  const [inline]

Definition at line 91 of file G4INCLInverseInterpolationTable.hh.

References yPrime.

00091 { return yPrime; }

G4bool G4INCL::InterpolationNode::operator< ( const InterpolationNode rhs  )  const [inline]

Definition at line 68 of file G4INCLInverseInterpolationTable.hh.

References x.

00068                                                            {
00069         return (x < rhs.x);
00070       }

G4bool G4INCL::InterpolationNode::operator<= ( const InterpolationNode rhs  )  const [inline]

Definition at line 72 of file G4INCLInverseInterpolationTable.hh.

References x.

00072                                                             {
00073         return (x <= rhs.x);
00074       }

G4bool G4INCL::InterpolationNode::operator> ( const InterpolationNode rhs  )  const [inline]

Definition at line 76 of file G4INCLInverseInterpolationTable.hh.

References x.

00076                                                            {
00077         return (x > rhs.x);
00078       }

G4bool G4INCL::InterpolationNode::operator>= ( const InterpolationNode rhs  )  const [inline]

Definition at line 80 of file G4INCLInverseInterpolationTable.hh.

References x.

00080                                                             {
00081         return (x >= rhs.x);
00082       }

std::string G4INCL::InterpolationNode::print (  )  const [inline]

Definition at line 97 of file G4INCLInverseInterpolationTable.hh.

References x, y, and yPrime.

00097                               {
00098         std::stringstream message;
00099         message << "x, y, yPrime: " << x << '\t' << y << '\t' << yPrime << std::endl;
00100         return message.str();
00101       }

void G4INCL::InterpolationNode::setX ( const G4double  x0  )  [inline]

Definition at line 93 of file G4INCLInverseInterpolationTable.hh.

References x.

00093 { x=x0; }

void G4INCL::InterpolationNode::setY ( const G4double  y0  )  [inline]

Definition at line 94 of file G4INCLInverseInterpolationTable.hh.

References y.

00094 { y=y0; }

void G4INCL::InterpolationNode::setYPrime ( const G4double  yPrime0  )  [inline]

Definition at line 95 of file G4INCLInverseInterpolationTable.hh.

References yPrime.

00095 { yPrime=yPrime0; }


Friends And Related Function Documentation

G4bool operator< ( const InterpolationNode lhs,
const G4double  rhs 
) [friend]

Overloaded comparison operator for STL algorithms.

Definition at line 85 of file G4INCLInverseInterpolationTable.hh.

00085                                                                                 {
00086         return lhs.x < rhs;
00087       }


Field Documentation

G4double G4INCL::InterpolationNode::x [protected]

abscissa

Definition at line 105 of file G4INCLInverseInterpolationTable.hh.

Referenced by getX(), operator<(), operator<=(), operator>(), operator>=(), print(), and setX().

G4double G4INCL::InterpolationNode::y [protected]

function value

Definition at line 107 of file G4INCLInverseInterpolationTable.hh.

Referenced by getY(), print(), and setY().

G4double G4INCL::InterpolationNode::yPrime [protected]

function derivative

Definition at line 109 of file G4INCLInverseInterpolationTable.hh.

Referenced by getYPrime(), print(), and setYPrime().


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:54:08 2013 for Geant4 by  doxygen 1.4.7