queso-0.53.0
Protected Attributes | List of all members
QUESO::Base1D1DFunction Class Referenceabstract

Class for one-dimensional functions. More...

#include <1D1DFunction.h>

Inheritance diagram for QUESO::Base1D1DFunction:
Inheritance graph
[legend]

Public Member Functions

Constructor/Destructor methods
 Base1D1DFunction (double minDomainValue, double maxDomainValue)
 Default constructor. More...
 
virtual ~Base1D1DFunction ()
 Destructor. More...
 
Mathematical methods
double minDomainValue () const
 Returns the minimum value of the domain of the (one-dimensional) function. More...
 
double maxDomainValue () const
 Returns the maximum value of the domain of the (one-dimensional) function. More...
 
virtual double value (double domainValue) const =0
 Returns the value of the (one-dimensional) function. See template specialization. More...
 
virtual double deriv (double domainValue) const =0
 Returns the value of the derivative of the function. See template specialization. More...
 
virtual double multiplyAndIntegrate (const Base1D1DFunction &func, unsigned int quadratureOrder, double *resultWithMultiplicationByTAsWell) const
 TODO: Multiplies this function with function, and integrates it numerically. See template specialization. More...
 

Protected Attributes

double m_minDomainValue
 
double m_maxDomainValue
 

Detailed Description

Class for one-dimensional functions.

Base class for one-dimensional functions.

Definition at line 53 of file 1D1DFunction.h.

Constructor & Destructor Documentation

QUESO::Base1D1DFunction::Base1D1DFunction ( double  minDomainValue,
double  maxDomainValue 
)

Default constructor.

Definition at line 33 of file 1D1DFunction.C.

References m_maxDomainValue, m_minDomainValue, and queso_require_less_msg.

36  :
39 {
41 }
double minDomainValue() const
Returns the minimum value of the domain of the (one-dimensional) function.
Definition: 1D1DFunction.C:48
double maxDomainValue() const
Returns the maximum value of the domain of the (one-dimensional) function.
Definition: 1D1DFunction.C:54
#define queso_require_less_msg(expr1, expr2, msg)
Definition: asserts.h:87
QUESO::Base1D1DFunction::~Base1D1DFunction ( )
virtual

Destructor.

Definition at line 43 of file 1D1DFunction.C.

44 {
45 }

Member Function Documentation

virtual double QUESO::Base1D1DFunction::deriv ( double  domainValue) const
pure virtual
double QUESO::Base1D1DFunction::maxDomainValue ( ) const

Returns the maximum value of the domain of the (one-dimensional) function.

Definition at line 54 of file 1D1DFunction.C.

References m_maxDomainValue.

55 {
56  return m_maxDomainValue;
57 }
double QUESO::Base1D1DFunction::minDomainValue ( ) const

Returns the minimum value of the domain of the (one-dimensional) function.

Definition at line 48 of file 1D1DFunction.C.

References m_minDomainValue.

49 {
50  return m_minDomainValue;
51 }
double QUESO::Base1D1DFunction::multiplyAndIntegrate ( const Base1D1DFunction func,
unsigned int  quadratureOrder,
double *  resultWithMultiplicationByTAsWell 
) const
virtual

TODO: Multiplies this function with function, and integrates it numerically. See template specialization.

Todo:
: Please, implement me!

Definition at line 60 of file 1D1DFunction.C.

References queso_not_implemented, and value().

61 {
62  double value = 0.;
63 
65 
66  if (resultWithMultiplicationByTAsWell) { // Just to eliminate INTEL compiler warnings
67  func.value((double) quadratureOrder);
68  }
69 
70  return value;
71 }
#define queso_not_implemented()
Definition: asserts.h:56
virtual double value(double domainValue) const =0
Returns the value of the (one-dimensional) function. See template specialization. ...
virtual double QUESO::Base1D1DFunction::value ( double  domainValue) const
pure virtual

Member Data Documentation

double QUESO::Base1D1DFunction::m_maxDomainValue
protected
double QUESO::Base1D1DFunction::m_minDomainValue
protected

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

Generated on Thu Jun 11 2015 13:52:35 for queso-0.53.0 by  doxygen 1.8.5