Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
GraphBase.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
10#include <string>
11#include <ostream>
12
13namespace graph {
14
18class GraphBase {
19public:
20 virtual ~GraphBase ( ) noexcept = default;
21
22// ---------------------------------------------------------------------------------------------------------------------
23
24// ---------------------------------------------------------------------------------------------------------------------
25 friend ext::ostream & operator << ( ext::ostream & os, const GraphBase & instance ) {
26 instance >> os;
27 return os;
28 }
29
30 public:
31
32 virtual void operator >> ( ext::ostream & os ) const = 0;
33};
34
35} // namespace graph
36
Definition: ostream.h:14
Definition: GraphBase.hpp:18
virtual void operator>>(ext::ostream &os) const =0
virtual ~GraphBase() noexcept=default
Definition: sigHandler.cpp:20
Definition: ReconstructPath.hpp:14