ArkScript
A small, fast, functional and scripting language for video games
Ark::internal::MacroExecutorPipeline Class Reference

The class that initializes the MacroExecutors. More...

#include <Pipeline.hpp>

+ Collaboration diagram for Ark::internal::MacroExecutorPipeline:

Public Member Functions

 MacroExecutorPipeline ()=default
 
 MacroExecutorPipeline (const std::vector< std::shared_ptr< MacroExecutor > > &executors)
 Construct a new Macro Executor Pipeline object.
 
bool applyMacro (Node &node)
 Passes node through all MacroExecutors sequentially.
 

Private Attributes

std::vector< std::shared_ptr< MacroExecutor > > m_executors
 

Detailed Description

The class that initializes the MacroExecutors.

Definition at line 28 of file Pipeline.hpp.

Constructor & Destructor Documentation

◆ MacroExecutorPipeline() [1/2]

Ark::internal::MacroExecutorPipeline::MacroExecutorPipeline ( )
default

◆ MacroExecutorPipeline() [2/2]

Ark::internal::MacroExecutorPipeline::MacroExecutorPipeline ( const std::vector< std::shared_ptr< MacroExecutor > > &  executors)

Construct a new Macro Executor Pipeline object.

Parameters
executors

Definition at line 5 of file Pipeline.cpp.

Member Function Documentation

◆ applyMacro()

bool Ark::internal::MacroExecutorPipeline::applyMacro ( Node node)

Passes node through all MacroExecutors sequentially.

Parameters
nodenode on which to operate
Returns
true if a macro was applied
false

Definition at line 9 of file Pipeline.cpp.

References m_executors.

Referenced by Ark::internal::MacroProcessor::applyMacro().

Member Data Documentation

◆ m_executors

std::vector<std::shared_ptr<MacroExecutor> > Ark::internal::MacroExecutorPipeline::m_executors
private

Definition at line 50 of file Pipeline.hpp.

Referenced by applyMacro().


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