CoolProp  6.6.1dev
An open-source fluid property and humid air property database
Classes | Public Member Functions | Protected Types | Protected Attributes | List of all members
Spline< X, Y > Class Template Reference

Detailed Description

template<typename X, typename Y>
class Spline< X, Y >

Definition at line 52 of file CPnumerics.h.

#include <CPnumerics.h>

Classes

class  Element
 

Public Member Functions

 Spline ()
 
 Spline (const std::vector< X > &x, const std::vector< Y > &y)
 
virtual ~Spline ()
 
operator[] (const X &x) const
 
interpolate (const X &x) const
 
std::vector< Y > interpolate_vec (const std::vector< X > &xx) const
 

Protected Types

typedef Element element_type
 

Protected Attributes

std::vector< element_typemElements
 

Member Typedef Documentation

◆ element_type

template<typename X , typename Y >
typedef Element Spline< X, Y >::element_type
protected

Definition at line 164 of file CPnumerics.h.

Constructor & Destructor Documentation

◆ Spline() [1/2]

template<typename X , typename Y >
Spline< X, Y >::Spline ( )
inline

An empty, invalid spline

Definition at line 56 of file CPnumerics.h.

◆ Spline() [2/2]

template<typename X , typename Y >
Spline< X, Y >::Spline ( const std::vector< X > &  x,
const std::vector< Y > &  y 
)
inline

A spline with x and y values

Definition at line 59 of file CPnumerics.h.

◆ ~Spline()

template<typename X , typename Y >
virtual Spline< X, Y >::~Spline ( )
inlinevirtual

Definition at line 103 of file CPnumerics.h.

Member Function Documentation

◆ interpolate()

template<typename X , typename Y >
Y Spline< X, Y >::interpolate ( const X x) const
inline

Definition at line 109 of file CPnumerics.h.

◆ interpolate_vec()

template<typename X , typename Y >
std::vector<Y> Spline< X, Y >::interpolate_vec ( const std::vector< X > &  xx) const
inline

Definition at line 122 of file CPnumerics.h.

◆ operator[]()

template<typename X , typename Y >
Y Spline< X, Y >::operator[] ( const X x) const
inline

Definition at line 105 of file CPnumerics.h.

Member Data Documentation

◆ mElements

template<typename X , typename Y >
std::vector<element_type> Spline< X, Y >::mElements
protected

Definition at line 165 of file CPnumerics.h.


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