#ifndef idD3EDC396AA314474B3D909559FFC0247 #define idD3EDC396AA314474B3D909559FFC0247 #include "primitivetypes.hpp" #include "components/tilestreamer.hpp" #include "components/tileiterator.hpp" #include #include namespace dk { template class Viewport; template class LayerBase { public: typedef Vector coords; LayerBase ( const coords& parCount, const coords& parTileSize, const coords& parMasterTileSize ); virtual ~LayerBase ( void ) noexcept = default; protected: coords m_count; coords m_tilesize; coords m_mastersize; }; template class Layer : public LayerBase { public: typedef typename LayerBase::coords coords; typedef TileStreamer streamer_type; typedef TileIterator iterator; Layer ( const Layer& ) = delete; Layer ( Layer&& ) = default; Layer ( const coords& parCount, const coords& parTileSize, const coords& parMasterTileSize, streamer_type&& parStreamer ); virtual ~Layer ( void ) noexcept = default; Layer& operator= ( const Layer& ) = delete; iterator begin ( void ); void setActiveViewport ( const coords& parFrom, const coords& parCount ); private: streamer_type m_streamer; Viewport m_activeViewport; std::vector m_tiles; }; namespace implem { template typename LayerBase::coords::value_type area ( const typename LayerBase::coords& parVec ) a_pure; } } //namespace dk #include "implem/layer.inl" #endif