Shark machine learning library
Installation
Tutorials
Benchmarks
Documentation
Quick references
Class list
Global functions
include
shark
Core
INameable.h
Go to the documentation of this file.
1
//===========================================================================
2
/*!
3
*
4
*
5
* \brief INameable interface.
6
*
7
*
8
*
9
* \author T.Voss, T. Glasmachers, O.Krause
10
* \date 2010-2011
11
*
12
*
13
* \par Copyright 1995-2017 Shark Development Team
14
*
15
* <BR><HR>
16
* This file is part of Shark.
17
* <https://shark-ml.github.io/Shark/>
18
*
19
* Shark is free software: you can redistribute it and/or modify
20
* it under the terms of the GNU Lesser General Public License as published
21
* by the Free Software Foundation, either version 3 of the License, or
22
* (at your option) any later version.
23
*
24
* Shark is distributed in the hope that it will be useful,
25
* but WITHOUT ANY WARRANTY; without even the implied warranty of
26
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27
* GNU Lesser General Public License for more details.
28
*
29
* You should have received a copy of the GNU Lesser General Public License
30
* along with Shark. If not, see <http://www.gnu.org/licenses/>.
31
*
32
*/
33
//===========================================================================
34
35
#ifndef SHARK_CORE_INAMEABLE_H
36
#define SHARK_CORE_INAMEABLE_H
37
38
#include <string>
39
40
namespace
shark
{
41
42
//! This class is an interface for all objects which can have a name.
43
class
INameable
{
44
public
:
45
virtual
~INameable
() { }
46
47
///returns the name of the object
48
virtual
std::string
name
()
const
{
return
"unnamed"
; }
49
};
50
51
}
52
53
#endif
// SHARK_CORE_INAMEABLE_H