10#include "EnigmaTypes.hpp"
24 std::array<AlphabetIndex, TRANSFORMER_SIZE>
mapping;
41 explicit PlugBoard(
const std::array<PlugBoardPair, PLUGBOARD_MAX_PAIRS>& pairs);
50 AlphabetIndex
swap(AlphabetIndex key)
const;
Header file for the PlugBoardPair struct.
Class representing the PlugBoard (Steckerbrett) of the Enigma machine.
AlphabetIndex swap(AlphabetIndex key) const
Swaps the input key based on the plugboard pairs.
PlugBoard()
Constructor for the PlugBoard class. Initializes an empty plugboard with no pairs (identity mapping).
std::array< AlphabetIndex, TRANSFORMER_SIZE > mapping
Global configuration constants for the Enigma machine.