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
dna
BasePartner.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
11
/// @brief
12
/// @author
13
14
#ifndef INCLUDED_core_scoring_dna_BasePartner_hh
15
#define INCLUDED_core_scoring_dna_BasePartner_hh
16
17
#include <
core/scoring/dna/BasePartner.fwd.hh
>
18
19
// AUTO-REMOVED #include <core/types.hh>
20
21
#include <basic/datacache/CacheableData.hh>
22
#include <
core/pose/Pose.fwd.hh
>
23
24
// AUTO-REMOVED #include <utility/vector1.hh>
25
26
#include <utility/vector1.hh>
27
28
29
namespace
core {
30
namespace
scoring {
31
namespace
dna {
32
33
/// silly vector1 wrapper class so we can derive from PoseCachedData
34
35
class
BasePartner
:
public
basic::datacache::CacheableData {
36
public
:
37
38
BasePartner
(
utility::vector1< Size >
const
& partner_in ):
39
partner_
( partner_in )
40
{}
41
42
basic::datacache::CacheableDataOP
43
clone
()
const
44
{
45
return
new
BasePartner
( *
this
);
46
}
47
48
Size
49
size
()
const
50
{
51
return
partner_
.size();
52
}
53
54
void
55
resize
(
Size
const
size_ )
56
{
57
partner_
.resize( size_, 0 );
58
}
59
60
Size
61
operator[]
(
Size
const
pos )
const
62
{
63
return
partner_
[ pos ];
64
}
65
66
Size
&
67
operator[]
(
Size
const
pos )
68
{
69
return
partner_
[ pos ];
70
}
71
72
private
:
73
utility::vector1< Size >
partner_
;
74
};
75
76
/// helper fcn
77
BasePartner
const
&
78
retrieve_base_partner_from_pose
(
pose::Pose
const
& pose );
79
80
81
}
// namespace dna
82
}
// scoring
83
}
// core
84
85
#endif
Generated on Sat Jun 1 2013 11:36:11 for Rosetta 3.5 by
1.8.4