Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::TraversingVersionConverter Class Reference

#include <versionconverter.h>

+ Inheritance diagram for inviwo::TraversingVersionConverter:

Public Member Functions

template<typename T >
 TraversingVersionConverter (T *obj, bool(T::*fPtr)(TxElement *))
 
 TraversingVersionConverter (std::function< bool(TxElement *)> fun)
 
virtual bool convert (TxElement *root)
 
- Public Member Functions inherited from inviwo::VersionConverter

Detailed Description

A version converter that traverses all child nodes calling a function for each node. The traversal stops immediately when the function returns false.

Member Function Documentation

◆ convert()

virtual bool inviwo::TraversingVersionConverter::convert ( TxElement * root)
virtual

Traverse all child nodes starting at root. The function provided in the constructor will be called for each traversed node. If the function returns false, the traversal is stopped.

Parameters
rootroot node of the traversal
Returns
true if all children of root were traversed, false if the traversal was stopped

Implements inviwo::VersionConverter.


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