Limbo 3.5.4
Loading...
Searching...
No Matches
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
void test2 (string const &filename)
 test polygon-to-rectangle for std::list
void test3 (string const &filename)
 test polygon-to-rectangle for std::set
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

Detailed Description

Author
Yibo Lin
Date
Oct 2014

Definition in file test_boostpolygonapi.cpp.

Function Documentation

◆ main()

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.

◆ test1()

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.

◆ test2()

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.

◆ test3()

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.

◆ test4()

void test4 ( )

test polygon-to-rectangle for array of points

Definition at line 74 of file test_boostpolygonapi.cpp.