sofa::simulation::MechanicalVPrintWithElapsedTimeVisitor Class Reference

Print a vector with an elapsed time, useful to compare convergence in odeSolver in function of time. More...

#include <MechanicalVPrintVisitor.h>

Inheritance diagram for sofa::simulation::MechanicalVPrintWithElapsedTimeVisitor:

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

Collaboration graph
[legend]

Public Member Functions

 MechanicalVPrintWithElapsedTimeVisitor (VecId v, unsigned time, std::ostream &=std::cerr)
virtual Result processNodeTopDown (simulation::Node *node)
 Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.

Protected Attributes

VecId v_
unsigned count_
unsigned time_
std::ostream & out_

Private Types

typedef
sofa::core::componentmodel::behavior::BaseMechanicalState::VecId 
VecId

Detailed Description

Print a vector with an elapsed time, useful to compare convergence in odeSolver in function of time.

Definition at line 55 of file MechanicalVPrintVisitor.h.


Member Typedef Documentation

Definition at line 57 of file MechanicalVPrintVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::MechanicalVPrintWithElapsedTimeVisitor::MechanicalVPrintWithElapsedTimeVisitor ( VecId  v,
unsigned  time,
std::ostream &  out = std::cerr 
)

Definition at line 52 of file MechanicalVPrintVisitor.cpp.


Member Function Documentation

Visitor::Result sofa::simulation::MechanicalVPrintWithElapsedTimeVisitor::processNodeTopDown ( simulation::Node *   )  [virtual]

Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.

Reimplemented from sofa::simulation::Visitor.

Definition at line 60 of file MechanicalVPrintVisitor.cpp.

References count_, sofa::simulation::Node::mechanicalState, out_, sofa::simulation::Visitor::RESULT_CONTINUE, time_, and v_.


Field Documentation

Definition at line 60 of file MechanicalVPrintVisitor.h.

Referenced by processNodeTopDown().

Definition at line 62 of file MechanicalVPrintVisitor.h.

Referenced by processNodeTopDown().

Definition at line 61 of file MechanicalVPrintVisitor.h.

Referenced by processNodeTopDown().

Definition at line 59 of file MechanicalVPrintVisitor.h.

Referenced by processNodeTopDown().


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

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