Sacado::CacheFad::ConstExpr< ConstT > Class Template Reference

Constant expression template. More...

#include <Sacado_CacheFad_Expression.hpp>

List of all members.

Public Types

typedef ConstT value_type
 Typename of argument values.

Public Member Functions

 ConstExpr (const ConstT &constant)
 Constructor.
int size () const
 Return size of the derivative array of the operation.
bool hasFastAccess () const
 Return if operation has fast access.
value_type val () const
 Return value of operation.
value_type dx (int i) const
 Return derivative component i of operation.
value_type fastAccessDx (int i) const
 Return derivative component i of operation.

Protected Attributes

const ConstT & constant_
 The constant.


Detailed Description

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

Constant expression template.

This template class represents a constant expression.

Definition at line 109 of file Sacado_CacheFad_Expression.hpp.


Member Typedef Documentation

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

Typename of argument values.

Definition at line 114 of file Sacado_CacheFad_Expression.hpp.


Constructor & Destructor Documentation

template<typename ConstT>
Sacado::CacheFad::ConstExpr< ConstT >::ConstExpr ( const ConstT &  constant  )  [inline]

Constructor.

Definition at line 117 of file Sacado_CacheFad_Expression.hpp.


Member Function Documentation

template<typename ConstT>
int Sacado::CacheFad::ConstExpr< ConstT >::size (  )  const [inline]

Return size of the derivative array of the operation.

Definition at line 120 of file Sacado_CacheFad_Expression.hpp.

template<typename ConstT>
bool Sacado::CacheFad::ConstExpr< ConstT >::hasFastAccess (  )  const [inline]

Return if operation has fast access.

Definition at line 123 of file Sacado_CacheFad_Expression.hpp.

template<typename ConstT>
value_type Sacado::CacheFad::ConstExpr< ConstT >::val (  )  const [inline]

Return value of operation.

Definition at line 126 of file Sacado_CacheFad_Expression.hpp.

template<typename ConstT>
value_type Sacado::CacheFad::ConstExpr< ConstT >::dx ( int  i  )  const [inline]

Return derivative component i of operation.

Definition at line 129 of file Sacado_CacheFad_Expression.hpp.

template<typename ConstT>
value_type Sacado::CacheFad::ConstExpr< ConstT >::fastAccessDx ( int  i  )  const [inline]

Return derivative component i of operation.

Definition at line 132 of file Sacado_CacheFad_Expression.hpp.


Member Data Documentation

template<typename ConstT>
const ConstT& Sacado::CacheFad::ConstExpr< ConstT >::constant_ [protected]

The constant.

Definition at line 137 of file Sacado_CacheFad_Expression.hpp.


The documentation for this class was generated from the following file:
Generated on Tue Oct 20 12:55:13 2009 for Sacado Package Browser (Single Doxygen Collection) by doxygen 1.4.7