IMP logo
IMP Reference Guide  2.14.0
The Integrative Modeling Platform
NonCopyable.h
Go to the documentation of this file.
1 /**
2  * \file IMP/NonCopyable.h \brief Basic types used by IMP.
3  *
4  * Copyright 2007-2020 IMP Inventors. All rights reserved.
5  *
6  */
7 
8 #ifndef IMPKERNEL_NON_COPYABLE_H
9 #define IMPKERNEL_NON_COPYABLE_H
10 
11 #include <IMP/kernel_config.h>
12 #include "utility_macros.h"
13 
14 IMPKERNEL_BEGIN_NAMESPACE
15 /** Non-copyable classes cannot be copied, as the name
16  implies. If you need
17  to do delayed initialization, either use an
18  initialize method on them or
19  use a boost::scoped_ptr to allocate them on the
20  heap.
21  */
22 class NonCopyable {
23  protected:
24  NonCopyable() {}
25 };
26 IMPKERNEL_END_NAMESPACE
27 
28 #endif /* IMPKERNEL_NON_COPYABLE_H */
Various general useful macros for IMP.