sofa::simulation::PrintVisitor Class Reference

#include <PrintVisitor.h>

Inheritance diagram for sofa::simulation::PrintVisitor:

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

Collaboration graph
[legend]

Public Member Functions

 PrintVisitor ()
void setVerbose (int v)
int getVerbose () const
template<class T >
void processObject (T obj)
template<class Seq >
void processObjects (Seq &list, const char *name)
virtual Result processNodeTopDown (simulation::Node *node)
 Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.
virtual void processNodeBottomUp (simulation::Node *node)
 Callback method called after child node have been processed and before going back to the parent node.

Protected Attributes

int verbose
int level

Detailed Description

Definition at line 39 of file PrintVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::PrintVisitor::PrintVisitor (  )  [inline]

Definition at line 45 of file PrintVisitor.h.


Member Function Documentation

int sofa::simulation::PrintVisitor::getVerbose (  )  const [inline]

Definition at line 48 of file PrintVisitor.h.

References verbose.

void sofa::simulation::PrintVisitor::processNodeBottomUp ( simulation::Node *   )  [virtual]

Callback method called after child node have been processed and before going back to the parent node.

Reimplemented from sofa::simulation::Visitor.

Definition at line 86 of file PrintVisitor.cpp.

References level.

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

template<class T >
void sofa::simulation::PrintVisitor::processObject ( T  obj  )  [inline]

Definition at line 37 of file PrintVisitor.cpp.

References sofa::helper::gettypename().

template<class Seq >
void sofa::simulation::PrintVisitor::processObjects ( Seq &  list,
const char *  name 
) [inline]

Definition at line 43 of file PrintVisitor.cpp.

References level.

Referenced by processNodeTopDown().

void sofa::simulation::PrintVisitor::setVerbose ( int  v  )  [inline]

Definition at line 47 of file PrintVisitor.h.

References verbose.


Field Documentation

Definition at line 43 of file PrintVisitor.h.

Referenced by processNodeBottomUp(), processNodeTopDown(), and processObjects().

Definition at line 42 of file PrintVisitor.h.

Referenced by getVerbose(), and setVerbose().


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

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