MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
grad::ConstExpr< T > Class Template Reference

#include <gradient.h>

Collaboration diagram for grad::ConstExpr< T >:

Public Types

typedef T GradientType
 
typedef
GradientType::scalar_func_type 
scalar_func_type
 
typedef
GradientType::scalar_deriv_type 
scalar_deriv_type
 
typedef
GradientType::vector_deriv_type 
vector_deriv_type
 

Public Member Functions

 ConstExpr (scalar_func_type a)
 
scalar_func_type dGetValue () const
 
scalar_deriv_type dGetDerivativeLocal (index_type iLocalDof) const
 
vector_deriv_type dGetDerivativeLocalVector (index_type iLocalVecDof) const
 
index_type iGetStartIndexLocal () const
 
index_type iGetEndIndexLocal () const
 
index_type iGetStartIndexLocalVector () const
 
index_type iGetEndIndexLocalVector () const
 
LocalDofMappGetDofMap () const
 
bool bHaveReferenceTo (const void *p) const
 
void Compute () const
 

Static Public Member Functions

static index_type iGetMaxDerivatives ()
 

Static Public Attributes

static const bool bAlias = false
 
static const index_type iMaxDerivatives = 0
 
static const bool bVectorize = true
 
static const index_type iDimension = GradientType::iDimension
 

Private Attributes

const scalar_func_type dConst
 

Detailed Description

template<typename T>
class grad::ConstExpr< T >

Definition at line 1600 of file gradient.h.

Member Typedef Documentation

template<typename T >
typedef T grad::ConstExpr< T >::GradientType

Definition at line 1605 of file gradient.h.

template<typename T >
typedef GradientType::scalar_deriv_type grad::ConstExpr< T >::scalar_deriv_type

Definition at line 1608 of file gradient.h.

template<typename T >
typedef GradientType::scalar_func_type grad::ConstExpr< T >::scalar_func_type

Definition at line 1607 of file gradient.h.

template<typename T >
typedef GradientType::vector_deriv_type grad::ConstExpr< T >::vector_deriv_type

Definition at line 1609 of file gradient.h.

Constructor & Destructor Documentation

template<typename T >
grad::ConstExpr< T >::ConstExpr ( scalar_func_type  a)
inline

Definition at line 1611 of file gradient.h.

1612  :dConst(a) {
1613 
1614  }
const scalar_func_type dConst
Definition: gradient.h:1662
static const doublereal a
Definition: hfluid_.h:289

Member Function Documentation

template<typename T >
bool grad::ConstExpr< T >::bHaveReferenceTo ( const void *  p) const
inline

Definition at line 1651 of file gradient.h.

1651  {
1652  return false;
1653  }
template<typename T >
void grad::ConstExpr< T >::Compute ( ) const
inline

Definition at line 1659 of file gradient.h.

1659 {}
template<typename T >
scalar_deriv_type grad::ConstExpr< T >::dGetDerivativeLocal ( index_type  iLocalDof) const
inline

Definition at line 1620 of file gradient.h.

1620  {
1621  return scalar_deriv_type();
1622  }
GradientType::scalar_deriv_type scalar_deriv_type
Definition: gradient.h:1608
template<typename T >
vector_deriv_type grad::ConstExpr< T >::dGetDerivativeLocalVector ( index_type  iLocalVecDof) const
inline

Definition at line 1624 of file gradient.h.

1624  {
1625  return vector_deriv_type();
1626  }
GradientType::vector_deriv_type vector_deriv_type
Definition: gradient.h:1609
template<typename T >
scalar_func_type grad::ConstExpr< T >::dGetValue ( ) const
inline

Definition at line 1616 of file gradient.h.

References grad::ConstExpr< T >::dConst.

1616  {
1617  return dConst;
1618  }
const scalar_func_type dConst
Definition: gradient.h:1662
template<typename T >
index_type grad::ConstExpr< T >::iGetEndIndexLocal ( ) const
inline

Definition at line 1635 of file gradient.h.

1635  {
1636  return 0;
1637  }
template<typename T >
index_type grad::ConstExpr< T >::iGetEndIndexLocalVector ( ) const
inline

Definition at line 1643 of file gradient.h.

1643  {
1644  return 0;
1645  }
template<typename T >
static index_type grad::ConstExpr< T >::iGetMaxDerivatives ( )
inlinestatic

Definition at line 1655 of file gradient.h.

References grad::ConstExpr< T >::iMaxDerivatives.

1655  {
1656  return iMaxDerivatives;
1657  }
static const index_type iMaxDerivatives
Definition: gradient.h:1603
template<typename T >
index_type grad::ConstExpr< T >::iGetStartIndexLocal ( ) const
inline

Definition at line 1628 of file gradient.h.

1628  {
1629  // Note: we must not combine two ConstExpr objects in a BinaryExpr!
1630  // If that happens, we would run out of memory!
1631  // However that would be meaningless at all.
1632  return std::numeric_limits<index_type>::max();
1633  }
template<typename T >
index_type grad::ConstExpr< T >::iGetStartIndexLocalVector ( ) const
inline

Definition at line 1639 of file gradient.h.

1639  {
1640  return std::numeric_limits<index_type>::max();
1641  }
template<typename T >
LocalDofMap* grad::ConstExpr< T >::pGetDofMap ( ) const
inline

Definition at line 1647 of file gradient.h.

1647  {
1648  return 0;
1649  }

Member Data Documentation

template<typename T >
const bool grad::ConstExpr< T >::bAlias = false
static

Definition at line 1602 of file gradient.h.

template<typename T >
const bool grad::ConstExpr< T >::bVectorize = true
static

Definition at line 1604 of file gradient.h.

template<typename T >
const scalar_func_type grad::ConstExpr< T >::dConst
private

Definition at line 1662 of file gradient.h.

Referenced by grad::ConstExpr< T >::dGetValue().

template<typename T >
const index_type grad::ConstExpr< T >::iDimension = GradientType::iDimension
static

Definition at line 1606 of file gradient.h.

template<typename T >
const index_type grad::ConstExpr< T >::iMaxDerivatives = 0
static

Definition at line 1603 of file gradient.h.

Referenced by grad::ConstExpr< T >::iGetMaxDerivatives().


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