Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
spatial.hpp
1 // -*- C++ -*-
2 //
3 // Copyright Sylvain Bougerel 2009 - 2013.
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file COPYING or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 
14 #ifndef SPATIAL_HPP
15 #define SPATIAL_HPP
16 
26 #define SPATIAL_VERSION_MAJOR 2
28 #define SPATIAL_VERSION_MINOR 1
29 #define SPATIAL_VERSION_RELEASE 8
30 #define SPATIAL_VERSION 20108
33 
35 // For compatibility with older environments
36 #ifdef SPATIAL_BAD_CSTDDEF
37 #include <stddef.h>
38 namespace std
39 {
40  using ::size_t;
41  using ::ptrdiff_t;
42 }
43 #else
44 #include <cstddef>
45 #endif
46 
59 namespace spatial
60 {
61 
66  typedef std::size_t size_type;
67 
71  typedef std::size_t dimension_type;
72 
76  typedef std::size_t weight_type;
77 
81  typedef
82  enum { below = -1, matching = 0, above = 1 }
84 
97  struct llhh_layout_tag { };
98 
112  struct lhlh_layout_tag { };
113 
126  struct hhll_layout_tag { };
127 
141  struct hlhl_layout_tag { };
142 
158 }
159 
160 #endif // SPATIAL_HPP
const hhll_layout_tag hhll_layout
This constant is used to declare a type layout tag, which is required by the overlap and enclosed reg...
Definition: spatial.hpp:155
const hlhl_layout_tag hlhl_layout
This constant is used to declare a type layout tag, which is required by the overlap and enclosed reg...
Definition: spatial.hpp:156
const llhh_layout_tag llhh_layout
This constant is used to declare a type layout tag, which is required by the overlap and enclosed reg...
Definition: spatial.hpp:153
Represents a coordinate layout for the box.
Definition: spatial.hpp:126
STL namespace.
const lhlh_layout_tag lhlh_layout
This constant is used to declare a type layout tag, which is required by the overlap and enclosed reg...
Definition: spatial.hpp:154
Represents a coordinate layout for the box.
Definition: spatial.hpp:97
std::size_t size_type
Defines a positive integral type for counting objects or storing absolute values. ...
Definition: spatial.hpp:66
std::size_t weight_type
Defines weight as being a size.
Definition: spatial.hpp:76
relative_order
Defines values for relative ordering.
Definition: spatial.hpp:81
std::size_t dimension_type
Defines the type for the dimension as being a size.
Definition: spatial.hpp:71
Represents a coordinate layout for the box.
Definition: spatial.hpp:112
The main namespace used in the library.
Definition: algorithm.hpp:23
Represents a coordinate layout for the box.
Definition: spatial.hpp:141