Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
GridBase.hpp
Go to the documentation of this file.
1
6// Copyright (c) 2017 Czech Technical University in Prague | Faculty of Information Technology. All rights reserved.
7
8#pragma once
9
10namespace grid {
11
15class GridBase {
16public:
17 virtual ~GridBase ( ) noexcept = default;
18
19// ---------------------------------------------------------------------------------------------------------------------
20
21 public:
22// ---------------------------------------------------------------------------------------------------------------------
23 friend ext::ostream & operator << ( ext::ostream & os, const GridBase & instance ) {
24 instance >> os;
25 return os;
26 }
27
28 virtual void operator >> ( ext::ostream & os ) const = 0;
29};
30
31} // namespace grid
32
Definition: ostream.h:14
Definition: GridBase.hpp:15
virtual ~GridBase() noexcept=default
virtual void operator>>(ext::ostream &os) const =0
Definition: sigHandler.cpp:20
Definition: GridDirection.hpp:12