1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2011 Sandro Santilli <strk@kbt.io>
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* - Monitor class sizes
*
**********************************************************************/
#include <geos/geom/GeometryFactory.h>
#include <geos/io/WKTReader.h>
#include <geos/geom/CoordinateSequence.h>
#include <geos/geom/Geometry.h>
#include <geos/geom/Point.h>
#include <geos/geom/LinearRing.h>
#include <geos/geom/LineString.h>
#include <geos/geom/Polygon.h>
#include <geos/geom/GeometryCollection.h>
#include <geos/geom/MultiPoint.h>
#include <geos/geom/MultiLineString.h>
#include <geos/geom/MultiPolygon.h>
#include <geos/geomgraph/Depth.h>
#include <geos/geomgraph/DirectedEdge.h>
#include <geos/geomgraph/Edge.h>
#include <geos/geomgraph/EdgeEnd.h>
#include <geos/geomgraph/PlanarGraph.h>
#include <geos/noding/NodedSegmentString.h>
#include <geos/noding/snapround/HotPixel.h>
#include <geos/profiler.h>
#include <geos/constants.h>
#include <iostream>
#include <geos/geomgraph/index/SweepLineEvent.h>
#include <geos/triangulate/quadedge/QuadEdge.h>
#include <geos/triangulate/quadedge/QuadEdgeQuartet.h>
#include <geos/triangulate/quadedge/Vertex.h>
#include <geos/operation/overlayng/Edge.h>
#include <geos/operation/overlayng/EdgeSourceInfo.h>
#include <geos/operation/overlayng/OverlayLabel.h>
using namespace geos;
#define check(x) \
{ std::cout << "Size of " << #x << " is " << sizeof(x) << std::endl; }
int
main()
{
check(geomgraph::Depth);
check(geomgraph::DirectedEdge);
check(geomgraph::DirectedEdgeStar);
check(geomgraph::Edge);
check(geomgraph::EdgeEnd);
check(geomgraph::PlanarGraph);
check(geomgraph::TopologyLocation);
check(geomgraph::index::SweepLineEvent);
check(noding::NodedSegmentString);
check(noding::snapround::HotPixel);
check(geom::Geometry);
check(geom::Point);
check(geom::LineString);
check(geom::LinearRing);
check(geom::Polygon);
check(geom::GeometryCollection);
check(geom::MultiPoint);
check(geom::MultiLineString);
check(geom::MultiPolygon);
check(geom::CoordinateSequence);
check(triangulate::quadedge::QuadEdge);
check(triangulate::quadedge::QuadEdgeQuartet);
check(triangulate::quadedge::Vertex);
check(operation::overlayng::Edge);
check(operation::overlayng::EdgeSourceInfo);
check(operation::overlayng::OverlayLabel);
check(int64_t);
}
|