From 5361d21beb1c8ad6c6e1816993fc853754fb7653 Mon Sep 17 00:00:00 2001 From: artemp Date: Wed, 7 Jan 2015 13:11:09 +0100 Subject: [PATCH] move mapnik::noncopyable to mapnik::util::noncopyable where it belongs --- bindings/python/python_optional.hpp | 8 ++++---- demo/viewer/styles_model.cpp | 4 ++-- include/mapnik/agg_pattern_source.hpp | 4 ++-- include/mapnik/agg_rasterizer.hpp | 4 ++-- include/mapnik/agg_renderer.hpp | 4 ++-- include/mapnik/attribute_collector.hpp | 6 +++--- include/mapnik/cairo/cairo_context.hpp | 12 ++++++------ include/mapnik/cairo/cairo_renderer.hpp | 4 ++-- include/mapnik/datasource.hpp | 4 ++-- include/mapnik/datasource_cache.hpp | 4 ++-- include/mapnik/debug.hpp | 8 ++++---- include/mapnik/evaluate_global_attributes.hpp | 4 ++-- include/mapnik/feature.hpp | 6 +++--- include/mapnik/featureset.hpp | 4 ++-- include/mapnik/font_engine_freetype.hpp | 4 ++-- include/mapnik/geometry.hpp | 4 ++-- include/mapnik/grid/grid_marker_helpers.hpp | 4 ++-- include/mapnik/grid/grid_rasterizer.hpp | 4 ++-- include/mapnik/grid/grid_renderer.hpp | 4 ++-- include/mapnik/hextree.hpp | 4 ++-- include/mapnik/image_reader.hpp | 4 ++-- include/mapnik/label_collision_detector.hpp | 8 ++++---- include/mapnik/mapped_memory_cache.hpp | 4 ++-- include/mapnik/marker.hpp | 4 ++-- include/mapnik/marker_cache.hpp | 4 ++-- include/mapnik/marker_helpers.hpp | 4 ++-- include/mapnik/markers_placement.hpp | 2 +- include/mapnik/markers_placements/point.hpp | 2 +- include/mapnik/octree.hpp | 4 ++-- include/mapnik/palette.hpp | 4 ++-- include/mapnik/plugin.hpp | 4 ++-- include/mapnik/pool.hpp | 4 ++-- include/mapnik/proj_transform.hpp | 4 ++-- include/mapnik/quad_tree.hpp | 4 ++-- include/mapnik/raster.hpp | 4 ++-- include/mapnik/renderer_common.hpp | 4 ++-- .../renderer_common/process_group_symbolizer.hpp | 8 ++++---- include/mapnik/rule_cache.hpp | 4 ++-- include/mapnik/simplify_converter.hpp | 4 ++-- include/mapnik/svg/output/svg_generator.hpp | 4 ++-- include/mapnik/svg/output/svg_renderer.hpp | 4 ++-- include/mapnik/svg/svg_converter.hpp | 4 ++-- include/mapnik/svg/svg_parser.hpp | 4 ++-- include/mapnik/svg/svg_path_adapter.hpp | 6 +++--- include/mapnik/svg/svg_renderer_agg.hpp | 4 ++-- include/mapnik/svg/svg_storage.hpp | 4 ++-- include/mapnik/text/face.hpp | 8 ++++---- include/mapnik/text/font_library.hpp | 4 ++-- include/mapnik/text/formatting/registry.hpp | 4 ++-- include/mapnik/text/glyph_info.hpp | 4 ++-- include/mapnik/text/itemizer.hpp | 6 +++--- include/mapnik/text/placement_finder.hpp | 4 ++-- include/mapnik/text/placements/base.hpp | 2 +- include/mapnik/text/placements/registry.hpp | 4 ++-- include/mapnik/text/renderer.hpp | 4 ++-- include/mapnik/text/text_line.hpp | 4 ++-- include/mapnik/text/text_properties.hpp | 4 ++-- include/mapnik/unicode.hpp | 4 ++-- include/mapnik/util/file_io.hpp | 4 ++-- include/mapnik/{ => util}/noncopyable.hpp | 10 +++++----- include/mapnik/vertex_cache.hpp | 6 +++--- include/mapnik/vertex_converters.hpp | 8 ++++---- include/mapnik/vertex_vector.hpp | 4 ++-- include/mapnik/wkb.hpp | 4 ++-- plugins/input/postgis/asyncresultset.hpp | 2 +- plugins/input/postgis/cursorresultset.hpp | 2 +- plugins/input/postgis/resultset.hpp | 2 +- plugins/input/shape/dbfile.hpp | 4 ++-- plugins/input/shape/shape_io.hpp | 4 ++-- plugins/input/shape/shapefile.hpp | 4 ++-- plugins/input/sqlite/sqlite_prepared.hpp | 4 ++-- src/agg/process_line_pattern_symbolizer.cpp | 2 +- src/cairo/process_markers_symbolizer.cpp | 6 +++--- src/expression_node.cpp | 6 +++--- src/libxml2_loader.cpp | 4 ++-- src/load_map.cpp | 4 ++-- src/rapidxml_loader.cpp | 4 ++-- src/text/text_layout.cpp | 2 +- src/wkb.cpp | 4 ++-- utils/pgsql2sqlite/sqlite.hpp | 6 +++--- 80 files changed, 179 insertions(+), 179 deletions(-) rename include/mapnik/{ => util}/noncopyable.hpp (89%) diff --git a/bindings/python/python_optional.hpp b/bindings/python/python_optional.hpp index d266fec49..91585c2ae 100644 --- a/bindings/python/python_optional.hpp +++ b/bindings/python/python_optional.hpp @@ -23,7 +23,7 @@ #include #include -#include +#include // boost::optional to/from converter from John Wiegley @@ -47,7 +47,7 @@ struct register_python_conversion }; template -struct python_optional : public mapnik::noncopyable +struct python_optional : public mapnik::util::noncopyable { struct optional_to_python { @@ -104,7 +104,7 @@ struct python_optional : public mapnik::noncopyable // to/from boost::optional template <> -struct python_optional : public mapnik::noncopyable +struct python_optional : public mapnik::util::noncopyable { struct optional_to_python { @@ -149,7 +149,7 @@ struct python_optional : public mapnik::noncopyable // to/from boost::optional template <> -struct python_optional : public mapnik::noncopyable +struct python_optional : public mapnik::util::noncopyable { struct optional_to_python { diff --git a/demo/viewer/styles_model.cpp b/demo/viewer/styles_model.cpp index abd3ed6a2..73f640f38 100644 --- a/demo/viewer/styles_model.cpp +++ b/demo/viewer/styles_model.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include @@ -35,7 +35,7 @@ #include #include -class node : private mapnik::noncopyable +class node : private util::noncopyable { struct node_base { diff --git a/include/mapnik/agg_pattern_source.hpp b/include/mapnik/agg_pattern_source.hpp index 95c8bbd3b..324dee630 100644 --- a/include/mapnik/agg_pattern_source.hpp +++ b/include/mapnik/agg_pattern_source.hpp @@ -25,7 +25,7 @@ // mapnik #include -#include +#include // agg #include "agg_color_rgba.h" @@ -33,7 +33,7 @@ namespace mapnik { -class pattern_source : private mapnik::noncopyable +class pattern_source : private util::noncopyable { public: pattern_source(image_data_rgba8 const& pattern, double opacity = 1.0) diff --git a/include/mapnik/agg_rasterizer.hpp b/include/mapnik/agg_rasterizer.hpp index 6ab08a3fa..0232f8858 100644 --- a/include/mapnik/agg_rasterizer.hpp +++ b/include/mapnik/agg_rasterizer.hpp @@ -24,14 +24,14 @@ #define MAPNIK_AGG_RASTERIZER_HPP // mapnik -#include +#include // agg #include "agg_rasterizer_scanline_aa.h" namespace mapnik { -struct rasterizer : agg::rasterizer_scanline_aa, mapnik::noncopyable {}; +struct rasterizer : agg::rasterizer_scanline_aa, util::noncopyable {}; } diff --git a/include/mapnik/agg_renderer.hpp b/include/mapnik/agg_renderer.hpp index 58b18b35d..7e50aea86 100644 --- a/include/mapnik/agg_renderer.hpp +++ b/include/mapnik/agg_renderer.hpp @@ -26,7 +26,7 @@ // mapnik #include // for MAPNIK_DECL #include -#include // for noncopyable +#include // for noncopyable #include // for rule, symbolizers #include // for box2d #include // for color @@ -60,7 +60,7 @@ namespace mapnik { template class MAPNIK_DECL agg_renderer : public feature_style_processor >, - private mapnik::noncopyable + private util::noncopyable { public: diff --git a/include/mapnik/attribute_collector.hpp b/include/mapnik/attribute_collector.hpp index e9946fb49..9f2e81573 100644 --- a/include/mapnik/attribute_collector.hpp +++ b/include/mapnik/attribute_collector.hpp @@ -25,7 +25,7 @@ // mapnik #include -#include +#include #include #include #include // for expression_ptr, etc @@ -92,7 +92,7 @@ private: Container& names_; }; -class group_attribute_collector : public mapnik::noncopyable +class group_attribute_collector : public util::noncopyable { private: std::set& names_; @@ -209,7 +209,7 @@ private: }; -class attribute_collector : public mapnik::noncopyable +class attribute_collector : public util::noncopyable { private: std::set & names_; diff --git a/include/mapnik/cairo/cairo_context.hpp b/include/mapnik/cairo/cairo_context.hpp index 3b2dd1995..022d04092 100644 --- a/include/mapnik/cairo/cairo_context.hpp +++ b/include/mapnik/cairo/cairo_context.hpp @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include #include @@ -75,7 +75,7 @@ void check_object_status_and_throw_exception(T const& object) check_status_and_throw_exception(object.get_status()); } -class cairo_face : private mapnik::noncopyable +class cairo_face : private util::noncopyable { public: cairo_face(std::shared_ptr const& library, face_ptr const& face); @@ -106,7 +106,7 @@ private: using cairo_face_ptr = std::shared_ptr; -class cairo_face_manager : private mapnik::noncopyable +class cairo_face_manager : private util::noncopyable { public: cairo_face_manager(std::shared_ptr library); @@ -118,7 +118,7 @@ private: cairo_face_cache cache_; }; -class cairo_pattern : private mapnik::noncopyable +class cairo_pattern : private util::noncopyable { public: explicit cairo_pattern(image_data_rgba8 const& data, double opacity = 1.0) @@ -192,7 +192,7 @@ private: }; -class cairo_gradient : private mapnik::noncopyable +class cairo_gradient : private util::noncopyable { public: cairo_gradient(mapnik::gradient const& grad, double opacity=1.0) @@ -276,7 +276,7 @@ inline cairo_ptr create_context(cairo_surface_ptr const& surface) return cairo_ptr(cairo_create(&*surface),cairo_closer()); } -class cairo_context : private mapnik::noncopyable +class cairo_context : private util::noncopyable { public: diff --git a/include/mapnik/cairo/cairo_renderer.hpp b/include/mapnik/cairo/cairo_renderer.hpp index a1f0b69f7..5aedba82f 100644 --- a/include/mapnik/cairo/cairo_renderer.hpp +++ b/include/mapnik/cairo/cairo_renderer.hpp @@ -28,7 +28,7 @@ // mapnik #include #include -#include +#include #include // for all symbolizers #include #include @@ -67,7 +67,7 @@ struct cairo_save_restore template class MAPNIK_DECL cairo_renderer : public feature_style_processor >, - private mapnik::noncopyable + private util::noncopyable { public: using processor_impl_type = cairo_renderer; diff --git a/include/mapnik/datasource.hpp b/include/mapnik/datasource.hpp index 9bfdaffbf..ae2524c06 100644 --- a/include/mapnik/datasource.hpp +++ b/include/mapnik/datasource.hpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include // boost @@ -63,7 +63,7 @@ private: std::string message_; }; -class MAPNIK_DECL datasource : private mapnik::noncopyable +class MAPNIK_DECL datasource : private util::noncopyable { public: enum datasource_t : std::uint8_t { diff --git a/include/mapnik/datasource_cache.hpp b/include/mapnik/datasource_cache.hpp index c745764b6..a4ff89c7d 100644 --- a/include/mapnik/datasource_cache.hpp +++ b/include/mapnik/datasource_cache.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include // stl #include @@ -42,7 +42,7 @@ class PluginInfo; class MAPNIK_DECL datasource_cache : public singleton, - private mapnik::noncopyable + private util::noncopyable { friend class CreateStatic; public: diff --git a/include/mapnik/debug.hpp b/include/mapnik/debug.hpp index 9842f835b..4e9609d90 100644 --- a/include/mapnik/debug.hpp +++ b/include/mapnik/debug.hpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include // std #include @@ -48,7 +48,7 @@ namespace mapnik { */ class MAPNIK_DECL logger : public singleton, - private mapnik::noncopyable + private util::noncopyable { public: enum severity_type @@ -184,7 +184,7 @@ namespace mapnik { class Ch = char, class Tr = std::char_traits, class A = std::allocator > - class base_log : public mapnik::noncopyable + class base_log : public util::noncopyable { public: using output_policy = OutputPolicy; @@ -254,7 +254,7 @@ namespace mapnik { class Ch = char, class Tr = std::char_traits, class A = std::allocator > - class base_log_always : public mapnik::noncopyable + class base_log_always : public util::noncopyable { public: using output_policy = OutputPolicy; diff --git a/include/mapnik/evaluate_global_attributes.hpp b/include/mapnik/evaluate_global_attributes.hpp index b7da878a5..63f0348a4 100644 --- a/include/mapnik/evaluate_global_attributes.hpp +++ b/include/mapnik/evaluate_global_attributes.hpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include @@ -271,7 +271,7 @@ std::tuple pre_evaluate_expression (expression_ptr const& expr) } } -struct evaluate_global_attributes : mapnik::noncopyable +struct evaluate_global_attributes : util::noncopyable { template struct evaluator diff --git a/include/mapnik/feature.hpp b/include/mapnik/feature.hpp index f356e8441..1baa2f594 100644 --- a/include/mapnik/feature.hpp +++ b/include/mapnik/feature.hpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include // stl #include @@ -49,7 +49,7 @@ class feature_impl; using raster_ptr = std::shared_ptr; template -class context : private mapnik::noncopyable +class context : private util::noncopyable { friend class feature_impl; @@ -90,7 +90,7 @@ using context_ptr = std::shared_ptr; static const value default_feature_value; -class MAPNIK_DECL feature_impl : private mapnik::noncopyable +class MAPNIK_DECL feature_impl : private util::noncopyable { friend class feature_kv_iterator; public: diff --git a/include/mapnik/featureset.hpp b/include/mapnik/featureset.hpp index 6a6841c8a..e23532a4f 100644 --- a/include/mapnik/featureset.hpp +++ b/include/mapnik/featureset.hpp @@ -25,7 +25,7 @@ // mapnik #include -#include +#include // boost #include @@ -35,7 +35,7 @@ namespace mapnik { class feature_impl; using feature_ptr = std::shared_ptr; -struct MAPNIK_DECL Featureset : private mapnik::noncopyable +struct MAPNIK_DECL Featureset : private util::noncopyable { virtual feature_ptr next() = 0; virtual ~Featureset() {} diff --git a/include/mapnik/font_engine_freetype.hpp b/include/mapnik/font_engine_freetype.hpp index 7b9d785f5..78dc055d5 100644 --- a/include/mapnik/font_engine_freetype.hpp +++ b/include/mapnik/font_engine_freetype.hpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include // stl #include @@ -100,7 +100,7 @@ private: static font_memory_cache_type global_memory_fonts_; }; -class MAPNIK_DECL face_manager : private mapnik::noncopyable +class MAPNIK_DECL face_manager : private util::noncopyable { using face_ptr_cache_type = std::map; diff --git a/include/mapnik/geometry.hpp b/include/mapnik/geometry.hpp index 2285b6d72..29ff13b12 100644 --- a/include/mapnik/geometry.hpp +++ b/include/mapnik/geometry.hpp @@ -26,12 +26,12 @@ // mapnik #include #include -#include +#include namespace mapnik { template class Container=vertex_vector> -class geometry : private mapnik::noncopyable +class geometry : private util::noncopyable { public: diff --git a/include/mapnik/grid/grid_marker_helpers.hpp b/include/mapnik/grid/grid_marker_helpers.hpp index 5f1e0e224..4a27f841a 100644 --- a/include/mapnik/grid/grid_marker_helpers.hpp +++ b/include/mapnik/grid/grid_marker_helpers.hpp @@ -42,7 +42,7 @@ namespace mapnik { template -struct raster_markers_rasterizer_dispatch_grid : mapnik::noncopyable +struct raster_markers_rasterizer_dispatch_grid : util::noncopyable { using pixfmt_type = typename RendererBase::pixfmt_type; using color_type = typename RendererBase::pixfmt_type::color_type; @@ -143,7 +143,7 @@ private: template -struct vector_markers_rasterizer_dispatch_grid : mapnik::noncopyable +struct vector_markers_rasterizer_dispatch_grid : util::noncopyable { using renderer_base = typename SvgRenderer::renderer_base ; using vertex_source_type = typename SvgRenderer::vertex_source_type ; diff --git a/include/mapnik/grid/grid_rasterizer.hpp b/include/mapnik/grid/grid_rasterizer.hpp index 985f1535f..cd7381384 100644 --- a/include/mapnik/grid/grid_rasterizer.hpp +++ b/include/mapnik/grid/grid_rasterizer.hpp @@ -23,12 +23,12 @@ #ifndef MAPNIK_GRID_RASTERIZER_HPP #define MAPNIK_GRID_RASTERIZER_HPP -#include +#include #include "agg_rasterizer_scanline_aa.h" namespace mapnik { -struct grid_rasterizer : agg::rasterizer_scanline_aa<>, mapnik::noncopyable {}; +struct grid_rasterizer : agg::rasterizer_scanline_aa<>, util::noncopyable {}; } diff --git a/include/mapnik/grid/grid_renderer.hpp b/include/mapnik/grid/grid_renderer.hpp index 2884dc0b6..500c95059 100644 --- a/include/mapnik/grid/grid_renderer.hpp +++ b/include/mapnik/grid/grid_renderer.hpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include // for rule, symbolizers #include // for box2d #include // for color @@ -59,7 +59,7 @@ namespace mapnik { template class MAPNIK_DECL grid_renderer : public feature_style_processor >, - private mapnik::noncopyable + private util::noncopyable { public: diff --git a/include/mapnik/hextree.hpp b/include/mapnik/hextree.hpp index 88da1e9c6..d9d3fe71b 100644 --- a/include/mapnik/hextree.hpp +++ b/include/mapnik/hextree.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include // stl #include @@ -52,7 +52,7 @@ struct RGBAPolicy }; template -class hextree : private mapnik::noncopyable +class hextree : private util::noncopyable { struct node { diff --git a/include/mapnik/image_reader.hpp b/include/mapnik/image_reader.hpp index edc6b022f..31a12f4f0 100644 --- a/include/mapnik/image_reader.hpp +++ b/include/mapnik/image_reader.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include #include #include // boost @@ -54,7 +54,7 @@ public: } }; -struct MAPNIK_DECL image_reader : private mapnik::noncopyable +struct MAPNIK_DECL image_reader : private util::noncopyable { virtual unsigned width() const = 0; virtual unsigned height() const = 0; diff --git a/include/mapnik/label_collision_detector.hpp b/include/mapnik/label_collision_detector.hpp index 621e0773b..a33747b90 100644 --- a/include/mapnik/label_collision_detector.hpp +++ b/include/mapnik/label_collision_detector.hpp @@ -25,7 +25,7 @@ // mapnik #include -#include +#include #include // icu @@ -63,7 +63,7 @@ private: }; // quad_tree based label collision detector -class label_collision_detector2 : mapnik::noncopyable +class label_collision_detector2 : util::noncopyable { using tree_t = quad_tree >; tree_t tree_; @@ -92,7 +92,7 @@ public: }; // quad_tree based label collision detector with seperate check/insert -class label_collision_detector3 : mapnik::noncopyable +class label_collision_detector3 : util::noncopyable { using tree_t = quad_tree< box2d >; tree_t tree_; @@ -126,7 +126,7 @@ public: //quad tree based label collision detector so labels dont appear within a given distance -class label_collision_detector4 : mapnik::noncopyable +class label_collision_detector4 : util::noncopyable { public: struct label diff --git a/include/mapnik/mapped_memory_cache.hpp b/include/mapnik/mapped_memory_cache.hpp index a1efda8a5..3673c15e0 100644 --- a/include/mapnik/mapped_memory_cache.hpp +++ b/include/mapnik/mapped_memory_cache.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include // boost #include @@ -42,7 +42,7 @@ using mapped_region_ptr = std::shared_ptr; class MAPNIK_DECL mapped_memory_cache : public singleton, - private mapnik::noncopyable + private util::noncopyable { friend class CreateStatic; std::unordered_map cache_; diff --git a/include/mapnik/marker.hpp b/include/mapnik/marker.hpp index abecaff71..63fe16c18 100644 --- a/include/mapnik/marker.hpp +++ b/include/mapnik/marker.hpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include // agg #include "agg_array.h" @@ -50,7 +50,7 @@ using image_ptr = std::shared_ptr; * A class to hold either vector or bitmap marker data. This allows these to be treated equally * in the image caches and most of the render paths. */ -class marker: private mapnik::noncopyable +class marker: private util::noncopyable { public: marker() diff --git a/include/mapnik/marker_cache.hpp b/include/mapnik/marker_cache.hpp index af480408f..34907cc80 100644 --- a/include/mapnik/marker_cache.hpp +++ b/include/mapnik/marker_cache.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include // boost #include @@ -43,7 +43,7 @@ using marker_ptr = std::shared_ptr; class MAPNIK_DECL marker_cache : public singleton , - private mapnik::noncopyable + private util::noncopyable { friend class CreateUsingNew; private: diff --git a/include/mapnik/marker_helpers.hpp b/include/mapnik/marker_helpers.hpp index 577547fdc..13e4ca054 100644 --- a/include/mapnik/marker_helpers.hpp +++ b/include/mapnik/marker_helpers.hpp @@ -69,7 +69,7 @@ struct clip_poly_tag; using svg_attribute_type = agg::pod_bvector; template -struct vector_markers_rasterizer_dispatch : mapnik::noncopyable +struct vector_markers_rasterizer_dispatch : util::noncopyable { using renderer_base = typename SvgRenderer::renderer_base ; using vertex_source_type = typename SvgRenderer::vertex_source_type ; @@ -157,7 +157,7 @@ private: }; template -struct raster_markers_rasterizer_dispatch : mapnik::noncopyable +struct raster_markers_rasterizer_dispatch : util::noncopyable { using BufferType = typename std::remove_reference::type>::type; using RasterizerType = typename std::tuple_element<1,RendererContext>::type; diff --git a/include/mapnik/markers_placement.hpp b/include/mapnik/markers_placement.hpp index 5b6964461..1472e6ea1 100644 --- a/include/mapnik/markers_placement.hpp +++ b/include/mapnik/markers_placement.hpp @@ -35,7 +35,7 @@ namespace mapnik { template -class markers_placement_finder : mapnik::noncopyable +class markers_placement_finder : util::noncopyable { public: using markers_placement = util::variant, diff --git a/include/mapnik/markers_placements/point.hpp b/include/mapnik/markers_placements/point.hpp index 52709b246..3ca1ce5c8 100644 --- a/include/mapnik/markers_placements/point.hpp +++ b/include/mapnik/markers_placements/point.hpp @@ -41,7 +41,7 @@ struct markers_placement_params }; template -class markers_point_placement : noncopyable +class markers_point_placement : util::noncopyable { public: markers_point_placement(Locator &locator, Detector &detector, markers_placement_params const& params) diff --git a/include/mapnik/octree.hpp b/include/mapnik/octree.hpp index acf2f804f..6119bd6cb 100644 --- a/include/mapnik/octree.hpp +++ b/include/mapnik/octree.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include // stl #include @@ -49,7 +49,7 @@ struct RGBPolicy }; template -class octree : private mapnik::noncopyable +class octree : private util::noncopyable { struct node { diff --git a/include/mapnik/palette.hpp b/include/mapnik/palette.hpp index 4decf7d1c..5dc3a4cdf 100644 --- a/include/mapnik/palette.hpp +++ b/include/mapnik/palette.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include #define USE_DENSE_HASH_MAP @@ -103,7 +103,7 @@ struct MAPNIK_DECL rgba }; -class MAPNIK_DECL rgba_palette : private mapnik::noncopyable { +class MAPNIK_DECL rgba_palette : private util::noncopyable { public: enum palette_type { PALETTE_RGBA = 0, PALETTE_RGB = 1, PALETTE_ACT = 2 }; diff --git a/include/mapnik/plugin.hpp b/include/mapnik/plugin.hpp index 89f8dd2f8..4be5f4ff3 100644 --- a/include/mapnik/plugin.hpp +++ b/include/mapnik/plugin.hpp @@ -24,7 +24,7 @@ #define MAPNIK_PLUGIN_HPP // mapnik -#include +#include // stl #include @@ -35,7 +35,7 @@ namespace mapnik // Opaque structure for handle using mapnik_lib_t = struct _mapnik_lib_t; -class PluginInfo : mapnik::noncopyable +class PluginInfo : util::noncopyable { public: using name_func = const char* (*) (); diff --git a/include/mapnik/pool.hpp b/include/mapnik/pool.hpp index be7c8b7b7..87580b262 100644 --- a/include/mapnik/pool.hpp +++ b/include/mapnik/pool.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include // boost #include @@ -41,7 +41,7 @@ namespace mapnik { template class Creator> -class Pool : private mapnik::noncopyable +class Pool : private util::noncopyable { using HolderType = std::shared_ptr; using ContType = std::deque; diff --git a/include/mapnik/proj_transform.hpp b/include/mapnik/proj_transform.hpp index d2cff3b13..aa32a1aa0 100644 --- a/include/mapnik/proj_transform.hpp +++ b/include/mapnik/proj_transform.hpp @@ -25,14 +25,14 @@ // mapnik #include -#include +#include namespace mapnik { class projection; template class box2d; -class MAPNIK_DECL proj_transform : private mapnik::noncopyable +class MAPNIK_DECL proj_transform : private util::noncopyable { public: proj_transform(projection const& source, diff --git a/include/mapnik/quad_tree.hpp b/include/mapnik/quad_tree.hpp index 8ba48a7bf..d8d405434 100644 --- a/include/mapnik/quad_tree.hpp +++ b/include/mapnik/quad_tree.hpp @@ -25,7 +25,7 @@ // mapnik #include -#include +#include // boost #pragma GCC diagnostic push @@ -41,7 +41,7 @@ namespace mapnik { template -class quad_tree : mapnik::noncopyable +class quad_tree : util::noncopyable { struct node { diff --git a/include/mapnik/raster.hpp b/include/mapnik/raster.hpp index 7adcf401b..8fafd27b2 100644 --- a/include/mapnik/raster.hpp +++ b/include/mapnik/raster.hpp @@ -26,14 +26,14 @@ // mapnik #include #include -#include +#include #include // boost #include namespace mapnik { -class raster : private mapnik::noncopyable +class raster : private util::noncopyable { public: box2d ext_; diff --git a/include/mapnik/renderer_common.hpp b/include/mapnik/renderer_common.hpp index c39472111..ab74956b2 100644 --- a/include/mapnik/renderer_common.hpp +++ b/include/mapnik/renderer_common.hpp @@ -28,7 +28,7 @@ #include // for box2d #include // for view_transform #include -#include +#include // fwd declarations to speed up compile namespace mapnik { @@ -40,7 +40,7 @@ namespace mapnik { namespace mapnik { -struct renderer_common : private mapnik::noncopyable +struct renderer_common : private util::noncopyable { renderer_common(Map const &m, attributes const& vars, unsigned offset_x, unsigned offset_y, unsigned width, unsigned height, double scale_factor); diff --git a/include/mapnik/renderer_common/process_group_symbolizer.hpp b/include/mapnik/renderer_common/process_group_symbolizer.hpp index b0463858d..418b397f1 100644 --- a/include/mapnik/renderer_common/process_group_symbolizer.hpp +++ b/include/mapnik/renderer_common/process_group_symbolizer.hpp @@ -38,7 +38,7 @@ #include #include #include -#include +#include // agg #include @@ -49,7 +49,7 @@ class proj_transform; struct glyph_info; class text_symbolizer_helper; -struct virtual_renderer_common : private mapnik::noncopyable +struct virtual_renderer_common : private util::noncopyable { virtual_renderer_common(renderer_common & common) : @@ -97,7 +97,7 @@ struct virtual_renderer_common : private mapnik::noncopyable // stores all the arguments necessary to re-render this point // symbolizer at a later time. -struct point_render_thunk : noncopyable +struct point_render_thunk : util::noncopyable { pixel_position pos_; marker_ptr marker_; @@ -118,7 +118,7 @@ struct point_render_thunk : noncopyable using helper_ptr = std::unique_ptr; -struct text_render_thunk : noncopyable +struct text_render_thunk : util::noncopyable { // helper is stored here in order // to keep in scope the text rendering structures diff --git a/include/mapnik/rule_cache.hpp b/include/mapnik/rule_cache.hpp index bb364c565..44a340659 100644 --- a/include/mapnik/rule_cache.hpp +++ b/include/mapnik/rule_cache.hpp @@ -25,7 +25,7 @@ // mapnik #include -#include +#include // stl #include @@ -34,7 +34,7 @@ namespace mapnik { -class rule_cache : private noncopyable +class rule_cache : private util::noncopyable { public: using rule_ptrs = std::vector; diff --git a/include/mapnik/simplify_converter.hpp b/include/mapnik/simplify_converter.hpp index c986890dc..cbc1fa7e3 100644 --- a/include/mapnik/simplify_converter.hpp +++ b/include/mapnik/simplify_converter.hpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include // stl #include @@ -19,7 +19,7 @@ namespace mapnik { -struct weighted_vertex : private mapnik::noncopyable +struct weighted_vertex : private util::noncopyable { vertex2d coord; double weight; diff --git a/include/mapnik/svg/output/svg_generator.hpp b/include/mapnik/svg/output/svg_generator.hpp index 902f16b59..8bf5d54d3 100644 --- a/include/mapnik/svg/output/svg_generator.hpp +++ b/include/mapnik/svg/output/svg_generator.hpp @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include @@ -42,7 +42,7 @@ namespace mapnik { namespace svg { * structure. */ template - class svg_generator : private mapnik::noncopyable + class svg_generator : private util::noncopyable { public: explicit svg_generator(OutputIterator& output_iterator); diff --git a/include/mapnik/svg/output/svg_renderer.hpp b/include/mapnik/svg/output/svg_renderer.hpp index d9f3de65d..43b3a77c2 100644 --- a/include/mapnik/svg/output/svg_renderer.hpp +++ b/include/mapnik/svg/output/svg_renderer.hpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include // for rule, symbolizers #include // for box2d #include // for color @@ -64,7 +64,7 @@ namespace mapnik // can target many other output destinations besides streams. template class MAPNIK_DECL svg_renderer : public feature_style_processor >, - private mapnik::noncopyable + private util::noncopyable { public: using processor_impl_type = svg_renderer; diff --git a/include/mapnik/svg/svg_converter.hpp b/include/mapnik/svg/svg_converter.hpp index 67095be57..14378b9b7 100644 --- a/include/mapnik/svg/svg_converter.hpp +++ b/include/mapnik/svg/svg_converter.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include // agg #include "agg_path_storage.h" @@ -44,7 +44,7 @@ namespace mapnik { namespace svg { template -class svg_converter : mapnik::noncopyable +class svg_converter : util::noncopyable { public: diff --git a/include/mapnik/svg/svg_parser.hpp b/include/mapnik/svg/svg_parser.hpp index 293952eec..5198bfd53 100644 --- a/include/mapnik/svg/svg_parser.hpp +++ b/include/mapnik/svg/svg_parser.hpp @@ -28,14 +28,14 @@ #include #include #include -#include +#include // stl #include namespace mapnik { namespace svg { - class svg_parser : private mapnik::noncopyable + class svg_parser : private util::noncopyable { public: explicit svg_parser(svg_converter_type & path); diff --git a/include/mapnik/svg/svg_path_adapter.hpp b/include/mapnik/svg/svg_path_adapter.hpp index 7381cb42b..72fa29a65 100644 --- a/include/mapnik/svg/svg_path_adapter.hpp +++ b/include/mapnik/svg/svg_path_adapter.hpp @@ -24,7 +24,7 @@ #define MAPNIK_SVG_PATH_ADAPTER_HPP // mapnik -#include +#include #include // agg #include "agg_math.h" @@ -40,7 +40,7 @@ namespace svg { using namespace agg; -template class path_adapter : mapnik::noncopyable +template class path_adapter : util::noncopyable { public: using container_type = VertexContainer ; @@ -838,7 +838,7 @@ void path_adapter::translate_all_paths(double dx, double dy) } -template class vertex_stl_adapter : mapnik::noncopyable +template class vertex_stl_adapter : util::noncopyable { public: diff --git a/include/mapnik/svg/svg_renderer_agg.hpp b/include/mapnik/svg/svg_renderer_agg.hpp index d09c02960..569f3fa35 100644 --- a/include/mapnik/svg/svg_renderer_agg.hpp +++ b/include/mapnik/svg/svg_renderer_agg.hpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #if defined(GRID_RENDERER) #include @@ -98,7 +98,7 @@ private: }; template -class svg_renderer_agg : mapnik::noncopyable +class svg_renderer_agg : util::noncopyable { public: using curved_type = agg::conv_curve ; diff --git a/include/mapnik/svg/svg_storage.hpp b/include/mapnik/svg/svg_storage.hpp index 14a1fcc4e..c3618b625 100644 --- a/include/mapnik/svg/svg_storage.hpp +++ b/include/mapnik/svg/svg_storage.hpp @@ -25,13 +25,13 @@ // mapnik #include -#include +#include namespace mapnik { namespace svg { template -class svg_storage : mapnik::noncopyable +class svg_storage : util::noncopyable { public: svg_storage() : diff --git a/include/mapnik/text/face.hpp b/include/mapnik/text/face.hpp index ed3517c27..31dd45aa2 100644 --- a/include/mapnik/text/face.hpp +++ b/include/mapnik/text/face.hpp @@ -25,7 +25,7 @@ //mapnik #include #include -#include +#include // freetype2 extern "C" @@ -44,7 +44,7 @@ extern "C" namespace mapnik { -class font_face : mapnik::noncopyable +class font_face : util::noncopyable { public: font_face(FT_Face face); @@ -77,7 +77,7 @@ private: using face_ptr = std::shared_ptr; -class MAPNIK_DECL font_face_set : private mapnik::noncopyable +class MAPNIK_DECL font_face_set : private util::noncopyable { public: using iterator = std::vector::iterator; @@ -97,7 +97,7 @@ using face_set_ptr = std::unique_ptr; // FT_Stroker wrapper -class stroker : mapnik::noncopyable +class stroker : util::noncopyable { public: explicit stroker(FT_Stroker s) diff --git a/include/mapnik/text/font_library.hpp b/include/mapnik/text/font_library.hpp index b31efe68c..fc5959a54 100644 --- a/include/mapnik/text/font_library.hpp +++ b/include/mapnik/text/font_library.hpp @@ -25,7 +25,7 @@ // mapnik #include -#include +#include // stl #include @@ -35,7 +35,7 @@ struct FT_MemoryRec_; namespace mapnik { -class MAPNIK_DECL font_library : public noncopyable +class MAPNIK_DECL font_library : public util::noncopyable { public: explicit font_library(); diff --git a/include/mapnik/text/formatting/registry.hpp b/include/mapnik/text/formatting/registry.hpp index 63d19d9f6..5ad22dd5a 100644 --- a/include/mapnik/text/formatting/registry.hpp +++ b/include/mapnik/text/formatting/registry.hpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include // stl #include @@ -40,7 +40,7 @@ namespace formatting using from_xml_function_ptr = node_ptr (*) (xml_node const&, fontset_map const&) ; class registry : public singleton, - private mapnik::noncopyable + private util::noncopyable { public: registry(); diff --git a/include/mapnik/text/glyph_info.hpp b/include/mapnik/text/glyph_info.hpp index ad9574d22..4b82ffb72 100644 --- a/include/mapnik/text/glyph_info.hpp +++ b/include/mapnik/text/glyph_info.hpp @@ -25,7 +25,7 @@ //mapnik #include #include -#include +#include #include #include @@ -36,7 +36,7 @@ namespace mapnik class font_face; using face_ptr = std::shared_ptr; -struct glyph_info : noncopyable +struct glyph_info : util::noncopyable { glyph_info(unsigned g_index, unsigned c_index, diff --git a/include/mapnik/text/itemizer.hpp b/include/mapnik/text/itemizer.hpp index 670bdbe11..0b28bc34d 100644 --- a/include/mapnik/text/itemizer.hpp +++ b/include/mapnik/text/itemizer.hpp @@ -26,7 +26,7 @@ //mapnik #include #include -#include +#include // stl #include @@ -41,7 +41,7 @@ namespace mapnik { -struct text_item : noncopyable +struct text_item : util::noncopyable { text_item(unsigned s, unsigned e, @@ -84,7 +84,7 @@ public: std::pair line(unsigned i) const; unsigned num_lines() const; private: - template struct run : noncopyable + template struct run : util::noncopyable { run(T const& data, unsigned start, unsigned end) : start(start), end(end), data(data) {} diff --git a/include/mapnik/text/placement_finder.hpp b/include/mapnik/text/placement_finder.hpp index d7e07fa5f..5069dc33f 100644 --- a/include/mapnik/text/placement_finder.hpp +++ b/include/mapnik/text/placement_finder.hpp @@ -29,7 +29,7 @@ #include #include #include -#include +#include namespace mapnik { @@ -42,7 +42,7 @@ class vertex_cache; class text_placement_info; struct glyph_info; -class placement_finder : mapnik::noncopyable +class placement_finder : util::noncopyable { public: placement_finder(feature_impl const& feature, diff --git a/include/mapnik/text/placements/base.hpp b/include/mapnik/text/placements/base.hpp index 631386d4b..06c6cce20 100644 --- a/include/mapnik/text/placements/base.hpp +++ b/include/mapnik/text/placements/base.hpp @@ -40,7 +40,7 @@ struct attribute; // This placement has first to be tested by placement_finder to verify it // can actually be used. -class MAPNIK_DECL text_placement_info : mapnik::noncopyable +class MAPNIK_DECL text_placement_info : util::noncopyable { public: // Constructor. Takes the parent text_placements object as a parameter diff --git a/include/mapnik/text/placements/registry.hpp b/include/mapnik/text/placements/registry.hpp index d5df4deec..eadfdb361 100644 --- a/include/mapnik/text/placements/registry.hpp +++ b/include/mapnik/text/placements/registry.hpp @@ -25,7 +25,7 @@ // mapnik #include #include -#include +#include // stl #include @@ -39,7 +39,7 @@ namespace placements using from_xml_function_ptr = text_placements_ptr (*) (xml_node const&, fontset_map const&, bool) ; class registry : public singleton, - private mapnik::noncopyable + private util::noncopyable { public: registry(); diff --git a/include/mapnik/text/renderer.hpp b/include/mapnik/text/renderer.hpp index a4c05acf7..ac8bcb45a 100644 --- a/include/mapnik/text/renderer.hpp +++ b/include/mapnik/text/renderer.hpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include // agg #include @@ -50,7 +50,7 @@ struct glyph_t : image(image_), properties(properties_) {} }; -class text_renderer : private mapnik::noncopyable +class text_renderer : private util::noncopyable { public: text_renderer (halo_rasterizer_e rasterizer, diff --git a/include/mapnik/text/text_line.hpp b/include/mapnik/text/text_line.hpp index 8c4538400..dd3cfee1c 100644 --- a/include/mapnik/text/text_line.hpp +++ b/include/mapnik/text/text_line.hpp @@ -24,7 +24,7 @@ //stl #include -#include +#include namespace mapnik { @@ -35,7 +35,7 @@ struct glyph_info; // It can be used for rendering but no text processing (like line breaking) // should be done! -class text_line : noncopyable +class text_line : util::noncopyable { public: using glyph_vector = std::vector; diff --git a/include/mapnik/text/text_properties.hpp b/include/mapnik/text/text_properties.hpp index 329d42fbe..90711a4e8 100644 --- a/include/mapnik/text/text_properties.hpp +++ b/include/mapnik/text/text_properties.hpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include // stl @@ -63,7 +63,7 @@ struct evaluated_format_properties font_feature_settings ff_settings; }; -struct evaluated_text_properties : noncopyable +struct evaluated_text_properties : util::noncopyable { label_placement_e label_placement; double label_spacing; diff --git a/include/mapnik/unicode.hpp b/include/mapnik/unicode.hpp index 4b2ca68f8..89526f5d4 100644 --- a/include/mapnik/unicode.hpp +++ b/include/mapnik/unicode.hpp @@ -25,7 +25,7 @@ //mapnik #include -#include +#include #include // std @@ -36,7 +36,7 @@ struct UConverter; namespace mapnik { -class MAPNIK_DECL transcoder : private mapnik::noncopyable +class MAPNIK_DECL transcoder : private util::noncopyable { public: explicit transcoder (std::string const& encoding); diff --git a/include/mapnik/util/file_io.hpp b/include/mapnik/util/file_io.hpp index d2823be61..6c6553340 100644 --- a/include/mapnik/util/file_io.hpp +++ b/include/mapnik/util/file_io.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include //#include // stl @@ -36,7 +36,7 @@ namespace mapnik { namespace util { -class file : public noncopyable +class file : public util::noncopyable { public: using file_ptr = std::unique_ptr; diff --git a/include/mapnik/noncopyable.hpp b/include/mapnik/util/noncopyable.hpp similarity index 89% rename from include/mapnik/noncopyable.hpp rename to include/mapnik/util/noncopyable.hpp index ac63f17c0..e80fb4eb2 100644 --- a/include/mapnik/noncopyable.hpp +++ b/include/mapnik/util/noncopyable.hpp @@ -20,10 +20,10 @@ * *****************************************************************************/ -#ifndef MAPNIK_NONCOPYABLE_HPP -#define MAPNIK_NONCOPYABLE_HPP +#ifndef MAPNIK_UTIL_NONCOPYABLE_HPP +#define MAPNIK_UTIL_NONCOPYABLE_HPP -namespace mapnik { +namespace mapnik { namespace util { namespace non_copyable_ { @@ -40,6 +40,6 @@ protected: using noncopyable = non_copyable_::noncopyable; -} // namespace mapnik +}} -#endif // MAPNIK_NONCOPYABLE_HPP +#endif // MAPNIK_UTIL_NONCOPYABLE_HPP diff --git a/include/mapnik/vertex_cache.hpp b/include/mapnik/vertex_cache.hpp index 7b4a5b9c9..e557d4b30 100644 --- a/include/mapnik/vertex_cache.hpp +++ b/include/mapnik/vertex_cache.hpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include // agg #include "agg_basics.h" @@ -43,7 +43,7 @@ class vertex_cache; using vertex_cache_ptr = std::unique_ptr; // Caches all path points and their lengths. Allows easy moving in both directions. -class MAPNIK_DECL vertex_cache : noncopyable +class MAPNIK_DECL vertex_cache : util::noncopyable { struct segment { @@ -81,7 +81,7 @@ public: pixel_position const& position() const { return current_position; } }; - class scoped_state : noncopyable + class scoped_state : util::noncopyable { public: scoped_state(vertex_cache &pp) : pp_(pp), state_(pp.save_state()), restored_(false) {} diff --git a/include/mapnik/vertex_converters.hpp b/include/mapnik/vertex_converters.hpp index c8810b95e..8207af6d0 100644 --- a/include/mapnik/vertex_converters.hpp +++ b/include/mapnik/vertex_converters.hpp @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include #include @@ -319,7 +319,7 @@ struct converters_helper }; template -struct dispatcher : mapnik::noncopyable +struct dispatcher : util::noncopyable { using this_type = dispatcher; using args_type = Args; @@ -337,7 +337,7 @@ struct dispatcher : mapnik::noncopyable }; template -struct arguments : mapnik::noncopyable +struct arguments : util::noncopyable { using processor_type = Processor; arguments(Processor & proc, box2d const& bbox, symbolizer_base const& sym, view_transform const& tr, @@ -367,7 +367,7 @@ struct arguments : mapnik::noncopyable } template -struct vertex_converter : private mapnik::noncopyable +struct vertex_converter : private util::noncopyable { using bbox_type = box2d; using processor_type = Processor; diff --git a/include/mapnik/vertex_vector.hpp b/include/mapnik/vertex_vector.hpp index 9aaca3544..a25afc22e 100644 --- a/include/mapnik/vertex_vector.hpp +++ b/include/mapnik/vertex_vector.hpp @@ -29,7 +29,7 @@ // mapnik #include -#include +#include // stl #include @@ -40,7 +40,7 @@ namespace mapnik { template -class vertex_vector : private mapnik::noncopyable +class vertex_vector : private util::noncopyable { using coord_type = T; enum block_e { diff --git a/include/mapnik/wkb.hpp b/include/mapnik/wkb.hpp index fb371477b..fe6a36b25 100644 --- a/include/mapnik/wkb.hpp +++ b/include/mapnik/wkb.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include namespace mapnik { @@ -49,7 +49,7 @@ enum wkbFormat : std::uint8_t wkbSpatiaLite=3 }; -class MAPNIK_DECL geometry_utils : private mapnik::noncopyable +class MAPNIK_DECL geometry_utils : private util::noncopyable { public: diff --git a/plugins/input/postgis/asyncresultset.hpp b/plugins/input/postgis/asyncresultset.hpp index 924365a6e..b1bc9126d 100644 --- a/plugins/input/postgis/asyncresultset.hpp +++ b/plugins/input/postgis/asyncresultset.hpp @@ -34,7 +34,7 @@ class postgis_processor_context; using postgis_processor_context_ptr = std::shared_ptr; -class AsyncResultSet : public IResultSet, private mapnik::noncopyable +class AsyncResultSet : public IResultSet, private mapnik::util::noncopyable { public: AsyncResultSet(postgis_processor_context_ptr const& ctx, diff --git a/plugins/input/postgis/cursorresultset.hpp b/plugins/input/postgis/cursorresultset.hpp index 6859c7c41..fa071b3a5 100644 --- a/plugins/input/postgis/cursorresultset.hpp +++ b/plugins/input/postgis/cursorresultset.hpp @@ -28,7 +28,7 @@ #include "connection.hpp" #include "resultset.hpp" -class CursorResultSet : public IResultSet, private mapnik::noncopyable +class CursorResultSet : public IResultSet, private mapnik::util::noncopyable { public: CursorResultSet(std::shared_ptr const &conn, std::string cursorName, int fetch_count) diff --git a/plugins/input/postgis/resultset.hpp b/plugins/input/postgis/resultset.hpp index 8becfd8ec..b93ce64dd 100644 --- a/plugins/input/postgis/resultset.hpp +++ b/plugins/input/postgis/resultset.hpp @@ -45,7 +45,7 @@ public: virtual const char* getValue(const char* name) const = 0; }; -class ResultSet : public IResultSet, private mapnik::noncopyable +class ResultSet : public IResultSet, private mapnik::util::noncopyable { public: ResultSet(PGresult *res) diff --git a/plugins/input/shape/dbfile.hpp b/plugins/input/shape/dbfile.hpp index d4846b547..75e77d323 100644 --- a/plugins/input/shape/dbfile.hpp +++ b/plugins/input/shape/dbfile.hpp @@ -25,7 +25,7 @@ // mapnik #include -#include +#include #include #ifdef SHAPE_MEMORY_MAPPED_FILE #include @@ -52,7 +52,7 @@ struct field_descriptor }; -class dbf_file : private mapnik::noncopyable +class dbf_file : private mapnik::util::noncopyable { private: int num_records_; diff --git a/plugins/input/shape/shape_io.hpp b/plugins/input/shape/shape_io.hpp index 396ac33d6..15797e9fb 100644 --- a/plugins/input/shape/shape_io.hpp +++ b/plugins/input/shape/shape_io.hpp @@ -26,7 +26,7 @@ // mapnik #include #include -#include +#include // boost #include @@ -37,7 +37,7 @@ #include "dbfile.hpp" #include "shapefile.hpp" -struct shape_io : mapnik::noncopyable +struct shape_io : mapnik::util::noncopyable { public: enum shapeType diff --git a/plugins/input/shape/shapefile.hpp b/plugins/input/shape/shapefile.hpp index 7b87718bb..c53d467b7 100644 --- a/plugins/input/shape/shapefile.hpp +++ b/plugins/input/shape/shapefile.hpp @@ -38,7 +38,7 @@ #include #include #endif -#include +#include using mapnik::box2d; using mapnik::read_int32_ndr; @@ -131,7 +131,7 @@ struct shape_record } }; -class shape_file : mapnik::noncopyable +class shape_file : mapnik::util::noncopyable { public: diff --git a/plugins/input/sqlite/sqlite_prepared.hpp b/plugins/input/sqlite/sqlite_prepared.hpp index ee84e6f0f..cf81842ab 100644 --- a/plugins/input/sqlite/sqlite_prepared.hpp +++ b/plugins/input/sqlite/sqlite_prepared.hpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include // boost #include @@ -43,7 +43,7 @@ extern "C" { #include } -class prepared_index_statement : mapnik::noncopyable +class prepared_index_statement : mapnik::util::noncopyable { public: diff --git a/src/agg/process_line_pattern_symbolizer.cpp b/src/agg/process_line_pattern_symbolizer.cpp index 7dd057495..110a52e2e 100644 --- a/src/agg/process_line_pattern_symbolizer.cpp +++ b/src/agg/process_line_pattern_symbolizer.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/cairo/process_markers_symbolizer.cpp b/src/cairo/process_markers_symbolizer.cpp index d434ba3ce..383e54ea8 100644 --- a/src/cairo/process_markers_symbolizer.cpp +++ b/src/cairo/process_markers_symbolizer.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include #include @@ -48,7 +48,7 @@ namespace svg { struct path_attributes; } namespace detail { template -struct markers_dispatch : mapnik::noncopyable +struct markers_dispatch : util::noncopyable { markers_dispatch(SvgPath & marker, Attributes const& attributes, @@ -122,7 +122,7 @@ struct markers_dispatch : mapnik::noncopyable }; template -struct raster_markers_dispatch : mapnik::noncopyable +struct raster_markers_dispatch : util::noncopyable { raster_markers_dispatch(mapnik::image_data_rgba8 & src, agg::trans_affine const& marker_trans, diff --git a/src/expression_node.cpp b/src/expression_node.cpp index e0e570a7f..3eef36057 100644 --- a/src/expression_node.cpp +++ b/src/expression_node.cpp @@ -22,7 +22,7 @@ #include #include -#include +#include #if defined(BOOST_REGEX_HAS_ICU) #include @@ -33,7 +33,7 @@ namespace mapnik { -struct _regex_match_impl : noncopyable { +struct _regex_match_impl : util::noncopyable { #if defined(BOOST_REGEX_HAS_ICU) _regex_match_impl(value_unicode_string const& ustr) : pattern_(boost::make_u32regex(ustr)) {} @@ -45,7 +45,7 @@ struct _regex_match_impl : noncopyable { #endif }; -struct _regex_replace_impl : noncopyable { +struct _regex_replace_impl : util::noncopyable { #if defined(BOOST_REGEX_HAS_ICU) _regex_replace_impl(value_unicode_string const& ustr, value_unicode_string const& f) : pattern_(boost::make_u32regex(ustr)), diff --git a/src/libxml2_loader.cpp b/src/libxml2_loader.cpp index 2bb24ad6c..70ca728e8 100644 --- a/src/libxml2_loader.cpp +++ b/src/libxml2_loader.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include // libxml @@ -43,7 +43,7 @@ namespace mapnik { -class libxml2_loader : mapnik::noncopyable +class libxml2_loader : util::noncopyable { public: libxml2_loader(const char *encoding = nullptr, int options = DEFAULT_OPTIONS, const char *url = nullptr) : diff --git a/src/load_map.cpp b/src/load_map.cpp index 338d8edbc..c2d7fa4a1 100644 --- a/src/load_map.cpp +++ b/src/load_map.cpp @@ -50,7 +50,7 @@ #include #include #include -#include +#include #include #include #include @@ -84,7 +84,7 @@ constexpr unsigned name2int(const char *str, int off = 0) return !str[off] ? 5381 : (name2int(str, off+1)*33) ^ str[off]; } -class map_parser : mapnik::noncopyable +class map_parser : util::noncopyable { public: map_parser(Map & map, bool strict, std::string const& filename = "") : diff --git a/src/rapidxml_loader.cpp b/src/rapidxml_loader.cpp index f3012cc9f..841fa9fd2 100644 --- a/src/rapidxml_loader.cpp +++ b/src/rapidxml_loader.cpp @@ -32,7 +32,7 @@ #include #include #include -#include +#include // stl #include @@ -42,7 +42,7 @@ namespace rapidxml = boost::property_tree::detail::rapidxml; namespace mapnik { -class rapidxml_loader : mapnik::noncopyable +class rapidxml_loader : util::noncopyable { public: rapidxml_loader() : diff --git a/src/text/text_layout.cpp b/src/text/text_layout.cpp index 4e73d9489..fbaebe958 100644 --- a/src/text/text_layout.cpp +++ b/src/text/text_layout.cpp @@ -303,7 +303,7 @@ void text_layout::break_line_icu(std::pair && line_limits) } } -struct line_breaker : mapnik::noncopyable +struct line_breaker : util::noncopyable { line_breaker(value_unicode_string const& ustr, char wrap_char) : ustr_(ustr), diff --git a/src/wkb.cpp b/src/wkb.cpp index e1ae0b707..8e7bf62d7 100644 --- a/src/wkb.cpp +++ b/src/wkb.cpp @@ -28,14 +28,14 @@ #include #include #include -#include +#include namespace mapnik { using CoordinateArray = coord_array; -struct wkb_reader : mapnik::noncopyable +struct wkb_reader : util::noncopyable { private: enum wkbByteOrder { diff --git a/utils/pgsql2sqlite/sqlite.hpp b/utils/pgsql2sqlite/sqlite.hpp index 64b5b6409..fcafe21f9 100644 --- a/utils/pgsql2sqlite/sqlite.hpp +++ b/utils/pgsql2sqlite/sqlite.hpp @@ -20,7 +20,7 @@ * *****************************************************************************/ -#include +#include #include // boost #include @@ -38,7 +38,7 @@ namespace mapnik { namespace sqlite { - class database : private mapnik::noncopyable + class database : private util::noncopyable { friend class prepared_statement; @@ -75,7 +75,7 @@ namespace mapnik { namespace sqlite { using value_type = mapnik::util::variant; using record_type = std::vector; - class prepared_statement : mapnik::noncopyable + class prepared_statement : util::noncopyable { struct binder {