Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ShapeComplementarityCalculator_Private.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 core/scoring/sc/ShapeComplementarityCalculator.hh
11 /// @brief Private headers for the Shape Complementarity Calculator
12 /// @author Luki Goldschmidt (luki@mbi.ucla.edu)
13 
14 #ifndef INCLUDED_core_scoring_sc_ShapeComplementarityCalculator_Private_hh
15 #define INCLUDED_core_scoring_sc_ShapeComplementarityCalculator_Private_hh
16 
17 #include <string>
18 #include <stdio.h>
19 #include <stdarg.h>
20 
21 namespace core {
22 namespace scoring {
23 namespace sc {
24 
25 ////////////////////////////////////////////////////////////
26 // Defs from sc source
27 
30  ATTEN_2 = 2,
32  ATTEN_6 = 6
33 };
34 
35 #define MAX_SUBDIV 100
36 
37 #if (!defined MIN)
38 #define MIN(a,b) ((a) < (b) ? (a): (b))
39 #define MAX(a,b) ((a) > (b) ? (a): (b))
40 #endif
41 
42 #define ABS(a) (((a) < 0) ? (-a) : (a))
43 
44 #define PI numeric::NumericTraits< core::Real >::pi()
45 
46 ////////////////////////////////////////////////////////////
47 
49 
50  public:
52 
54  va_list p;
55  char buf[256];
56  va_start(p, err);
57  vsnprintf(buf, sizeof(buf), err, p);
58  va_end(p);
59  error = buf;
60  }
61 };
62 
63 } //namespace sc
64 } //namespace filters
65 } //namespace protocols
66 
67 #endif