Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
cli::IfCommand Class Reference

#include <IfCommand.h>

Inheritance diagram for cli::IfCommand:
[legend]
Collaboration diagram for cli::IfCommand:
[legend]

Public Member Functions

 IfCommand (std::unique_ptr< Expression > condition, std::unique_ptr< Command > thenBranch, std::unique_ptr< Command > elseBranch)
 
CommandResult run (Environment &environment) const override
 
- Public Member Functions inherited from cli::Command
virtual ~Command () noexcept=default
 

Constructor & Destructor Documentation

◆ IfCommand()

cli::IfCommand::IfCommand ( std::unique_ptr< Expression condition,
std::unique_ptr< Command thenBranch,
std::unique_ptr< Command elseBranch 
)
inline

Member Function Documentation

◆ run()

CommandResult cli::IfCommand::run ( Environment environment) const
inlineoverridevirtual

Implements cli::Command.

Here is the call graph for this function:

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