The Gaudi Framework  v28r3 (cc1cf868)
GaudiMath::Interpolation Namespace Reference

Enumerations

enum  Type {
  Linear = 0, Polynomial, Cspline, Cspline_Periodic,
  Akima, Akima_Periodic
}
 

Functions

StatusCode parse (Type &, const std::string &)
 
std::string toString (const Type &)
 
std::ostreamtoStream (const Type &, std::ostream &)
 
std::ostreamoperator<< (std::ostream &os, const Type &t)
 

Enumeration Type Documentation

Enumerator
Linear 
Polynomial 
Cspline 
Cspline_Periodic 
Akima 
Akima_Periodic 

Definition at line 15 of file Interpolation.h.

16  {
17  Linear = 0 , // linear interpolation
18  Polynomial , // polinomial interpolation
19  Cspline , // Cubic spline with natural boundary conditions
20  Cspline_Periodic , // Cubic spline with periodic boundary conditions
21  Akima , // Akima spline with natural boundary conditions
22  Akima_Periodic // Akima spline with periodic boundary conditions
23  };

Function Documentation

std::ostream& GaudiMath::Interpolation::operator<< ( std::ostream os,
const Type t 
)
inline

Definition at line 28 of file Interpolation.h.

28 { return toStream(t,os); }
std::ostream & toStream(const Type &, std::ostream &)
StatusCode GaudiMath::Interpolation::parse ( Type t,
const std::string in 
)

Definition at line 37 of file Interpolation.cpp.

37  {
38  return Gaudi::Parsers::parse_(t,in);
39  }
StatusCode parse_(ResultT &result, const std::string &input)
std::ostream & GaudiMath::Interpolation::toStream ( const Type t,
std::ostream os 
)

Definition at line 44 of file Interpolation.cpp.

44  {
45  return os << std::quoted( toString(t), '\'' );
46  }
std::string toString(const Type &)
std::string GaudiMath::Interpolation::toString ( const Type t)

Definition at line 40 of file Interpolation.cpp.

40  {
41  assert(0<=t && t<=Type::Akima_Periodic);
42  return table[t];
43  }