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
conformation
PointGraphData.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/conformation/PointGraphData.hh
11
/// @brief classes to work with UpperEdgeGraph for fast neighbor detection
12
/// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13
14
15
#ifndef INCLUDED_core_conformation_PointGraphData_hh
16
#define INCLUDED_core_conformation_PointGraphData_hh
17
18
// Project Headers
19
#include <
core/types.hh
>
20
21
// Numeric Headers
22
#include <numeric/xyzVector.hh>
23
24
namespace
core {
25
namespace
conformation {
26
27
class
PointGraphVertexData
28
{
29
public
:
30
PointGraphVertexData
() :
xyz_
( 0.0, 0.0, 0.0 ) {}
31
PointGraphVertexData
(
numeric::xyzVector< core::Real >
const
& coors ) :
xyz_
( coors ) {}
32
33
numeric::xyzVector< core::Real >
&
xyz
() {
return
xyz_
; }
34
numeric::xyzVector< core::Real >
const
&
xyz
()
const
{
return
xyz_
; }
35
36
static
int
const
NUM_EDGES_TO_RESERVE
= 50;
37
38
private
:
39
numeric::xyzVector< core::Real >
xyz_
;
40
41
42
};
43
44
class
PointGraphEdgeData
45
{
46
public
:
47
PointGraphEdgeData
() :
dsq_
( 0.0 ) {}
48
49
///@brief inputs and outputs are distances squared
50
PointGraphEdgeData
(
platform::Real
d2 ) :
dsq_
( d2 ) {}
51
52
core::Real
&
dsq
() {
return
dsq_
; }
53
core::Real
dsq
()
const
{
return
dsq_
; }
54
55
private
:
56
core::Real
dsq_
;
57
};
58
59
}
60
}
61
62
#endif
Generated on Sat Jun 1 2013 11:32:25 for Rosetta 3.5 by
1.8.4