Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
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
30
typedef
platform::Size
Size
;
31
typedef
platform::SSize
SSize
;
32
typedef
platform::uint
uint
;
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
39
typedef
platform::Real
Real
;
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
;
53
typedef
Real
LengthSquared
;
54
typedef
Real
Distance
;
55
typedef
Real
DistanceSquared
;
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
;
62
typedef
Real
EnergyDerivative
;
63
64
// Double precision slows the packer considerably
65
typedef
float
PackerEnergy
;
66
67
// Floating point arrays
68
typedef
numeric::xyzVector< Length >
PointPosition
;
69
typedef
numeric::xyzVector< Length >
Vector
;
70
typedef
numeric::xyzVector< EnergyDerivative >
EnergyGradient
;
71
}
// namespace core
72
73
#endif // INCLUDED_core_types_HH
Generated on Sat Jun 1 2013 11:31:41 for Rosetta 3.5 by
1.8.4