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

#include <gradient.h>

Collaboration diagram for grad::DirectExpr< T, ALIAS >:

Public Types

typedef T::GradientType 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

 DirectExpr (const T &g)
 
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
 
index_type iGetMaxDerivatives () const
 
void Compute () const
 

Static Public Attributes

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

Private Attributes

const GradientTypeoG
 

Detailed Description

template<typename T, bool ALIAS = false>
class grad::DirectExpr< T, ALIAS >

Definition at line 1537 of file gradient.h.

Member Typedef Documentation

template<typename T , bool ALIAS = false>
typedef T::GradientType grad::DirectExpr< T, ALIAS >::GradientType

Definition at line 1540 of file gradient.h.

template<typename T , bool ALIAS = false>
typedef GradientType::scalar_deriv_type grad::DirectExpr< T, ALIAS >::scalar_deriv_type

Definition at line 1545 of file gradient.h.

template<typename T , bool ALIAS = false>
typedef GradientType::scalar_func_type grad::DirectExpr< T, ALIAS >::scalar_func_type

Definition at line 1544 of file gradient.h.

template<typename T , bool ALIAS = false>
typedef GradientType::vector_deriv_type grad::DirectExpr< T, ALIAS >::vector_deriv_type

Definition at line 1546 of file gradient.h.

Constructor & Destructor Documentation

template<typename T , bool ALIAS = false>
grad::DirectExpr< T, ALIAS >::DirectExpr ( const T &  g)
inline

Definition at line 1548 of file gradient.h.

1549  :oG(g) {
1550 
1551  }
const GradientType & oG
Definition: gradient.h:1596

Member Function Documentation

template<typename T , bool ALIAS = false>
bool grad::DirectExpr< T, ALIAS >::bHaveReferenceTo ( const void *  p) const
inline

Definition at line 1585 of file gradient.h.

References grad::DirectExpr< T, ALIAS >::oG.

1585  {
1586  return p == &oG;
1587  }
const GradientType & oG
Definition: gradient.h:1596
template<typename T , bool ALIAS = false>
void grad::DirectExpr< T, ALIAS >::Compute ( ) const
inline

Definition at line 1593 of file gradient.h.

1593 {}
template<typename T , bool ALIAS = false>
scalar_deriv_type grad::DirectExpr< T, ALIAS >::dGetDerivativeLocal ( index_type  iLocalDof) const
inline

Definition at line 1557 of file gradient.h.

References grad::DirectExpr< T, ALIAS >::oG.

1557  {
1558  return oG.dGetDerivativeLocal(iLocalDof);
1559  }
const GradientType & oG
Definition: gradient.h:1596
template<typename T , bool ALIAS = false>
vector_deriv_type grad::DirectExpr< T, ALIAS >::dGetDerivativeLocalVector ( index_type  iLocalVecDof) const
inline

Definition at line 1561 of file gradient.h.

References grad::DirectExpr< T, ALIAS >::oG.

1561  {
1562  return oG.dGetDerivativeLocalVector(iLocalVecDof);
1563  }
const GradientType & oG
Definition: gradient.h:1596
template<typename T , bool ALIAS = false>
scalar_func_type grad::DirectExpr< T, ALIAS >::dGetValue ( ) const
inline

Definition at line 1553 of file gradient.h.

References grad::DirectExpr< T, ALIAS >::oG.

1553  {
1554  return oG.dGetValue();
1555  }
const GradientType & oG
Definition: gradient.h:1596
template<typename T , bool ALIAS = false>
index_type grad::DirectExpr< T, ALIAS >::iGetEndIndexLocal ( ) const
inline

Definition at line 1569 of file gradient.h.

References grad::DirectExpr< T, ALIAS >::oG.

1569  {
1570  return oG.iGetEndIndexLocal();
1571  }
const GradientType & oG
Definition: gradient.h:1596
template<typename T , bool ALIAS = false>
index_type grad::DirectExpr< T, ALIAS >::iGetEndIndexLocalVector ( ) const
inline

Definition at line 1577 of file gradient.h.

References grad::DirectExpr< T, ALIAS >::oG.

1577  {
1578  return oG.iGetEndIndexLocalVector();
1579  }
const GradientType & oG
Definition: gradient.h:1596
template<typename T , bool ALIAS = false>
index_type grad::DirectExpr< T, ALIAS >::iGetMaxDerivatives ( ) const
inline

Definition at line 1589 of file gradient.h.

References grad::DirectExpr< T, ALIAS >::oG.

1589  {
1590  return oG.iGetMaxDerivatives();
1591  }
const GradientType & oG
Definition: gradient.h:1596
template<typename T , bool ALIAS = false>
index_type grad::DirectExpr< T, ALIAS >::iGetStartIndexLocal ( ) const
inline

Definition at line 1565 of file gradient.h.

References grad::DirectExpr< T, ALIAS >::oG.

1565  {
1566  return oG.iGetStartIndexLocal();
1567  }
const GradientType & oG
Definition: gradient.h:1596
template<typename T , bool ALIAS = false>
index_type grad::DirectExpr< T, ALIAS >::iGetStartIndexLocalVector ( ) const
inline

Definition at line 1573 of file gradient.h.

References grad::DirectExpr< T, ALIAS >::oG.

1573  {
1574  return oG.iGetStartIndexLocalVector();
1575  }
const GradientType & oG
Definition: gradient.h:1596
template<typename T , bool ALIAS = false>
LocalDofMap* grad::DirectExpr< T, ALIAS >::pGetDofMap ( ) const
inline

Definition at line 1581 of file gradient.h.

References grad::DirectExpr< T, ALIAS >::oG.

1581  {
1582  return oG.pGetDofMap();
1583  }
const GradientType & oG
Definition: gradient.h:1596

Member Data Documentation

template<typename T , bool ALIAS = false>
const bool grad::DirectExpr< T, ALIAS >::bAlias = ALIAS
static

Definition at line 1539 of file gradient.h.

template<typename T , bool ALIAS = false>
const bool grad::DirectExpr< T, ALIAS >::bVectorize = true
static

Definition at line 1542 of file gradient.h.

template<typename T , bool ALIAS = false>
const index_type grad::DirectExpr< T, ALIAS >::iDimension = GradientType::iDimension
static

Definition at line 1543 of file gradient.h.

template<typename T , bool ALIAS = false>
const index_type grad::DirectExpr< T, ALIAS >::iMaxDerivatives = GradientType::iMaxDerivatives
static

Definition at line 1541 of file gradient.h.


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