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
fragment
FragID.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
// :noTabs=false:tabSize=4:indentSize=4:
4
//
5
// (c) Copyright Rosetta Commons Member Institutions.
6
// (c) This file is part of the Rosetta software suite and is made available under license.
7
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
8
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
9
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
10
11
/// @file core/fragments/FragID.hh
12
/// @brief set of fragments for a certain alignment frame
13
/// @author Oliver Lange (olange@u.washington.edu)
14
/// @author James Thompson
15
/// @date Wed Oct 20 12:08:31 2007
16
///
17
#ifndef INCLUDED_core_fragment_FragID_HH
18
#define INCLUDED_core_fragment_FragID_HH
19
20
// Unit Headers
21
#include <
core/fragment/FragID.fwd.hh
>
22
23
// Package Headers
24
#include <
core/fragment/Frame.fwd.hh
>
25
#ifdef WIN32
26
#include <
core/fragment/Frame.hh
>
// WIN32 INCLUDE
27
#endif
28
#include <
core/fragment/FragData.fwd.hh
>
29
30
// Project headers
31
#include <
core/types.hh
>
32
#include <
core/kinematics/MoveMap.fwd.hh
>
33
#include <
core/pose/Pose.fwd.hh
>
34
35
#include <utility/vector1.hh>
36
37
38
// a very lightweight class ( only two memory cells )
39
// copy by value, don't use OPs -- not derived from ReferenceCount.
40
// FragID identifies a physical fragment by its Frame and intra_frame reference number.
41
42
namespace
core {
43
namespace
fragment {
44
45
class
FragID
{
46
public
:
47
FragID
();
48
FragID
(
FrameOP
frame
,
Size
frag_id );
49
FragID
(
FragID
const
& );
50
~FragID
();
51
FragID
const
&
operator =
(
FragID
const
& rhs );
52
53
FrameCOP
frame_ptr
()
const
;
54
Frame
const
&
frame
()
const
;
55
Frame
&
frame
();
56
Size
id
()
const
;
57
FragData
&
fragment
();
58
FragData
const
&
fragment
()
const
;
59
FragDataCOP
fragment_ptr
()
const
;
60
Size
apply
(
kinematics::MoveMap
const
& mm,
pose::Pose
& pose)
const
;
61
Size
apply
(
pose::Pose
& pose)
const
;
62
63
// if we enable id != nr frame will need a map that can do frag_id --> nr
64
bool
is_valid
()
const
;
65
Size
apply_ss
(
kinematics::MoveMap
const
& mm,
std::string
& ss )
const
;
66
67
/// @brief Equality operator (previously free when FragID derived from std::pair).
68
bool
operator ==
(
FragID
const
& other )
const
;
69
/// @brief Comparison operator (previously free when FragID derived from std::pair).
70
bool
operator <
(
FragID
const
& other )
const
;
71
72
/// TEMP! soon to be private!
73
public
:
74
/// Pretend this is a std pair
75
FrameOP
first
;
76
Size
second
;
77
78
};
79
80
}
//fragment
81
}
//core
82
83
#endif
Generated on Sat Jun 1 2013 11:32:34 for Rosetta 3.5 by
1.8.4