BWAPI
Public Types | Public Member Functions
Arr_face_index_map< Arrangement_ > Class Template Reference

#include <Arr_face_map.h>

Inheritance diagram for Arr_face_index_map< Arrangement_ >:
Inheritance graph
[legend]
Collaboration diagram for Arr_face_index_map< Arrangement_ >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Arrangement_ Arrangement_2
typedef Arrangement_2::Face_handle Face_handle
typedef
boost::readable_property_map_tag 
category
typedef unsigned int value_type
typedef value_type reference
typedef Face_handle key_type

Public Member Functions

 Arr_face_index_map ()
 Arr_face_index_map (const Arrangement_2 &arr)
 Arr_face_index_map (const Self &other)
Selfoperator= (const Self &other)
unsigned int operator[] (Face_handle f) const
Face_handle face (const int i) const
Notification functions, to keep the mapping up-to-date.
virtual void after_assign ()
virtual void after_clear ()
virtual void after_attach ()
virtual void after_detach ()
virtual void after_split_face (Face_handle, Face_handle new_f, bool)
virtual void before_merge_face (Face_handle, Face_handle f2, typename Arrangement_2::Halfedge_handle)

template<class Arrangement_>
class Arr_face_index_map< Arrangement_ >


Member Typedef Documentation

template<class Arrangement_ >
typedef Arrangement_ Arr_face_index_map< Arrangement_ >::Arrangement_2

Reimplemented from Arr_observer< Arrangement_ >.

template<class Arrangement_ >
typedef boost::readable_property_map_tag Arr_face_index_map< Arrangement_ >::category
template<class Arrangement_ >
typedef Arrangement_2::Face_handle Arr_face_index_map< Arrangement_ >::Face_handle

Reimplemented from Arr_observer< Arrangement_ >.

template<class Arrangement_ >
typedef Face_handle Arr_face_index_map< Arrangement_ >::key_type
template<class Arrangement_ >
typedef value_type Arr_face_index_map< Arrangement_ >::reference
template<class Arrangement_ >
typedef unsigned int Arr_face_index_map< Arrangement_ >::value_type

Constructor & Destructor Documentation

template<class Arrangement_ >
Arr_face_index_map< Arrangement_ >::Arr_face_index_map ( ) [inline]

Default constructor.

template<class Arrangement_ >
Arr_face_index_map< Arrangement_ >::Arr_face_index_map ( const Arrangement_2 arr) [inline]

Constructor with an associated arrangement.

template<class Arrangement_ >
Arr_face_index_map< Arrangement_ >::Arr_face_index_map ( const Self other) [inline]

Copy constructor.


Member Function Documentation

template<class Arrangement_ >
virtual void Arr_face_index_map< Arrangement_ >::after_assign ( ) [inline, virtual]

Update the mapping after the arrangement has been assigned with another arrangement.

Reimplemented from Arr_observer< Arrangement_ >.

template<class Arrangement_ >
virtual void Arr_face_index_map< Arrangement_ >::after_attach ( ) [inline, virtual]

Update the mapping after attaching to a new arrangement.

Reimplemented from Arr_observer< Arrangement_ >.

template<class Arrangement_ >
virtual void Arr_face_index_map< Arrangement_ >::after_clear ( ) [inline, virtual]

Update the mapping after the arrangement is cleared.

Reimplemented from Arr_observer< Arrangement_ >.

template<class Arrangement_ >
virtual void Arr_face_index_map< Arrangement_ >::after_detach ( ) [inline, virtual]

Update the mapping after detaching the arrangement.

Reimplemented from Arr_observer< Arrangement_ >.

Here is the call graph for this function:

template<class Arrangement_ >
virtual void Arr_face_index_map< Arrangement_ >::after_split_face ( Face_handle  ,
Face_handle  new_f,
bool   
) [inline, virtual]

Update the mapping after the creation of a new face is split from another face.

Parameters:
fA handle to the existing face.
new_fA handle to the newly created face.

Reimplemented from Arr_observer< Arrangement_ >.

template<class Arrangement_ >
virtual void Arr_face_index_map< Arrangement_ >::before_merge_face ( Face_handle  ,
Face_handle  f2,
typename Arrangement_2::Halfedge_handle   
) [inline, virtual]

Update the mapping before the merge of two faces.

Parameters:
f1A handle to the face that is going to remain.
f2A handle to the face that is about to be removed.
template<class Arrangement_ >
Face_handle Arr_face_index_map< Arrangement_ >::face ( const int  i) const [inline]

Get the face given its index.

Parameters:
iThe index of the face.
Precondition:
i is less than the number of faces in the arrangement.
template<class Arrangement_ >
Self& Arr_face_index_map< Arrangement_ >::operator= ( const Self other) [inline]

Assignment operator.

Here is the call graph for this function:

template<class Arrangement_ >
unsigned int Arr_face_index_map< Arrangement_ >::operator[] ( Face_handle  f) const [inline]

Get the index of a given face.

Parameters:
fA handle to the face.
Precondition:
f is a valid face in the arrangement.

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