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
pose
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/pose/signals/GeneralEvent.hh
17
/// @brief signal for a general change in a Pose
18
/// @author Yih-En Andrew Ban (yab@u.washington.edu)
19
20
#ifndef INCLUDED_core_pose_signals_GeneralEvent_hh
21
#define INCLUDED_core_pose_signals_GeneralEvent_hh
22
23
24
// unit headers
25
#include <
core/pose/signals/GeneralEvent.fwd.hh
>
26
///
27
28
// Package headers
29
#include <
core/pose/Pose.fwd.hh
>
30
31
#include <utility/vector1.hh>
32
33
34
namespace
core {
35
namespace
pose {
36
namespace
signals {
37
38
39
/// @brief signals a general change in a Pose
40
struct
GeneralEvent
{
41
42
43
// Try to keep this tag-less. For specific types of events
44
// derive from this class.
45
46
47
// typedefs
48
typedef
core::pose::Pose
Pose
;
49
50
51
/// @brief default constructor
52
inline
53
GeneralEvent
() :
54
pose
( NULL )
55
{}
56
57
58
/// @brief constructor
59
inline
60
GeneralEvent
(
Pose
const
*
pose
) :
61
pose( pose )
62
{}
63
64
65
/// @brief copy constructor
66
inline
67
GeneralEvent
(
GeneralEvent
const
& rval ) :
68
pose
( rval.
pose
)
69
{}
70
71
72
/// @brief default destructor
73
inline
74
virtual
75
~GeneralEvent
() {}
76
77
78
/// @brief copy assignment
79
inline
80
GeneralEvent
&
81
operator =
(
GeneralEvent
const
& rval ) {
82
if
(
this
!= &rval ) {
83
pose
= rval.
pose
;
84
}
85
return
*
this
;
86
}
87
88
89
/// @brief the Pose firing the signal
90
Pose
const
*
pose
;
91
92
/// @brief PyRosetta work around
93
Pose
const
&
getPose
() {
return
*
pose
; };
94
};
95
96
97
}
// namespace signals
98
}
// namespace pose
99
}
// namespace core
100
101
102
#endif
/* INCLUDED_core_pose_signals_GeneralEvent_HH */
Generated on Sat Jun 1 2013 11:32:29 for Rosetta 3.5 by
1.8.4