sofa::simulation::FindByTypeVisitor< T > Class Template Reference

Find all components of a given type and store pointers in a list. More...

#include <FindByTypeVisitor.h>

Inheritance diagram for sofa::simulation::FindByTypeVisitor< T >:

Inheritance graph
[legend]
Collaboration diagram for sofa::simulation::FindByTypeVisitor< T >:

Collaboration graph
[legend]

Public Member Functions

virtual Result processNodeTopDown (simulation::Node *node)
 For each component, if it is of the given type, then put it in the list.

Data Fields

std::vector< T * > found
 The result of the search: contains pointers to all components of the given type found.

Detailed Description

template<class T>
class sofa::simulation::FindByTypeVisitor< T >

Find all components of a given type and store pointers in a list.

Definition at line 47 of file FindByTypeVisitor.h.


Member Function Documentation

template<class T >
virtual Result sofa::simulation::FindByTypeVisitor< T >::processNodeTopDown ( simulation::Node *  node  )  [inline, virtual]

For each component, if it is of the given type, then put it in the list.

Reimplemented from sofa::simulation::Visitor.

Definition at line 53 of file FindByTypeVisitor.h.

References sofa::simulation::FindByTypeVisitor< T >::found, sofa::simulation::Node::object, and sofa::simulation::Visitor::RESULT_CONTINUE.


Field Documentation

template<class T >
std::vector<T*> sofa::simulation::FindByTypeVisitor< T >::found

The result of the search: contains pointers to all components of the given type found.

Definition at line 50 of file FindByTypeVisitor.h.

Referenced by sofa::simulation::FindByTypeVisitor< T >::processNodeTopDown(), and sofa::simulation::tree::Simulation::processXML().


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

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