Added sub folders for common, extra, and framework code files

This commit is contained in:
2025-04-30 20:37:03 +02:00
parent 08a94ba068
commit 01c300dce1
75 changed files with 103 additions and 103 deletions

View File

@@ -18,7 +18,7 @@
#include <cmath>
#include <sstream>
#include <aoc/Math.hpp>
#include <aoc/common/Math.hpp>
const std::string BridgeRepair::getPuzzleName() const
{

View File

@@ -19,8 +19,8 @@
#include <queue>
#include <vector>
#include <aoc/Grid.hpp>
#include <aoc/Point2.hpp>
#include <aoc/common/Grid.hpp>
#include <aoc/common/Point2.hpp>
const std::string HoofIt::getPuzzleName() const
{

View File

@@ -15,7 +15,7 @@
#include <aoc/MullItOver.hpp>
#include <aoc/StringStateMachine.hpp>
#include <aoc/common/StringStateMachine.hpp>
MullItOver::MullItOver()
: Solver{}, data_{}, states_ { data_ }

View File

@@ -18,7 +18,7 @@
#include <iostream>
#include <memory>
#include <aoc/SolverEngine.hpp>
#include <aoc/framework/SolverEngine.hpp>
// Solver implementations in day order.
#include <aoc/HistorianHysteria.hpp>

View File

@@ -21,8 +21,8 @@
#include <numeric>
#include <sstream>
#include <aoc/Math.hpp>
#include <aoc/Point2.hpp>
#include <aoc/common/Math.hpp>
#include <aoc/common/Point2.hpp>
RestroomRedoubt::RestroomRedoubt(const int width, const int height, const bool runPart2)
: width_{ width }, height_{ height }, halfWidth_{ width / 2 }, halfHeight_{ height / 2 }, runPart2_{ runPart2 }

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/Graph.hpp>
#include <aoc/common/Graph.hpp>
#include <memory>

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/Lines.hpp>
#include <aoc/common/Lines.hpp>
#include <algorithm>

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/Math.hpp>
#include <aoc/common/Math.hpp>
#include <array>

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/Point2.hpp>
#include <aoc/common/Point2.hpp>
const Point2 Point2::left{ -1, 0 };
const Point2 Point2::right{ 1, 0 };

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/StringStateMachine.hpp>
#include <aoc/common/StringStateMachine.hpp>
StringStateMachine::StringStateMachine(const std::string& line, StringState& entryState)
{

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/Vertex.hpp>
#include <aoc/common/Vertex.hpp>
#include <memory>

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/WeightedEdgeGraph.hpp>
#include <aoc/common/WeightedEdgeGraph.hpp>
#include <limits>
#include <queue>

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/MullCharState.hpp>
#include <aoc/extra/MullCharState.hpp>
MullCharState::MullCharState(const char expected)
: expected_{ expected }, successState_{}, failState_{}

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/MullData.hpp>
#include <aoc/extra/MullData.hpp>
MullData::MullData()
: isEnabled_{ true }, factor1_{ 0 }, factor2_{ 0 }, part1_{ 0 }, part2_{ 0 }

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/MullDataState.hpp>
#include <aoc/extra/MullDataState.hpp>
void MullDataState::setData(MullData& data)
{

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/MullDoOpenState.hpp>
#include <aoc/extra/MullDoOpenState.hpp>
void MullDoOpenState::next(StringStateMachine* stateMachine)
{

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/MullEntryState.hpp>
#include <aoc/extra/MullEntryState.hpp>
void MullEntryState::enter(StringStateMachine* stateMachine)
{

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/MullFactorState.hpp>
#include <aoc/extra/MullFactorState.hpp>
MullFactorState::MullFactorState(const char expected, const int index)
: expected_{ expected }, index_{ index }, successState_{}, failState_{}

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/MullStates.hpp>
#include <aoc/extra/MullStates.hpp>
MullStates::MullStates(MullData& data)
{

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/MullToggleCloseState.hpp>
#include <aoc/extra/MullToggleCloseState.hpp>
MullToggleCloseState::MullToggleCloseState(const bool isEnabler)
: isEnabler_{ isEnabler }, successState_{}

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/ReindeerMazeCrossing.hpp>
#include <aoc/extra/ReindeerMazeCrossing.hpp>
ReindeerMazeCrossing::ReindeerMazeCrossing(const Point2 position)
: position_{ position }, incidences{}
@@ -27,6 +27,6 @@ Point2 ReindeerMazeCrossing::getPosition() const
bool ReindeerMazeCrossing::isFinished() const
{
return std::find_if(incidences.begin(), incidences.end(), [](auto& x) { return x.getPathVertex() < 0; }) ==
incidences.end();
return std::find_if(incidences.begin(), incidences.end(),
[](auto& x) { return x.getPathVertex() < 0; }) == incidences.end();
}

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/ReindeerMazePathIncidence.hpp>
#include <aoc/extra/ReindeerMazePathIncidence.hpp>
ReindeerMazePathIncidence::ReindeerMazePathIncidence(const Point2 direction)
: ReindeerMazePathIncidence(direction, -1)

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/WarehouseBoxPusher.hpp>
#include <aoc/extra/WarehouseBoxPusher.hpp>
WarehouseBoxPusher::WarehouseBoxPusher(const char boxChar, const char wallChar, const char emptyChar)
: boxChar_{ boxChar }, wallChar_{ wallChar }, emptyChar_{ emptyChar }

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/WarehouseWideBoxPusher.hpp>
#include <aoc/extra/WarehouseWideBoxPusher.hpp>
#include <stack>

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/LinesSolver.hpp>
#include <aoc/framework/LinesSolver.hpp>
LinesSolver::LinesSolver(const int inputFileNameSuffix)
: Solver{ inputFileNameSuffix }

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/Solver.hpp>
#include <aoc/framework/Solver.hpp>
#include <sstream>

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aoc/SolverEngine.hpp>
#include <aoc/framework/SolverEngine.hpp>
#include <fstream>
#include <iostream>