From c94d0c347fdbd8acc774df4ac17617a3f63e4507 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sun, 9 Jul 2017 23:48:06 +0200 Subject: Delete old codebase This change removes version 1 of the OpenDC simulator codebase as it will be replaced by a complete rewrite in the Kotlin language. --- Simulator/include/modeling/Datacenter.h | 40 --------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 Simulator/include/modeling/Datacenter.h (limited to 'Simulator/include/modeling/Datacenter.h') diff --git a/Simulator/include/modeling/Datacenter.h b/Simulator/include/modeling/Datacenter.h deleted file mode 100644 index a9558f0a..00000000 --- a/Simulator/include/modeling/Datacenter.h +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once -#include "modeling/Room.h" -#include "simulation/schedulers/Scheduler.h" -#include "modeling/TypeIndex.h" - -#include - -namespace Modeling -{ - /* - The Datacenter class models a datacenter with rooms/entities. - */ - template - class Datacenter - { - public: - /* - Returns a reference to the vector of rooms in this datacenter. - */ - template - std::vector& getRoomsOfType() - { - return std::get::value>(rooms); - } - - /* - Adds a room to this datacenter. - */ - template - void addRoomOfType(RoomType& room) - { - std::get::value>(rooms).push_back(std::move(room)); - } - - - private: - // A vector of rooms that are part of this datacenter. - std::tuple...> rooms; - }; -} -- cgit v1.2.3