Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
test_boostpolygonapi.cpp File Reference
#include <iostream>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <boost/polygon/polygon.hpp>
#include <limbo/geometry/Polygon2Rectangle.h>
#include <limbo/geometry/api/BoostPolygonApi.h>
#include <limbo/geometry/api/GeoBoostPolygonApi.h>

Go to the source code of this file.

Functions

void test1 (string const &filename)
 test Boost.Polygon API More...
 
void test2 (string const &filename)
 test polygon-to-rectangle for std::list More...
 
void test3 (string const &filename)
 test polygon-to-rectangle for std::set More...
 
void test4 ()
 test polygon-to-rectangle for array of points
 
int main (int argc, char **argv)
 main function requires an input benchmark in gnuplot format More...
 

Detailed Description

Author
Yibo Lin
Date
Oct 2014

Definition in file test_boostpolygonapi.cpp.

Function Documentation

int main ( int  argc,
char **  argv 
)

main function requires an input benchmark in gnuplot format

Parameters
argcnumber of arguments
argvvalues of arguments
Returns
0

Definition at line 102 of file test_boostpolygonapi.cpp.

void test1 ( string const &  filename)

test Boost.Polygon API

use boost::polygon::point and boost::polygon::rectangle_data as data type for polygon-to-rectangle conversion test polygon-to-rectangle for std::vector

Parameters
filenameinput gnuplot file

Definition at line 36 of file test_boostpolygonapi.cpp.

void test2 ( string const &  filename)

test polygon-to-rectangle for std::list

Parameters
filenameinput gnuplot file

Definition at line 49 of file test_boostpolygonapi.cpp.

void test3 ( string const &  filename)

test polygon-to-rectangle for std::set

Parameters
filenameinput gnuplot file

Definition at line 62 of file test_boostpolygonapi.cpp.