iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PrecompiledHeaders.H
Go to the documentation of this file.
1 /*! @file
2  @author Unknown
3  @copyright GNU Public License (GPL v3)
4  @section License
5  @verbatim
6  // ////////////////////////////////////////////////////////////////////////
7  // The iLab Neuromorphic Robotics Toolkit (NRT) //
8  // Copyright 2010-2012 by the University of Southern California (USC) //
9  // and the iLab at USC. //
10  // //
11  // iLab - University of Southern California //
12  // Hedco Neurociences Building, Room HNB-10 //
13  // Los Angeles, Ca 90089-2520 - USA //
14  // //
15  // See http://ilab.usc.edu for information about this project. //
16  // ////////////////////////////////////////////////////////////////////////
17  // This file is part of The iLab Neuromorphic Robotics Toolkit. //
18  // //
19  // The iLab Neuromorphic Robotics Toolkit is free software: you can //
20  // redistribute it and/or modify it under the terms of the GNU General //
21  // Public License as published by the Free Software Foundation, either //
22  // version 3 of the License, or (at your option) any later version. //
23  // //
24  // The iLab Neuromorphic Robotics Toolkit is distributed in the hope //
25  // that it will be useful, but WITHOUT ANY WARRANTY; without even the //
26  // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR //
27  // PURPOSE. See the GNU General Public License for more details. //
28  // //
29  // You should have received a copy of the GNU General Public License //
30  // along with The iLab Neuromorphic Robotics Toolkit. If not, see //
31  // <http://www.gnu.org/licenses/>. //
32  // ////////////////////////////////////////////////////////////////////////
33  @endverbatim */
34 #ifndef INCLUDE_NRT_PRECOMPILEDHEADERS_H
35 #define INCLUDE_NRT_PRECOMPILEDHEADERS_H
36 
37 // Make sure that "config.h" gets included here, since some of the definitions there will cause conditional compilation
38 // of various things that will appear in the C and C++ std library headers that we include below
39 #include <nrt/config.h>
40 
41 // Check for __cplusplus here so that we can use a single -include c++stdlib.h command-line option that will work for
42 // compilations of both C and C++ source files
43 #ifdef __cplusplus
44 
45 #include <cstddef>
46 #include <algorithm>
47 #include <deque>
48 #include <iostream>
49 #include <sstream>
50 #include <list>
51 #include <map>
52 #include <string>
53 #include <vector>
54 #include <queue>
55 #include <set>
56 #include <stack>
57 #include <chrono>
58 
59 #ifdef NRT_HAVE_EIGEN3
60 
61 // Start with this one, here we hack the core of Eigen to make Eigen::MatrixBase serializable:
62 #include <nrt/Eigen/Eigen.H>
63 
64 // Bring in all actually used Eigen headers. This list was obtained by doing:
65 // grep Eigen/ `./scripts/list-sources.sh`|awk '{ print "#include " $2 }'|sort|uniq
66 // and a bit of manual cleanup.
67 
68 #include <Eigen/Cholesky>
69 #include <Eigen/Core>
70 #include <Eigen/Dense>
71 #include <Eigen/Eigenvalues>
72 #include <Eigen/Geometry>
73 #include <Eigen/StdVector>
74 #include <Eigen/SVD>
75 
76 #endif // INCLUDE_NRT_PRECOMPILEDHEADERS_H
77 
78 // Bring in all actually used boost headers. This list was obtained by doing:
79 // grep boost/ `./scripts/list-sources.sh`|awk '{ print "#include " $2 }'|sort|uniq
80 // Exception: boost test facility relies on some variables being #define'd or not before we include the headers, so
81 // exclude <boost/test/unit_test.hpp> (and related) from our precompiled headers.
82 
83 // boost versions < 1.46 use version 2 by default, >= 1.46 use version 3 by default, 1.48 will not include vers 2
84 #define BOOST_FILESYSTEM_VERSION 3
85 
86 #include <boost/algorithm/string/case_conv.hpp>
87 #include <boost/algorithm/string/classification.hpp>
88 #include <boost/algorithm/string.hpp>
89 #include <boost/algorithm/string/regex.hpp>
90 #include <boost/algorithm/string/split.hpp>
91 #include <boost/cstdint.hpp>
92 #include <boost/filesystem.hpp>
93 #include <boost/iterator/iterator_facade.hpp>
94 #include <boost/lexical_cast.hpp>
95 #include <boost/math/special_functions/round.hpp>
96 #include <boost/mpl/bool.hpp>
97 #include <boost/mpl/list.hpp>
98 #include <boost/numeric/conversion/bounds.hpp>
99 #include <boost/numeric/conversion/conversion_traits.hpp>
100 #include <boost/numeric/conversion/is_subranged.hpp>
101 #include <boost/pool/singleton_pool.hpp>
102 #include <boost/preprocessor/seq/enum.hpp>
103 #include <boost/preprocessor/seq/transform.hpp>
104 #include <boost/random.hpp>
105 #include <boost/regex.hpp>
106 #include <boost/scoped_ptr.hpp>
107 
108 //#include <boost/test/unit_test.hpp> // behavior depends on external #define'd variables
109 
110 #include <boost/thread.hpp>
111 #include <boost/thread/once.hpp>
112 #include <boost/tokenizer.hpp>
113 #include <boost/type_traits.hpp>
114 #include <boost/utility.hpp>
115 
116 #endif // __cplusplus
117 
118 #endif // NRT_CXXSTDLIB_H