|
NeoN
A framework for CFD software
|
Holds and exposes the active MeshIterationStrategy. More...
#include <meshIterationStrategies.hpp>
Public Member Functions | |
| void | setStrategy (std::shared_ptr< MeshIterationStrategy > strategy) |
| Replaces the active strategy. | |
| std::shared_ptr< MeshIterationStrategy > | get () const |
| Returns the active strategy, or nullptr if none has been set. | |
| std::string | name () const |
| Returns the name of the active strategy, or an empty string if none is set. | |
Holds and exposes the active MeshIterationStrategy.
Acts as a strategy context: callers set one concrete strategy and then query it uniformly through get and name without knowing the concrete type.
Definition at line 47 of file meshIterationStrategies.hpp.
| std::shared_ptr< MeshIterationStrategy > NeoN::la::MeshIteratorContext::get | ( | ) | const |
Returns the active strategy, or nullptr if none has been set.
| std::string NeoN::la::MeshIteratorContext::name | ( | ) | const |
Returns the name of the active strategy, or an empty string if none is set.
| void NeoN::la::MeshIteratorContext::setStrategy | ( | std::shared_ptr< MeshIterationStrategy > | strategy | ) |
Replaces the active strategy.