~ubuntu-branches/ubuntu/saucy/merkaartor/saucy

« back to all changes in this revision

Viewing changes to include/builtin-ggl/ggl/multi/core/is_multi.hpp

Tags: upstream-0.15.3+svn20934
ImportĀ upstreamĀ versionĀ 0.15.3+svn20934

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Generic Geometry Library
 
2
//
 
3
// Copyright Barend Gehrels 1995-2009, Geodan Holding B.V. Amsterdam, the Netherlands.
 
4
// Copyright Bruno Lalande 2008, 2009
 
5
// Use, modification and distribution is subject to the Boost Software License,
 
6
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
 
7
// http://www.boost.org/LICENSE_1_0.txt)
 
8
 
 
9
 
 
10
#ifndef GGL_MULTI_CORE_IS_MULTI_HPP
 
11
#define GGL_MULTI_CORE_IS_MULTI_HPP
 
12
 
 
13
 
 
14
#include <boost/type_traits.hpp>
 
15
 
 
16
 
 
17
#include <ggl/core/is_multi.hpp>
 
18
#include <ggl/multi/core/tags.hpp>
 
19
 
 
20
 
 
21
namespace ggl {
 
22
 
 
23
 
 
24
#ifndef DOXYGEN_NO_DISPATCH
 
25
namespace core_dispatch
 
26
{
 
27
 
 
28
template <>
 
29
struct is_multi<multi_point_tag> : boost::true_type {};
 
30
 
 
31
 
 
32
template <>
 
33
struct is_multi<multi_linestring_tag> : boost::true_type {};
 
34
 
 
35
 
 
36
template <>
 
37
struct is_multi<multi_polygon_tag> : boost::true_type {};
 
38
 
 
39
 
 
40
} // namespace core_dispatch
 
41
#endif
 
42
 
 
43
 
 
44
 
 
45
 
 
46
} // namespace ggl
 
47
 
 
48
 
 
49
#endif // GGL_MULTI_CORE_IS_MULTI_HPP