/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2011 Sandro Santilli * * 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 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace geos; #define check(x) \ { cout << "Size of " << #x << " is " << sizeof(x) << 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(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::CoordinateArraySequence); check(geom::FixedSizeCoordinateSequence<1>); check(geom::FixedSizeCoordinateSequence<2>); check(int64); }