LibCarna
Version 3.4.0
Loading...
Searching...
No Matches
include
LibCarna
base
noncopyable.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2010 - 2016 Leonid Kostrykin
3
*
4
* Chair of Medical Engineering (mediTEC)
5
* RWTH Aachen University
6
* Pauwelsstr. 20
7
* 52074 Aachen
8
* Germany
9
*
10
*
11
* Copyright (C) 2021 - 2025 Leonid Kostrykin
12
*
13
*/
14
15
#ifndef NONCOPYABLE_H_6014714286
16
#define NONCOPYABLE_H_6014714286
17
23
namespace
LibCarna
24
{
25
26
namespace
base
27
{
28
29
30
31
// ----------------------------------------------------------------------------------
32
// noncopyable
33
// ----------------------------------------------------------------------------------
34
44
class
noncopyable
45
{
46
47
private
:
48
51
noncopyable
(
const
noncopyable
& )
52
{
53
}
54
57
noncopyable
& operator=(
const
noncopyable
& )
58
{
59
return
*
this
;
60
}
61
62
63
public
:
64
67
noncopyable
()
68
{
69
}
70
71
};
// noncopyable
72
73
74
109
#define NON_COPYABLE private: ::LibCarna::base::noncopyable __noncopyable;
110
111
112
113
}
// namespace LibCarna :: base
114
115
}
// namespace LibCarna
116
117
#endif
// NONCOPYABLE_H_6014714286
LibCarna::base::noncopyable
Objects from classes inheriting this cannot be copied.
Definition
noncopyable.hpp:45
LibCarna::base::noncopyable::noncopyable
noncopyable()
Enabled default constructor.
Definition
noncopyable.hpp:67
Written by Leonid Kostrykin © 2021–2025. Based on
Carna
(© 2010-2016).
Documentation generated by
Doxygen