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