NuPIC Core
Core algorithms for NuPIC(the Numenta Platform for Intelligent Computing), implemented in C++
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Friends Pages
types.hpp
Go to the documentation of this file.
1 /* ---------------------------------------------------------------------
2  * Numenta Platform for Intelligent Computing (NuPIC)
3  * Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
4  * with Numenta, Inc., for a separate license for this software code, the
5  * following terms and conditions apply:
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 3 as
9  * published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see http://www.gnu.org/licenses.
18  *
19  * http://numenta.org/licenses/
20  * ---------------------------------------------------------------------
21  */
22 
27 #ifndef NTA_TYPES_HPP
28 #define NTA_TYPES_HPP
29 
30 #include <nta/types/types.h>
31 
32 //----------------------------------------------------------------------
33 
34 namespace nta
35 {
36  // Basic types
38  typedef NTA_Byte Byte;
40  typedef NTA_Int16 Int16;
42  typedef NTA_UInt16 UInt16;
44  typedef NTA_Int32 Int32;
46  typedef NTA_UInt32 UInt32;
48  typedef NTA_Int64 Int64;
50  typedef NTA_UInt64 UInt64;
52  typedef NTA_Real32 Real32;
54  typedef NTA_Real64 Real64;
56  typedef NTA_Handle Handle;
57 
58  // Flexible types (depending on NTA_DOUBLE_PROCESION and NTA_BIG_INTEGER)
60  typedef NTA_Real Real;
62  typedef NTA_Int Int;
64  typedef NTA_UInt UInt;
65 
67  typedef NTA_Size Size;
68 
70  enum LogLevel
71  {
72  LogLevel_None = NTA_LogLevel_None,
73  LogLevel_Minimal,
74  LogLevel_Normal,
75  LogLevel_Verbose,
76  };
77 
78 } // end namespace nta
79 
80 #ifdef SWIG
81 #undef NTA_INTERNAL
82 #endif // SWIG
83 
84 #endif // NTA_TYPES_HPP
85 
86 
87 
qmi style