\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.7 - Monotone and Sorted Matrix Search
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Sorted_matrix_search_traits_adaptor< F, M > Class Template Reference

#include <CGAL/Sorted_matrix_search_traits_adaptor.h>

Definition

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
Mmust be a model for BasicMatrix
Fmust define a copy constructor and a monotone bool operator()( const Value&).

Creation

 Sorted_matrix_search_traits_adaptor (const F &m)
 initializes t to use m for feasibility testing. More...
 

Types

typedef M Matrix
 typedef to M. More...
 
typedef Matrix::Value Value
 typedef to Matrix::Value. More...
 
typedef std::less< ValueCompare_strictly
 typedef to std::less<Value>. More...
 
typedef std::less_equal< ValueCompare_non_strictly
 typedef to std::less_equal<Value>. More...
 

Operations

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

Member Typedef Documentation

template<typename F , typename M >
typedef std::less_equal<Value> CGAL::Sorted_matrix_search_traits_adaptor< F, M >::Compare_non_strictly

typedef to std::less_equal<Value>.

template<typename F , typename M >
typedef std::less<Value> CGAL::Sorted_matrix_search_traits_adaptor< F, M >::Compare_strictly

typedef to std::less<Value>.

template<typename F , typename M >
typedef M CGAL::Sorted_matrix_search_traits_adaptor< F, M >::Matrix

typedef to M.

template<typename F , typename M >
typedef Matrix::Value CGAL::Sorted_matrix_search_traits_adaptor< F, M >::Value

typedef to Matrix::Value.

Constructor & Destructor Documentation

template<typename F , typename M >
CGAL::Sorted_matrix_search_traits_adaptor< F, M >::Sorted_matrix_search_traits_adaptor ( const F &  m)

initializes t to use m for feasibility testing.

Member Function Documentation

template<typename F , typename M >
Compare_non_strictly CGAL::Sorted_matrix_search_traits_adaptor< F, M >::compare_non_strictly ( ) const

returns the Compare_non_strictly object to be used for the search.

template<typename F , typename M >
Compare_strictly CGAL::Sorted_matrix_search_traits_adaptor< F, M >::compare_strictly ( ) const

returns the Compare_strictly object to be used for the search.

template<typename F , typename M >
bool CGAL::Sorted_matrix_search_traits_adaptor< F, M >::is_feasible ( const Value a)

uses the feasibility test given during creation.