Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PyReturnValuePolicyTest.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 
10 /// @file protocols/toolbox/PyReturnValuePolicyTest.hh
11 /// @brief A few functions test how PyRosetta handle boost ReturnValuePolicy
12 /// @author Sergey Lyskov
13 
14 #ifndef INCLUDED_protocols_toolbox_PyReturnValuePolicyTest_hh
15 #define INCLUDED_protocols_toolbox_PyReturnValuePolicyTest_hh
16 
17 #include <core/pose/Pose.hh>
20 
21 #include <utility/pointer/owning_ptr.fwd.hh>
22 
23 #include <core/types.hh>
24 
25 namespace protocols {
26 namespace toolbox {
27 
28 class DummyClass;
29 
32 
35 
36 
38 public:
39  DummyClass() {};
40  DummyClass(int) {};
42 
43  DummyClass(DummyClass const &) {};
44 
45  DummyClass & operator=( DummyClass const & ) { return *this; };
46 
47  static DummyClass * create() { return new DummyClass(); };
48 
49  virtual DummyClassOP clone() const { return new DummyClass(); };
50 
51  void test() {};
52 
53 private:
54 };
55 
60 
61 
62 class SF_Replica;
63 
66 
69 
70 
71 // SF_Replica
73 {
74 public:
75 
76  SF_Replica() {};
77 
79 
80  SF_Replica &
81  operator=( SF_Replica const & ) { return *this; };
82 
83  SF_Replica( SF_Replica const & ) {};
84 
85  virtual SF_ReplicaOP clone() const { return 0; };
86 
87  virtual core::Real operator ()( core::pose::Pose & pose ) const { return 0.0; };
88 
89  //core::Real operator []( ScoreType const & t ) const
90  //{ return weights_[ t ]; }
91 
92  //void show( std::ostream & out ) const;
93 
94 private:
96 };
97 
102 
103 
108 
112 
113 //core::scoring::ScoreFunctionAP PyReturnValuePolicyTest_ScoreFunctionAP(void) { return core::scoring::ScoreFunctionFactory::create_score_function("standard"); };
114 //core::scoring::ScoreFunctionCAP PyReturnValuePolicyTest_ScoreFunctionCOP(void) { return core::scoring::ScoreFunctionFactory::create_score_function("standard"); };
115 
116 } //toolbox
117 } //protocols
118 
119 #endif // INCLUDED_protocols_toolbox_PyReturnValuePolicyTest_hh