Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCL::InterpolationNode Class Reference

Interpolation node. More...

#include <G4INCLInterpolationTable.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
 

Detailed Description

Interpolation node.

Definition at line 56 of file G4INCLInterpolationTable.hh.

Constructor & Destructor Documentation

◆ InterpolationNode()

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

Definition at line 58 of file G4INCLInterpolationTable.hh.

58 :
59 x(x0),
60 y(y0),
61 yPrime(yPrime0)
62 {}
G4double yPrime
function derivative

◆ ~InterpolationNode()

virtual G4INCL::InterpolationNode::~InterpolationNode ( )
inlinevirtual

Definition at line 64 of file G4INCLInterpolationTable.hh.

64{}

Member Function Documentation

◆ getX()

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

Definition at line 82 of file G4INCLInterpolationTable.hh.

82{ return x; }

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

◆ getY()

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

Definition at line 83 of file G4INCLInterpolationTable.hh.

83{ return y; }

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

◆ getYPrime()

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

Definition at line 84 of file G4INCLInterpolationTable.hh.

84{ return yPrime; }

◆ operator<()

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

Definition at line 66 of file G4INCLInterpolationTable.hh.

66 {
67 return (x < rhs.x);
68 }

◆ operator<=()

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

Definition at line 70 of file G4INCLInterpolationTable.hh.

70 {
71 return (x <= rhs.x);
72 }

◆ operator>()

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

Definition at line 74 of file G4INCLInterpolationTable.hh.

74 {
75 return (x > rhs.x);
76 }

◆ operator>=()

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

Definition at line 78 of file G4INCLInterpolationTable.hh.

78 {
79 return (x >= rhs.x);
80 }

◆ print()

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

Definition at line 90 of file G4INCLInterpolationTable.hh.

90 {
91 std::stringstream message;
92 message << "x, y, yPrime: " << x << '\t' << y << '\t' << yPrime << '\n';
93 return message.str();
94 }

◆ setX()

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

Definition at line 86 of file G4INCLInterpolationTable.hh.

86{ x=x0; }

◆ setY()

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

Definition at line 87 of file G4INCLInterpolationTable.hh.

87{ y=y0; }

◆ setYPrime()

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

Definition at line 88 of file G4INCLInterpolationTable.hh.

88{ yPrime=yPrime0; }

Member Data Documentation

◆ x

G4double G4INCL::InterpolationNode::x
protected

abscissa

Definition at line 98 of file G4INCLInterpolationTable.hh.

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

◆ y

G4double G4INCL::InterpolationNode::y
protected

function value

Definition at line 100 of file G4INCLInterpolationTable.hh.

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

◆ yPrime

G4double G4INCL::InterpolationNode::yPrime
protected

function derivative

Definition at line 102 of file G4INCLInterpolationTable.hh.

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


The documentation for this class was generated from the following file: