NeoN
A framework for CFD software
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NeoN::la::MeshIteratorContext Class Reference

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< MeshIterationStrategyget () 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.
 

Detailed Description

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.

Member Function Documentation

◆ get()

std::shared_ptr< MeshIterationStrategy > NeoN::la::MeshIteratorContext::get ( ) const

Returns the active strategy, or nullptr if none has been set.

◆ name()

std::string NeoN::la::MeshIteratorContext::name ( ) const

Returns the name of the active strategy, or an empty string if none is set.

◆ setStrategy()

void NeoN::la::MeshIteratorContext::setStrategy ( std::shared_ptr< MeshIterationStrategy strategy)

Replaces the active strategy.


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