sofa::simulation::MechanicalVPrintVisitor Class Reference

Print a vector. More...

#include <MechanicalVPrintVisitor.h>

Inheritance diagram for sofa::simulation::MechanicalVPrintVisitor:

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

Collaboration graph
[legend]

Public Types

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

Public Member Functions

 MechanicalVPrintVisitor (VecId v, 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_
std::ostream & out_

Detailed Description

Print a vector.

Definition at line 40 of file MechanicalVPrintVisitor.h.


Member Typedef Documentation

Definition at line 43 of file MechanicalVPrintVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::MechanicalVPrintVisitor::MechanicalVPrintVisitor ( VecId  v,
std::ostream &  out = std::cerr 
)

Definition at line 34 of file MechanicalVPrintVisitor.cpp.


Member Function Documentation

Visitor::Result sofa::simulation::MechanicalVPrintVisitor::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 40 of file MechanicalVPrintVisitor.cpp.

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


Field Documentation

Definition at line 50 of file MechanicalVPrintVisitor.h.

Referenced by processNodeTopDown().

Definition at line 49 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