Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DestructionEvent.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/DestructionEvent.hh
17 /// @brief signal that the Pose is getting destroyed
18 /// @author Yih-En Andrew Ban (yab@u.washington.edu)
19 
20 #ifndef INCLUDED_core_pose_signals_DestructionEvent_hh
21 #define INCLUDED_core_pose_signals_DestructionEvent_hh
22 
23 
24 // unit headers
26 
27 // package headers
28 #include <core/pose/Pose.fwd.hh>
29 
30 #include <utility/vector1.hh>
31 
32 
33 
34 namespace core {
35 namespace pose {
36 namespace signals {
37 
38 
39 /// @brief special signal that the Pose is getting destroyed
40 struct DestructionEvent { // do not derive from GeneralEvent
41 
42 
43  // typedefs
45 
46  /// @brief default constructor
47  inline
49  pose( NULL )
50  {}
51 
52 
53  /// @brief constructor
54  inline
55  DestructionEvent( Pose const * pose ) :
56  pose( pose )
57  {}
58 
59 
60  /// @brief copy constructor
61  inline
63  pose( rval.pose )
64  {}
65 
66 
67  /// @brief default destructor
68  inline
69  virtual
71 
72 
73  /// @brief copy assignment
74  inline
76  operator =( DestructionEvent const & rval ) {
77  if ( this != &rval ) {
78  pose = rval.pose;
79  }
80  return *this;
81  }
82 
83 
84  /// @brief the Pose firing the signal
85  Pose const * pose;
86 
87 
88 };
89 
90 
91 } // namespace signals
92 } // namespace pose
93 } // namespace core
94 
95 
96 #endif /* INCLUDED_core_pose_signals_DestructionEvent_HH */