Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HBAtom.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/scoring/hbonds/hbtrie/HBAtom.hh
11 /// @brief
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 
14 // Unit Headers
16 
17 // Project Headers
18 #include <core/types.hh>
19 
20 // STL Headers
21 #include <iostream>
22 
23 // Numceric Headers
24 #include <numeric/xyzVector.hh>
25 
26 namespace core {
27 namespace scoring {
28 namespace hbonds {
29 namespace hbtrie {
30 
31 
33  xyz_(0,0,0),
34  base_xyz_(0,0,0),
35  base2_xyz_(0,0,0),
36  is_hydrogen_( false ),
37  is_backbone_( false ),
38  is_protein_( false ),
39  is_dna_( false ),
40  hb_chem_type_( 0 )
41  //,seqpos_( 0 )
42 {}
43 
45 
46 /// @brief send a description of the atom to standard out
47 void
48 HBAtom::print() const { print( std::cout ); }
49 
50 /// @brief send a description of the atom to an output stream
51 void
52 HBAtom::print( std::ostream & os ) const
53 {
54  os << "HBAtom" << " ";
55  os << "(" << xyz().x();
56  os << ", " << xyz().y();
57  os << ", " << xyz().z() << "), abase";
58  os << "(" << base_xyz().x();
59  os << ", " << base_xyz().y();
60  os << ", " << base_xyz().z() << "), abase2";
61  os << "(" << base2_xyz().x();
62  os << ", " << base2_xyz().y();
63  os << ", " << base2_xyz().z() << "), ";
64  os << hb_chem_type_ << ";";
65 }
66 
67 std::ostream & operator << ( std::ostream & os, HBAtom const & atom )
68 {
69  atom.print( os );
70  return os;
71 }
72 
73 } // namespace hbtrie
74 } // namespace hbonds
75 } // namespace scoring
76 } // namespace core
77