Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
conformation
signals
GeneralEvent.hh
Go to the documentation of this file.
1
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2
// vi: set ts=2 noet:
3
//
4
// (c) Copyright Rosetta Commons Member Institutions.
5
// (c) This file is part of the Rosetta software suite and is made available under license.
6
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9
// (C) 199x-2009 University of Washington
10
// (C) 199x-2009 University of California Santa Cruz
11
// (C) 199x-2009 University of California San Francisco
12
// (C) 199x-2009 Johns Hopkins University
13
// (C) 199x-2009 University of North Carolina, Chapel Hill
14
// (C) 199x-2009 Vanderbilt University
15
16
/// @file core/conformation/signals/GeneralEvent.hh
17
/// @brief signal for a general change in a Conformation
18
/// @author Yih-En Andrew Ban (yab@u.washington.edu)
19
20
#ifndef INCLUDED_core_conformation_signals_GeneralEvent_hh
21
#define INCLUDED_core_conformation_signals_GeneralEvent_hh
22
23
24
// unit headers
25
#include <
core/conformation/signals/GeneralEvent.fwd.hh
>
26
27
// package headers
28
#include <
core/conformation/Conformation.fwd.hh
>
29
30
31
namespace
core {
32
namespace
conformation {
33
namespace
signals {
34
35
36
/// @brief signals a general change in a Conformation
37
struct
GeneralEvent
{
38
39
40
// Try to keep this class tag-less. For specific types of events
41
// derive from this class.
42
43
44
// typedefs
45
typedef
core::conformation::Conformation
Conformation
;
46
47
48
/// @brief default constructor
49
inline
50
GeneralEvent
() :
51
conformation
( NULL )
52
{}
53
54
55
/// @brief constructor
56
inline
57
GeneralEvent
(
Conformation
const
* conf ) :
58
conformation
( conf )
59
{}
60
61
62
/// @brief copy constructor
63
inline
64
GeneralEvent
(
GeneralEvent
const
& rval ) :
65
conformation
( rval.
conformation
)
66
{}
67
68
69
/// @brief default destructor
70
inline
71
virtual
72
~GeneralEvent
() {}
73
74
75
/// @brief copy assignment
76
inline
77
GeneralEvent
&
78
operator =
(
GeneralEvent
const
& rval ) {
79
if
(
this
!= &rval ) {
80
conformation
= rval.
conformation
;
81
}
82
return
*
this
;
83
}
84
85
86
/// @brief the Conformation firing the signal
87
Conformation
const
*
conformation
;
88
89
90
};
91
92
93
}
// namespace signals
94
}
// namespace conformation
95
}
// namespace core
96
97
98
#endif
/* INCLUDED_core_conformation_signals_GeneralEvent_HH */
Generated on Sat Jun 1 2013 11:32:28 for Rosetta 3.5 by
1.8.4