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
chemical
ResidueSupport.cc
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 src/core/chemical/ResidueSupport.hh
11
/// @brief support functions for class residue; functions that
12
/// should not be included as part of the class.
13
/// @author Phil Bradley
14
15
16
//#ifndef INCLUDED_core_chemical_ResidueSupport_HH
17
//#define INCLUDED_core_chemical_ResidueSupport_HH
18
19
// Package Headers
20
#include <
core/chemical/ResidueType.hh
>
21
22
// Project Headers
23
#include <
core/graph/Graph.hh
>
24
25
#include <utility/vector1.hh>
26
#include <ObjexxFCL/FArray2D.hh>
27
28
29
// ObjexxFCL Headers
30
// Commented by inclean daemon #include <ObjexxFCL/FArray2D.hh>
31
32
namespace
core {
33
namespace
chemical {
34
35
ObjexxFCL::FArray2D_int
36
get_residue_path_distances
(
ResidueType
const
& res )
37
{
38
using namespace
graph;
39
Graph
g;
40
41
g.
set_num_nodes
( res.
natoms
() );
42
for
(
uint
ii = 1; ii <= res.
natoms
(); ++ii )
43
{
44
AtomIndices
const
& ii_bonded = res.
bonded_neighbor
( ii );
45
for
(
Size
jj = 1; jj <= ii_bonded.size(); ++jj)
46
{
47
if
( ii_bonded[ jj ] > ii )
48
g.add_edge( ii, ii_bonded[ jj ] );
49
}
50
}
51
return
g.all_pairs_shortest_paths();
52
}
53
54
}
55
}
56
57
//#endif
Generated on Sat Jun 1 2013 11:31:37 for Rosetta 3.5 by
1.8.4