EnigmaMachineCore 0.1.0
A modular Enigma Machine simulation in C++20
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
RotorConfig Struct Reference

Configuration structure for an individual Rotor. More...

#include <EnigmaMachineConfig.hpp>

Public Member Functions

 RotorConfig ()
 

Public Attributes

AlphabetIndex notchPosition = 0
 The position (0 - (TRANSFORMER_SIZE - 1)) at which the rotor triggers the turnover of the next rotor.
 
std::array< AlphabetIndex, TRANSFORMER_SIZEwiring
 The internal wiring permutation array (forward direction). Must be of size TRANSFORMER_SIZE.
 

Detailed Description

Configuration structure for an individual Rotor.

Definition at line 13 of file EnigmaMachineConfig.hpp.

Constructor & Destructor Documentation

◆ RotorConfig()

RotorConfig::RotorConfig ( )

Definition at line 10 of file EnigmaMachineConfig.cpp.

References wiring.

Member Data Documentation

◆ notchPosition

AlphabetIndex RotorConfig::notchPosition = 0

The position (0 - (TRANSFORMER_SIZE - 1)) at which the rotor triggers the turnover of the next rotor.

Definition at line 16 of file EnigmaMachineConfig.hpp.

Referenced by Rotor::Rotor(), and EnigmaConfigLoader::loadRotor().

◆ wiring

std::array<AlphabetIndex, TRANSFORMER_SIZE> RotorConfig::wiring

The internal wiring permutation array (forward direction). Must be of size TRANSFORMER_SIZE.

Definition at line 18 of file EnigmaMachineConfig.hpp.

Referenced by Rotor::Rotor(), RotorConfig(), and EnigmaConfigLoader::loadRotor().


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