scram::mef::Branch
The branch representation in event trees.
#include <event_tree.h>
Inherited by scram::mef::NamedBranch, scram::mef::Path
Public Types
| Name | |
|---|---|
| using std::variant< Sequence *, Fork *, NamedBranch * > | Target <br>The types of possible branch end-points. |
Public Functions
| Name | |
|---|---|
| void | instructions(std::vector< Instruction * > instructions)<br>Sets the instructions to execute at the branch. |
| const std::vector< Instruction * > & | instructions() const |
| void | target(Target target)<br>Sets the target for the branch. |
| const Target & | target() const |
Public Types Documentation
using Target
cpp
using scram::mef::Branch::Target = std::variant<Sequence*, Fork*, NamedBranch*>;The types of possible branch end-points.
Public Functions Documentation
function instructions
cpp
inline void instructions(
std::vector< Instruction * > instructions
)Sets the instructions to execute at the branch.
function instructions
cpp
inline const std::vector< Instruction * > & instructions() constReturn: The instructions to execute at the branch.
function target
cpp
inline void target(
Target target
)Sets the target for the branch.
function target
cpp
inline const Target & target() constReturn: The target semantics or end-points of the branch.
Precondition: The target has been set.
Updated on 2025-11-11 at 16:51:08 +0000
