Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MMEnergyTableAtom.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 // This file is made available under the Rosetta Commons license.
5 // See http://www.rosettacommons.org/license
6 // (C) 199x-2007 University of Washington
7 // (C) 199x-2007 University of California Santa Cruz
8 // (C) 199x-2007 University of California San Francisco
9 // (C) 199x-2007 Johns Hopkins University
10 // (C) 199x-2007 University of North Carolina, Chapel Hill
11 // (C) 199x-2007 Vanderbilt University
12 
13 /// @file core/scoring/mm/mmtrie/MMEnergyTableAtom.cc
14 /// @brief Implimentation for the MMEnergyTableAtom. Heavily coppied from the EtableAtom.cc
15 /// @author P. Douglas Renfrew (renfrew@unc.edu)
16 
17 // Unit Headers
19 
20 // Project Headers
23 #include <core/types.hh>
24 
25 // STL Headers
26 #include <iostream>
27 
28 // Numceric Headers
29 #include <numeric/xyzVector.hh>
30 
31 #include <utility/vector1.hh>
32 
33 
34 namespace core {
35 namespace scoring {
36 namespace mm {
37 namespace mmtrie {
38 
39 
40 MMEnergyTableAtom::MMEnergyTableAtom() : parent(), is_hydrogen_( false ) {}
41 
43 :
44  parent( res.atom( atom_index ) ),
45  is_hydrogen_( false )
46 {}
47 
49 
50 /// @brief send a description of the atom to standard out
51 void
52 MMEnergyTableAtom::print() const { print( std::cout ); }
53 
54 /// @brief send a description of the atom to an output stream
55 void
56 MMEnergyTableAtom::print( std::ostream & os ) const
57 {
58  os << "mm atom type" << mm_type() << " ";
59  os << "(" << xyz().x();
60  os << ", " << xyz().y();
61  os << ", " << xyz().z() << ")" << std::endl;
62 }
63 
64 std::ostream & operator << ( std::ostream & os, MMEnergyTableAtom const & atom )
65 {
66  atom.print( os );
67  return os;
68 }
69 
70 } // namespace mmtrie
71 } // namespace mm
72 } // namespace scoring
73 } // namespace core
74