Added sub folders for common, extra, and framework code files
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include <cmath>
|
||||
#include <sstream>
|
||||
|
||||
#include <aoc/Math.hpp>
|
||||
#include <aoc/common/Math.hpp>
|
||||
|
||||
const std::string BridgeRepair::getPuzzleName() const
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <aoc/MullItOver.hpp>
|
||||
|
||||
#include <aoc/StringStateMachine.hpp>
|
||||
#include <aoc/common/StringStateMachine.hpp>
|
||||
|
||||
MullItOver::MullItOver()
|
||||
: Solver{}, data_{}, states_ { data_ }
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 };
|
||||
@@ -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)
|
||||
{
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -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_{}
|
||||
@@ -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 }
|
||||
@@ -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)
|
||||
{
|
||||
@@ -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)
|
||||
{
|
||||
@@ -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)
|
||||
{
|
||||
@@ -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_{}
|
||||
@@ -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)
|
||||
{
|
||||
@@ -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_{}
|
||||
@@ -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();
|
||||
}
|
||||
@@ -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)
|
||||
@@ -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 }
|
||||
@@ -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>
|
||||
|
||||
@@ -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 }
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user