MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
grad::Vec3DirectExpr Class Reference

#include <matvec.h>

Collaboration diagram for grad::Vec3DirectExpr:

Public Types

typedef ScalarTypeTraits
< doublereal >::ScalarType 
ScalarType
 
typedef ScalarTypeTraits
< doublereal >
::DirectExpressionType 
ExpressionType
 

Public Member Functions

 Vec3DirectExpr (const Vec3 &u)
 
const ScalarTypeoperator() (index_type i) const
 
index_type iGetNumRows () const
 
template<typename ScalarType2 >
bool bHaveReferenceTo (const ScalarType2 *pFirst, const ScalarType2 *pLast) const
 

Static Public Attributes

static const bool bAlias = false
 
static const index_type iNumRows = 3
 

Private Attributes

const Vec3oU
 

Detailed Description

Definition at line 870 of file matvec.h.

Member Typedef Documentation

Definition at line 875 of file matvec.h.

Constructor & Destructor Documentation

grad::Vec3DirectExpr::Vec3DirectExpr ( const Vec3 u)
inline

Definition at line 877 of file matvec.h.

878  :oU(u) {
879 
880  }
const Vec3 & oU
Definition: matvec.h:898

Member Function Documentation

template<typename ScalarType2 >
bool grad::Vec3DirectExpr::bHaveReferenceTo ( const ScalarType2 *  pFirst,
const ScalarType2 *  pLast 
) const
inline

Definition at line 893 of file matvec.h.

References grad::bArrayOverlap(), oU, and Vec3::pGetVec().

893  {
894  return bArrayOverlap(oU.pGetVec(), oU.pGetVec() + 2, pFirst, pLast);
895  }
bool bArrayOverlap(const ScalarType *pFirstArray1, const ScalarType *pLastArray1, const ScalarType *pFirstArray2, const ScalarType *pLastArray2)
Definition: matvec.h:430
const Vec3 & oU
Definition: matvec.h:898
const doublereal * pGetVec(void) const
Definition: matvec3.h:192

Here is the call graph for this function:

index_type grad::Vec3DirectExpr::iGetNumRows ( void  ) const
inline

Definition at line 888 of file matvec.h.

References iNumRows.

888  {
889  return iNumRows;
890  }
static const index_type iNumRows
Definition: matvec.h:873
const ScalarType& grad::Vec3DirectExpr::operator() ( index_type  i) const
inline

Definition at line 882 of file matvec.h.

References iNumRows, MATVEC_ASSERT, and oU.

882  {
883  MATVEC_ASSERT(i >= 1);
884  MATVEC_ASSERT(i <= iNumRows);
885  return oU(i);
886  }
static const index_type iNumRows
Definition: matvec.h:873
#define MATVEC_ASSERT(expr)
Definition: matvec.h:64
const Vec3 & oU
Definition: matvec.h:898

Member Data Documentation

const bool grad::Vec3DirectExpr::bAlias = false
static

Definition at line 872 of file matvec.h.

const index_type grad::Vec3DirectExpr::iNumRows = 3
static

Definition at line 873 of file matvec.h.

Referenced by iGetNumRows(), and operator()().

const Vec3& grad::Vec3DirectExpr::oU
private

Definition at line 898 of file matvec.h.

Referenced by bHaveReferenceTo(), and operator()().


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