BWAPI
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ > Class Template Reference

#include <Arr_lm_random_generator.h>

Inheritance diagram for Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >:
Inheritance graph
[legend]
Collaboration diagram for Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Arrangement_ Arrangement_2
typedef
Arrangement_2::Geometry_traits_2 
Geometry_traits_2
typedef Nearest_neighbor_ Nearest_neighbor
typedef
Arr_landmarks_generator_base
< Arrangement_2,
Nearest_neighbor
Base
typedef
Arr_random_landmarks_generator
< Arrangement_2,
Nearest_neighbor
Self
typedef Arrangement_2::Point_2 Point_2
typedef Base::Points_set Points_set
typedef
Arrangement_2::Vertex_const_iterator 
Vertex_const_iterator

Public Member Functions

 Arr_random_landmarks_generator (const Arrangement_2 &arr, unsigned int n_landmarks=0)

Protected Member Functions

virtual void _create_points_set (Points_set &points)

Protected Attributes

unsigned int num_landmarks

Detailed Description

template<class Arrangement_, class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
class Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >

A generator for the landmarks point-locatoion class, which uses a random set of points as its set of landmarks.


Member Typedef Documentation

template<class Arrangement_ , class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
typedef Arrangement_ Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >::Arrangement_2
template<class Arrangement_ , class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
typedef Arr_landmarks_generator_base<Arrangement_2, Nearest_neighbor> Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >::Base
template<class Arrangement_ , class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
typedef Arrangement_2::Geometry_traits_2 Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >::Geometry_traits_2
template<class Arrangement_ , class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
typedef Nearest_neighbor_ Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >::Nearest_neighbor
template<class Arrangement_ , class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
typedef Arrangement_2::Point_2 Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >::Point_2
template<class Arrangement_ , class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
typedef Base::Points_set Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >::Points_set
template<class Arrangement_ , class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
typedef Arr_random_landmarks_generator<Arrangement_2, Nearest_neighbor> Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >::Self
template<class Arrangement_ , class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
typedef Arrangement_2::Vertex_const_iterator Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >::Vertex_const_iterator

Constructor & Destructor Documentation

template<class Arrangement_ , class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >::Arr_random_landmarks_generator ( const Arrangement_2 arr,
unsigned int  n_landmarks = 0 
) [inline]

Constructor.

Here is the call graph for this function:


Member Function Documentation

template<class Arrangement_ , class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
virtual void Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >::_create_points_set ( Points_set points) [inline, protected, virtual]

Create a set of random points (the number of points is given as a parameter to the constructor, or is taken from the arrangement size). The coordinates of the landmarks are selected randomly in the bounding rectangle of the Arrangement's vertices

Implements Arr_landmarks_generator_base< Arrangement_, Nearest_neighbor_ >.

Here is the call graph for this function:


Member Data Documentation

template<class Arrangement_ , class Nearest_neighbor_ = Arr_landmarks_nearest_neighbor<typename Arrangement_::Geometry_traits_2>>
unsigned int Arr_random_landmarks_generator< Arrangement_, Nearest_neighbor_ >::num_landmarks [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines