Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
Sacado::Tay::ConstExpr< ConstT > Class Template Reference

Constant expression template. More...

#include <Sacado_Tay_CacheTaylorExpr.hpp>

Inheritance diagram for Sacado::Tay::ConstExpr< ConstT >:
Inheritance graph
[legend]

Public Types

typedef ConstT value_type
 Typename of argument values. More...
 
typedef ScalarType< value_type >
::type 
scalar_type
 Typename of scalar's (which may be different from ConstT) More...
 
typedef ConstT base_expr_type
 Typename of base-expressions. More...
 

Public Member Functions

 ConstExpr (const ConstT &constant)
 Constructor. More...
 
void allocateCache (unsigned int d) const
 Allocate coefficient cache. More...
 
unsigned int degree () const
 Return degree of polynomial. More...
 
bool hasFastAccess (unsigned int d) const
 Return if operation has fast access. More...
 
value_type value () const
 
value_type coeff (unsigned int i) const
 Return degree i term of expression. More...
 
value_type fastAccessCoeff (unsigned int i) const
 Return degree i term of expression. More...
 

Protected Attributes

ConstT constant_
 The constant. More...
 

Detailed Description

template<typename ConstT>
class Sacado::Tay::ConstExpr< ConstT >

Constant expression template.

This template class represents a constant expression.

Definition at line 73 of file Sacado_Tay_CacheTaylorExpr.hpp.

Member Typedef Documentation

template<typename ConstT>
typedef ConstT Sacado::Tay::ConstExpr< ConstT >::value_type

Typename of argument values.

Definition at line 78 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ConstT>
typedef ScalarType<value_type>::type Sacado::Tay::ConstExpr< ConstT >::scalar_type

Typename of scalar's (which may be different from ConstT)

Definition at line 81 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ConstT>
typedef ConstT Sacado::Tay::ConstExpr< ConstT >::base_expr_type

Typename of base-expressions.

Definition at line 84 of file Sacado_Tay_CacheTaylorExpr.hpp.

Constructor & Destructor Documentation

template<typename ConstT>
Sacado::Tay::ConstExpr< ConstT >::ConstExpr ( const ConstT &  constant)
inline

Constructor.

Definition at line 87 of file Sacado_Tay_CacheTaylorExpr.hpp.

Member Function Documentation

template<typename ConstT>
void Sacado::Tay::ConstExpr< ConstT >::allocateCache ( unsigned int  d) const
inline

Allocate coefficient cache.

Definition at line 90 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ConstT>
unsigned int Sacado::Tay::ConstExpr< ConstT >::degree ( ) const
inline

Return degree of polynomial.

Definition at line 93 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ConstT>
bool Sacado::Tay::ConstExpr< ConstT >::hasFastAccess ( unsigned int  d) const
inline

Return if operation has fast access.

Definition at line 96 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ConstT>
value_type Sacado::Tay::ConstExpr< ConstT >::value ( ) const
inline

Definition at line 98 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ConstT>
value_type Sacado::Tay::ConstExpr< ConstT >::coeff ( unsigned int  i) const
inline

Return degree i term of expression.

Definition at line 101 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ConstT>
value_type Sacado::Tay::ConstExpr< ConstT >::fastAccessCoeff ( unsigned int  i) const
inline

Return degree i term of expression.

Definition at line 105 of file Sacado_Tay_CacheTaylorExpr.hpp.

Member Data Documentation

template<typename ConstT>
ConstT Sacado::Tay::ConstExpr< ConstT >::constant_
protected

The constant.

Definition at line 111 of file Sacado_Tay_CacheTaylorExpr.hpp.


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