![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
A Helper class to construct a NetworkVisitor from a set of lambda functions. More...
#include <lambdanetworkvisitor.h>
Public Types | |
| template<typename T> | |
| using | ProcessorOverload = decltype(std::declval<T>()(std::declval<Processor&>())) |
| template<typename T> | |
| using | ProcessorEnter |
| template<typename T> | |
| using | ProcessorExit |
| template<typename T> | |
| using | CompositeOverload = decltype(std::declval<T>()(std::declval<CompositeProperty&>())) |
| template<typename T> | |
| using | CompositeEnter |
| template<typename T> | |
| using | CompositeExit |
| template<typename T> | |
| using | PropertyOverload = decltype(std::declval<T>()(std::declval<Property&>())) |
Public Member Functions | |
| LambdaNetworkVisitor (Funcs &&... args) | |
| virtual bool | enter (Processor &processor) override |
| Visit a Processor Adding or removing processors while visiting is not supported Called before visiting children. | |
| virtual void | exit (Processor &processor) override |
| Visit a Processor Adding and removing processors while visiting are not supported Called after visiting children. | |
| virtual bool | enter (CompositeProperty &compositeProperty) override |
| Visit a CompositeProperty Adding or removing properties while visiting is not supported Called before visiting children. | |
| virtual void | exit (CompositeProperty &compositeProperty) override |
| Visit a CompositeProperty Adding and removing properties while visiting are not supported Called after visiting children. | |
| virtual void | visit (Property &property) override |
| Visit a Property Adding and removing properties while visiting are not supported. | |
Static Public Attributes | |
| template<typename T> | |
| static constexpr auto | isOverloadCalled |
A Helper class to construct a NetworkVisitor from a set of lambda functions.
A number of different overloads can be given. Processors will be visited before children in order of priority:
Processors will be visited after children:
CompositeProperties will be visited before children in order of priority:
CompositeProperties will be visited after children:
Properties will be visited by:
| using inviwo::LambdaNetworkVisitor< Funcs >::CompositeEnter |
| using inviwo::LambdaNetworkVisitor< Funcs >::CompositeExit |
| using inviwo::LambdaNetworkVisitor< Funcs >::ProcessorEnter |
| using inviwo::LambdaNetworkVisitor< Funcs >::ProcessorExit |
|
inlineoverridevirtual |
Visit a CompositeProperty Adding or removing properties while visiting is not supported Called before visiting children.
Reimplemented from inviwo::NetworkVisitor.
|
inlineoverridevirtual |
Visit a Processor Adding or removing processors while visiting is not supported Called before visiting children.
Reimplemented from inviwo::NetworkVisitor.
|
inlineoverridevirtual |
Visit a CompositeProperty Adding and removing properties while visiting are not supported Called after visiting children.
Reimplemented from inviwo::NetworkVisitor.
|
inlineoverridevirtual |
Visit a Processor Adding and removing processors while visiting are not supported Called after visiting children.
Reimplemented from inviwo::NetworkVisitor.
|
inlineoverridevirtual |
Visit a Property Adding and removing properties while visiting are not supported.
Reimplemented from inviwo::NetworkVisitor.
|
staticconstexpr |