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
id
AtomID.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 core/id/AtomID.cc
11
/// @brief Kinematics Atom identifier
12
/// @author Phil Bradley
13
14
15
// Unit headers
16
#include <
core/id/AtomID.hh
>
17
// AUTO-REMOVED #include <core/id/NamedAtomID.hh>
18
// AUTO-REMOVED #include <core/id/NamedStubID.hh>
19
//#include <core/chemical/ResidueType.hh>
20
21
#include <utility/exit.hh>
22
23
24
#include <basic/Tracer.hh>
25
26
// C++ headers
27
#include <ostream>
28
29
#include <utility/vector1.hh>
30
31
32
33
namespace
core {
34
namespace
id {
35
36
static
basic::Tracer
tr
(
"core.id.AtomID"
);
37
38
///
39
AtomID
const
&
40
BondID::other_atom
(
AtomID
const
&
id
)
const
41
{
42
if
(
id
==
atom1
)
return
atom2
;
43
else
if
(
id
==
atom2
)
return
atom1
;
44
else
utility_exit_with_message(
"BondID::other_atom: unknown atom"
);
45
return
atom1
;
// wont get here
46
}
47
48
/// @brief stream << AtomID
49
std::ostream &
50
operator <<
( std::ostream& os,
AtomID
const
& a )
51
{
52
os <<
" atomno= "
<< a.
atomno
() <<
" rsd= "
<< a.
rsd
() <<
' '
;
53
return
os;
54
}
55
56
/// @brief Globals
57
AtomID
const
BOGUS_ATOM_ID
( 0,0 );
58
AtomID
const
CHAINBREAK_BOGUS_ATOM_ID
( 0,0 );
59
StubID
const
BOGUS_STUB_ID
(
BOGUS_ATOM_ID
,
BOGUS_ATOM_ID
,
BOGUS_ATOM_ID
);
60
61
/// @brief stream << AtomID
62
std::ostream &
63
operator <<
( std::ostream& os,
StubID
const
& stub )
64
{
65
os <<
" Stub: a1 "
<< stub.
atom1
<<
" a2 "
<< stub.
atom2
<<
" a3 "
<< stub.
atom3
<<
" cen "
<< stub.
center_
;
66
return
os;
67
}
68
69
}
// namespace id
70
}
// namespace core
Generated on Sat Jun 1 2013 11:32:47 for Rosetta 3.5 by
1.8.4