MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
grad::ScalarTypeTraits< Gradient< N_SIZE > > Struct Template Reference

#include <matvec.h>

Inheritance diagram for grad::ScalarTypeTraits< Gradient< N_SIZE > >:

Public Types

typedef Gradient< N_SIZE > ScalarType
 
typedef GradientExpression
< DirectExpr< Gradient< N_SIZE > > > 
DirectExpressionType
 

Static Public Member Functions

template<typename Expression , typename PointerType >
static bool bHaveReferenceTo (const GradientExpression< Expression > &g, const PointerType *pFirst, const PointerType *pLast)
 

Detailed Description

template<index_type N_SIZE>
struct grad::ScalarTypeTraits< Gradient< N_SIZE > >

Definition at line 309 of file matvec.h.

Member Typedef Documentation

template<index_type N_SIZE>
typedef GradientExpression<DirectExpr<Gradient<N_SIZE> > > grad::ScalarTypeTraits< Gradient< N_SIZE > >::DirectExpressionType

Definition at line 311 of file matvec.h.

template<index_type N_SIZE>
typedef Gradient<N_SIZE> grad::ScalarTypeTraits< Gradient< N_SIZE > >::ScalarType

Definition at line 310 of file matvec.h.

Member Function Documentation

template<index_type N_SIZE>
template<typename Expression , typename PointerType >
static bool grad::ScalarTypeTraits< Gradient< N_SIZE > >::bHaveReferenceTo ( const GradientExpression< Expression > &  g,
const PointerType *  pFirst,
const PointerType *  pLast 
)
inlinestatic

Definition at line 314 of file matvec.h.

314  {
315  for (const PointerType* p = pFirst; p <= pLast; ++p) {
316  if (g.bHaveReferenceTo(p)) {
317  return true;
318  }
319  }
320 
321  return false;
322  }

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