|
BashSpark
|
Base interface for nodes that can be evaluated (executed). More...
#include <shell_node.h>


Public Member Functions | |
| shell_node_evaluable (const shell_node_type nType, const std::size_t nPos) | |
| Construct an evaluable node. | |
| virtual shell_status | evaluate (shell_session &oSession) const =0 |
| Evaluate (execute) the node. | |
Public Member Functions inherited from bs::shell_node | |
| virtual | ~shell_node ()=default |
| Virtual default destructor for polymorphic deletion. | |
| shell_node_type | get_type () const noexcept |
| Get the node type. | |
| std::size_t | get_pos () const noexcept |
| Get node position in the original input stream. | |
Additional Inherited Members | |
Protected Member Functions inherited from bs::shell_node | |
| shell_node (const shell_node_type nType, const std::size_t nPos) | |
| Protected constructor used by derived classes. | |
Protected Attributes inherited from bs::shell_node | |
| const shell_node_type | m_nType |
| Node type. | |
| const std::size_t | m_nPos |
| Position in the input stream. | |
Base interface for nodes that can be evaluated (executed).
Evaluatable nodes perform actions and return a shell_status indicating the result of execution.
|
inline |
Construct an evaluable node.
| nType | Node type. |
| nPos | Node position. |
|
pure virtual |
Evaluate (execute) the node.
| oSession | Session context used during evaluation. |
Implemented in bs::shell_node_null_command, bs::shell_node_command, bs::shell_node_command_block, bs::shell_node_command_block_subshell, bs::shell_node_background, bs::shell_node_and, bs::shell_node_pipe, bs::shell_node_or, bs::shell_node_test, bs::shell_node_if, bs::shell_node_continue, bs::shell_node_break, bs::shell_node_for, bs::shell_node_while, bs::shell_node_until, and bs::shell_node_function.