Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EtableAtom.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/etable/etrie/EtableAtom.hh
11 /// @brief
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 
14 // Unit Headers
16 
17 // Project Headers
20 #include <core/types.hh>
21 
22 // STL Headers
23 #include <iostream>
24 
25 // Numceric Headers
26 #include <numeric/xyzVector.hh>
27 
28 #include <utility/vector1.hh>
29 
30 
31 namespace core {
32 namespace scoring {
33 namespace etable {
34 namespace etrie {
35 
36 
37 EtableAtom::EtableAtom() : parent(), is_hydrogen_( false ) {}
38 
40 :
41  parent( res.atom( atom_index ) ),
42  is_hydrogen_( false )
43 {}
44 
46 
47 /// @brief send a description of the atom to standard out
48 void
49 EtableAtom::print() const { print( std::cout ); }
50 
51 /// @brief send a description of the atom to an output stream
52 void
53 EtableAtom::print( std::ostream & os ) const
54 {
55  os << "atom type" << type() << " ";
56  os << "(" << xyz().x();
57  os << ", " << xyz().y();
58  os << ", " << xyz().z() << ")" << std::endl;
59 }
60 
61 std::ostream & operator << ( std::ostream & os, EtableAtom const & atom )
62 {
63  atom.print( os );
64  return os;
65 }
66 
67 } // namespace etrie
68 } // namespace etable
69 } // namespace scoring
70 } // namespace core
71