Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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 60 of file G4INCLInverseInterpolationTable.hh.

Constructor & Destructor Documentation

◆ InterpolationNode()

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

Definition at line 62 of file G4INCLInverseInterpolationTable.hh.

62 :
63 x(x0),
64 y(y0),
65 yPrime(yPrime0)
66 {}

◆ ~InterpolationNode()

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

Definition at line 68 of file G4INCLInverseInterpolationTable.hh.

68{}

Member Function Documentation

◆ getX()

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

Definition at line 91 of file G4INCLInverseInterpolationTable.hh.

91{ return x; }

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

◆ getY()

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

Definition at line 92 of file G4INCLInverseInterpolationTable.hh.

92{ return y; }

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

◆ getYPrime()

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

Definition at line 93 of file G4INCLInverseInterpolationTable.hh.

93{ return yPrime; }

◆ operator<()

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

Definition at line 70 of file G4INCLInverseInterpolationTable.hh.

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

◆ operator<=()

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

Definition at line 74 of file G4INCLInverseInterpolationTable.hh.

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

◆ operator>()

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

Definition at line 78 of file G4INCLInverseInterpolationTable.hh.

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

◆ operator>=()

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

Definition at line 82 of file G4INCLInverseInterpolationTable.hh.

82 {
83 return (x >= rhs.x);
84 }

◆ print()

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

Definition at line 99 of file G4INCLInverseInterpolationTable.hh.

99 {
100 std::stringstream message;
101 message << "x, y, yPrime: " << x << '\t' << y << '\t' << yPrime << std::endl;
102 return message.str();
103 }

◆ setX()

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

Definition at line 95 of file G4INCLInverseInterpolationTable.hh.

95{ x=x0; }

◆ setY()

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

Definition at line 96 of file G4INCLInverseInterpolationTable.hh.

96{ y=y0; }

◆ setYPrime()

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

Definition at line 97 of file G4INCLInverseInterpolationTable.hh.

97{ yPrime=yPrime0; }

Friends And Related Function Documentation

◆ operator<

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

Overloaded comparison operator for STL algorithms.

Definition at line 87 of file G4INCLInverseInterpolationTable.hh.

87 {
88 return lhs.x < rhs;
89 }

Member Data Documentation

◆ x

G4double G4INCL::InterpolationNode::x
protected

abscissa

Definition at line 107 of file G4INCLInverseInterpolationTable.hh.

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

◆ y

G4double G4INCL::InterpolationNode::y
protected

function value

Definition at line 109 of file G4INCLInverseInterpolationTable.hh.

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

◆ yPrime

G4double G4INCL::InterpolationNode::yPrime
protected

function derivative

Definition at line 111 of file G4INCLInverseInterpolationTable.hh.

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


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