Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SinXOverX.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 src/core/scoring/saxs/SAXSEnergyCreatorFA.hh
11 /// @brief Declaration for the class that connects SAXSEnergyCreator with the ScoringManager
12 /// @author Dominik Gront dgront@chem.uw.edu.pl
13 
14 #ifndef INCLUDED_core_scoring_saxs_SinXOverX_hh
15 #define INCLUDED_core_scoring_saxs_SinXOverX_hh
16 
17 #include <core/types.hh>
18 #include <utility/vector1.hh>
19 
20 
21 namespace core {
22 namespace scoring {
23 namespace saxs {
24 
25 class SinXOverX {
26 public:
27 
28  static SinXOverX* get_instance() {
29 
30  if(!instance_) instance_ = new SinXOverX();
31  return instance_;
32  }
33 
35 
36  core::Size tmp_i = ((Size) (x * 100) + 1);
37  return sin_x_over_x_[tmp_i];
38  }
39 
40 private:
43  SinXOverX();
45 };
46 
47 }
48 }
49 }
50 
51 #endif