Sacado Package Browser (Single Doxygen Collection) Version of the Day
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
Sacado::Tay::Expr< ExprT > Class Template Reference

Wrapper for a generic expression template. More...

#include <Sacado_Tay_CacheTaylorExpr.hpp>

Inheritance diagram for Sacado::Tay::Expr< ExprT >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef ExprT::value_type value_type
 Typename of values.

Public Member Functions

 Expr (const ExprT &expr)
 Constructor with given expression expr.
void allocateCache (unsigned int d) const
 Allocate coefficient cache.
unsigned int degree () const
 Return degree of polynomial.
bool hasFastAccess (unsigned int d) const
 Return if expression has fast access.
value_type coeff (unsigned int i) const
 Return degree i term of expression.
value_type fastAccessCoeff (unsigned int i) const
 Return degree i term of expression.

Protected Member Functions

 Expr ()
 Disallow default constructor.

Protected Attributes

ExprT expr_
 Expression.

Detailed Description

template<typename ExprT>
class Sacado::Tay::Expr< ExprT >

Wrapper for a generic expression template.

This template class serves as a wrapper for all CacheTaylor expression template classes.

Definition at line 47 of file Sacado_Tay_CacheTaylorExpr.hpp.


Member Typedef Documentation

template<typename ExprT>
typedef ExprT::value_type Sacado::Tay::Expr< ExprT >::value_type

Typename of values.

Reimplemented in Sacado::Tay::CacheTaylor< double >.

Definition at line 52 of file Sacado_Tay_CacheTaylorExpr.hpp.


Constructor & Destructor Documentation

template<typename ExprT>
Sacado::Tay::Expr< ExprT >::Expr ( const ExprT &  expr) [inline, explicit]

Constructor with given expression expr.

Definition at line 55 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
Sacado::Tay::Expr< ExprT >::Expr ( ) [inline, protected]

Disallow default constructor.

Definition at line 77 of file Sacado_Tay_CacheTaylorExpr.hpp.


Member Function Documentation

template<typename ExprT>
void Sacado::Tay::Expr< ExprT >::allocateCache ( unsigned int  d) const [inline]

Allocate coefficient cache.

Definition at line 58 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
unsigned int Sacado::Tay::Expr< ExprT >::degree ( ) const [inline]

Return degree of polynomial.

Definition at line 61 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
bool Sacado::Tay::Expr< ExprT >::hasFastAccess ( unsigned int  d) const [inline]

Return if expression has fast access.

Definition at line 64 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
value_type Sacado::Tay::Expr< ExprT >::coeff ( unsigned int  i) const [inline]

Return degree i term of expression.

Definition at line 68 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
value_type Sacado::Tay::Expr< ExprT >::fastAccessCoeff ( unsigned int  i) const [inline]

Return degree i term of expression.

Definition at line 71 of file Sacado_Tay_CacheTaylorExpr.hpp.


Member Data Documentation

template<typename ExprT>
ExprT Sacado::Tay::Expr< ExprT >::expr_ [protected]

Expression.

Definition at line 80 of file Sacado_Tay_CacheTaylorExpr.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines