CGAL 6.2 - Monotone and Sorted Matrix Search: CGAL::Sorted_matrix_search_traits_adaptor< F, M > Class Template Reference

CGAL 6.2 - Monotone and Sorted Matrix Search

Loading...
Searching...
No Matches
List of all members
CGAL::Sorted_matrix_search_traits_adaptor< F, M > Class Template Reference
Reference Manual

`#include <CGAL/Sorted_matrix_search_traits_adaptor.h>`

## Definition

template<typename F, typename M>
class CGAL::Sorted_matrix_search_traits_adaptor< F, M >

The class `Sorted_matrix_search_traits_adaptor` can be used as an adaptor to create sorted matrix search traits classes for arbitrary feasibility test and matrix classes `F` resp. `M`.

Is model of
  `SortedMatrixSearchTraits`

Template Parameters

  M | must be a model for `BasicMatrix`
  F | must define a copy constructor and a monotone `bool operator()( const Value&)`.

## Types
typedef M | Matrix
| typedef to `M`.
typedef Matrix::Value | Value
| typedef to `Matrix::Value`.
typedef std::less< Value > | Compare_strictly
| typedef to `std::less<Value>`.
typedef std::less_equal< Value > | Compare_non_strictly
| typedef to `std::less_equal<Value>`.

## Creation
| Sorted_matrix_search_traits_adaptor (const F &m)
| initializes `t` to use `m` for feasibility testing.

## Operations
Compare_strictly | compare_strictly () const
| returns the `Compare_strictly` object to be used for the search.
Compare_non_strictly | compare_non_strictly () const
| returns the `Compare_non_strictly` object to be used for the search.
bool | is_feasible (const Value &a)
| uses the feasibility test given during creation.