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
scoring
constraints
CstMinimizationData.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 core/scoring/constraints/CstMinimizationData.hh
11
/// @brief A cacheable data wrapper for ConstraintsOPs for use in minimization
12
/// @author Andrew Leaver-Fay
13
14
#ifndef INCLUDED_core_scoring_constraints_CstMinimizationData_hh
15
#define INCLUDED_core_scoring_constraints_CstMinimizationData_hh
16
17
// Package headers
18
#include <
core/scoring/constraints/Constraints.hh
>
19
20
// Project headers
21
#include <basic/datacache/CacheableData.hh>
22
23
// Utility headers
24
#include <utility/pointer/ReferenceCount.hh>
25
#include <utility/vector1.hh>
26
27
namespace
core {
28
namespace
scoring {
29
namespace
constraints {
30
31
class
CstMinimizationData
;
32
typedef
utility::pointer::owning_ptr< CstMinimizationData >
CstMinimizationDataOP
;
33
typedef
utility::pointer::owning_ptr< CstMinimizationData const >
CstMinimizationDataCOP
;
34
35
class
CstMinimizationData
:
public
basic::datacache::CacheableData
36
{
37
public
:
38
typedef
basic::datacache::CacheableDataOP
CacheableDataOP
;
39
typedef
basic::datacache::CacheableDataCOP
CacheableDataCOP
;
40
41
public
:
42
CstMinimizationData
() {}
43
CstMinimizationData
(
ConstraintsOP
constraints
) :
constraints_
( constraints ) {}
44
virtual
~CstMinimizationData
() {}
45
virtual
CacheableDataOP
clone
()
const
{
return
new
CstMinimizationData
( *
this
); };
46
47
Constraints
const
&
constraints
()
const
{
return
*
constraints_
; }
48
void
set_constraints
(
ConstraintsOP
constraints
) {
constraints_
=
constraints
; }
49
50
private
:
51
ConstraintsOP
constraints_
;
52
53
};
54
55
}
56
}
57
}
58
59
#endif
Generated on Sat Jun 1 2013 11:35:20 for Rosetta 3.5 by
1.8.4