Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
types.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/types.hh
11 /// @brief rosetta project type declarations
12 /// @author Stuart G. Mentzer (Stuart_Mentzer@objexx.com)
13 /// @author Christopher Miles (cmiles@uw.edu)
14 
15 #ifndef INCLUDED_core_types_hh
16 #define INCLUDED_core_types_hh
17 
18 // Numeric headers
19 #include <numeric/xyzVector.fwd.hh>
20 
21 // Platform headers
22 #include <platform/types.hh>
23 
24 // C++ headers
25 #include <cstddef>
26 #include <limits>
27 
28 namespace core {
29  // Integer scalars
33 
34  // Minimum and maximum values of integer scalar type
35  static const Size SZ_MIN = std::numeric_limits<Size>::min();
36  static const Size SZ_MAX = std::numeric_limits<Size>::max();
37 
38 #ifndef WIN32
40 #else
41  // Floating point precision control scalar
42  #ifdef ROSETTA_FLOAT // Real == float
43  typedef float Real;
44  #else // Real == double
45  typedef double Real;
46  #endif
47 #endif
48 
49  typedef unsigned short ShortSize; // used in the conformation::Atom
50 
51  // Floating point scalars
52  typedef Real Length;
54  typedef Real Distance;
56  typedef Real Volume;
57  typedef Real Angle;
58  typedef Real Trig; // Trigonometric values of angles
59  typedef Real Mass;
60  typedef Real Charge;
61  typedef Real Energy;
63 
64  // Double precision slows the packer considerably
65  typedef float PackerEnergy;
66 
67  // Floating point arrays
71 } // namespace core
72 
73 #endif // INCLUDED_core_types_HH