NOMAD Source
Version 4.0.0 Beta
Uncopyable.hpp
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------------*/
2
/* NOMAD - Nonlinear Optimization by Mesh Adaptive Direct Search - */
3
/* */
4
/* NOMAD - Version 4.0.0 has been created by */
5
/* Viviane Rochon Montplaisir - Polytechnique Montreal */
6
/* Christophe Tribes - Polytechnique Montreal */
7
/* */
8
/* The copyright of NOMAD - version 4.0.0 is owned by */
9
/* Charles Audet - Polytechnique Montreal */
10
/* Sebastien Le Digabel - Polytechnique Montreal */
11
/* Viviane Rochon Montplaisir - Polytechnique Montreal */
12
/* Christophe Tribes - Polytechnique Montreal */
13
/* */
14
/* NOMAD v4 has been funded by Rio Tinto, Hydro-Québec, NSERC (Natural */
15
/* Sciences and Engineering Research Council of Canada), InnovÉÉ (Innovation */
16
/* en Énergie Électrique) and IVADO (The Institute for Data Valorization) */
17
/* */
18
/* NOMAD v3 was created and developed by Charles Audet, Sebastien Le Digabel, */
19
/* Christophe Tribes and Viviane Rochon Montplaisir and was funded by AFOSR */
20
/* and Exxon Mobil. */
21
/* */
22
/* NOMAD v1 and v2 were created and developed by Mark Abramson, Charles Audet, */
23
/* Gilles Couture, and John E. Dennis Jr., and were funded by AFOSR and */
24
/* Exxon Mobil. */
25
/* */
26
/* Contact information: */
27
/* Polytechnique Montreal - GERAD */
28
/* C.P. 6079, Succ. Centre-ville, Montreal (Quebec) H3C 3A7 Canada */
29
/* e-mail: nomad@gerad.ca */
30
/* */
31
/* This program is free software: you can redistribute it and/or modify it */
32
/* under the terms of the GNU Lesser General Public License as published by */
33
/* the Free Software Foundation, either version 3 of the License, or (at your */
34
/* option) any later version. */
35
/* */
36
/* This program is distributed in the hope that it will be useful, but WITHOUT */
37
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
38
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License */
39
/* for more details. */
40
/* */
41
/* You should have received a copy of the GNU Lesser General Public License */
42
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
43
/* */
44
/* You can find information on the NOMAD software at www.gerad.ca/nomad */
45
/*---------------------------------------------------------------------------------*/
46
/**
47
\file Uncopyable.hpp
48
\brief Base class for uncopyable classes (headers)
49
\author Sebastien Le Digabel
50
\date 2010-04-02
51
*/
52
#ifndef __NOMAD400_UNCOPYABLE__
53
#define __NOMAD400_UNCOPYABLE__
54
55
#include "../nomad_nsbegin.hpp"
56
57
/// Base class for uncopyable classes
58
/**
59
See Scott Meyer's Effective C++, 3rd ed., item #6.
60
*/
61
class
Uncopyable
62
{
63
64
protected
:
65
66
/// Constructor.
67
explicit
Uncopyable
(
void
) {}
68
69
/// Destructor.
70
virtual
~Uncopyable
(
void
) {}
71
72
private
:
73
74
/// Undefined copy constructor.
75
Uncopyable
(
const
Uncopyable
& );
76
77
/// Undefined affectation operator.
78
Uncopyable
&
operator =
(
const
Uncopyable
& );
79
};
80
#include "../nomad_nsend.hpp"
81
82
#endif // __NOMAD400_UNCOPYABLE__
83
Uncopyable::operator=
Uncopyable & operator=(const Uncopyable &)
Undefined affectation operator.
Uncopyable
Base class for uncopyable classes.
Definition:
Uncopyable.hpp:61
Uncopyable::Uncopyable
Uncopyable(void)
Constructor.
Definition:
Uncopyable.hpp:67
Uncopyable::~Uncopyable
virtual ~Uncopyable(void)
Destructor.
Definition:
Uncopyable.hpp:70
src
Util
Uncopyable.hpp
Generated on Tue Dec 1 2020 17:08:19 for NOMAD Source by
1.8.17