sofa::simulation::MechanicalVDotVisitor Class Reference

Compute the dot product of two vectors. More...

#include <MechanicalVisitor.h>

Inheritance diagram for sofa::simulation::MechanicalVDotVisitor:

Inheritance graph
[legend]
Collaboration diagram for sofa::simulation::MechanicalVDotVisitor:

Collaboration graph
[legend]

Public Member Functions

 MechanicalVDotVisitor (VecId a, VecId b, double *t)
virtual Result fwdMechanicalState (simulation::Node *, core::componentmodel::behavior::BaseMechanicalState *mm)
 Sequential code.
virtual bool isThreadSafe () const
 Specify whether this action can be parallelized.
virtual Result processNodeTopDown (simulation::Node *node, LocalStorage *stack)
 Parallel code.
virtual void processNodeBottomUp (simulation::Node *, LocalStorage *stack)
 Parallel code.

Data Fields

VecId a
VecId b
double * total

Detailed Description

Compute the dot product of two vectors.

Definition at line 284 of file MechanicalVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::MechanicalVDotVisitor::MechanicalVDotVisitor ( VecId  a,
VecId  b,
double *  t 
) [inline]

Definition at line 290 of file MechanicalVisitor.h.


Member Function Documentation

Visitor::Result sofa::simulation::MechanicalVDotVisitor::fwdMechanicalState ( simulation::Node *  ,
core::componentmodel::behavior::BaseMechanicalState *  mm 
) [virtual]

virtual bool sofa::simulation::MechanicalVDotVisitor::isThreadSafe (  )  const [inline, virtual]

Specify whether this action can be parallelized.

Reimplemented from sofa::simulation::Visitor.

Definition at line 297 of file MechanicalVisitor.h.

void sofa::simulation::MechanicalVDotVisitor::processNodeBottomUp ( simulation::Node *  ,
LocalStorage *  stack 
) [virtual]

Parallel code.

Reimplemented from sofa::simulation::Visitor.

Definition at line 212 of file MechanicalVisitor.cpp.

References sofa::simulation::LocalStorage::pop(), sofa::simulation::LocalStorage::top(), and total.

Visitor::Result sofa::simulation::MechanicalVDotVisitor::processNodeTopDown ( simulation::Node *  node,
LocalStorage *  stack 
) [virtual]


Field Documentation

Definition at line 287 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState(), and processNodeTopDown().

Definition at line 288 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState(), and processNodeTopDown().

Definition at line 289 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState(), and processNodeBottomUp().


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

Generated on Sun Nov 23 04:24:26 2008 for Sofa by  doxygen 1.5.7.1