Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TaskOperationRegistrator.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 /// @brief Declaration of the base class for TaskOperation factory registration and creation
11 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
12 /// @author ashworth
13 
14 
15 #ifndef INCLUDED_core_pack_task_operation_TaskOperationRegistrator_hh
16 #define INCLUDED_core_pack_task_operation_TaskOperationRegistrator_hh
17 
18 // Package headers
20 #include <utility/factory/WidgetRegistrator.hh>
21 
22 namespace core {
23 namespace pack {
24 namespace task {
25 namespace operation {
26 
27 /// @brief This templated class will register an instance of an
28 /// TaskOperationCreator (class T) with the TaskOperationFactory. It will ensure
29 /// that no TaskOperation creator is registered twice, and, centralizes
30 /// this registration logic so that thread safety issues can be handled in
31 /// one place
32 template < class T >
33 class TaskOperationRegistrator : public utility::factory::WidgetRegistrator< TaskOperationFactory, T >
34 {
35 public:
36  typedef utility::factory::WidgetRegistrator< TaskOperationFactory, T > parent;
37 public:
39 };
40 
41 }
42 }
43 }
44 }
45 
46 #endif