Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
alib2graph_data
src
node
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
13
namespace
node
{
14
18
class
NodeBase
{
19
public
:
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
ext::ostream
Definition:
ostream.h:14
node::NodeBase
Definition:
NodeBase.hpp:18
node::NodeBase::~NodeBase
virtual ~NodeBase() noexcept=default
node::NodeBase::operator>>
virtual void operator>>(ext::ostream &os) const =0
ext
Definition:
sigHandler.cpp:20
node
Definition:
Node.cpp:11
Generated on Mon Dec 27 2021 10:21:54 for Algorithms Library Toolkit by
1.9.2