sofa::simulation::MechanicalVOpVisitor Class Reference

Perform a vector operation v=a+b*f. More...

#include <MechanicalVisitor.h>

Inheritance diagram for sofa::simulation::MechanicalVOpVisitor:

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

Collaboration graph
[legend]

Public Member Functions

 MechanicalVOpVisitor (VecId v, VecId a=VecId::null(), VecId b=VecId::null(), double f=1.0)
virtual Result fwdMechanicalState (simulation::Node *, core::componentmodel::behavior::BaseMechanicalState *mm)
 Process the BaseMechanicalState if it is not mapped from the parent level.
virtual Result fwdMappedMechanicalState (simulation::Node *, core::componentmodel::behavior::BaseMechanicalState *)
 Process the BaseMechanicalState if it is mapped from the parent level.
virtual bool isThreadSafe () const
 Specify whether this action can be parallelized.

Data Fields

VecId v
VecId a
VecId b
double f

Detailed Description

Perform a vector operation v=a+b*f.

Definition at line 232 of file MechanicalVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::MechanicalVOpVisitor::MechanicalVOpVisitor ( VecId  v,
VecId  a = VecId::null(),
VecId  b = VecId::null(),
double  f = 1.0 
) [inline]

Definition at line 239 of file MechanicalVisitor.h.


Member Function Documentation

Visitor::Result sofa::simulation::MechanicalVOpVisitor::fwdMappedMechanicalState ( simulation::Node *  ,
core::componentmodel::behavior::BaseMechanicalState *   
) [virtual]

Process the BaseMechanicalState if it is mapped from the parent level.

Reimplemented from sofa::simulation::MechanicalVisitor.

Definition at line 170 of file MechanicalVisitor.cpp.

References sofa::simulation::Visitor::RESULT_CONTINUE.

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

Process the BaseMechanicalState if it is not mapped from the parent level.

Reimplemented from sofa::simulation::MechanicalVisitor.

Definition at line 164 of file MechanicalVisitor.cpp.

References a, b, f, sofa::simulation::Visitor::RESULT_CONTINUE, v, and sofa::core::componentmodel::behavior::BaseMechanicalState::vOp().

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

Specify whether this action can be parallelized.

Reimplemented from sofa::simulation::Visitor.

Definition at line 249 of file MechanicalVisitor.h.


Field Documentation

Definition at line 236 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState().

Definition at line 237 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState().

Definition at line 238 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState().

Definition at line 235 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState().


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