souffle  2.0.2-371-g6315b36
Public Member Functions
souffle::detail::comparator< T > Struct Template Reference

A generic comparator implementation as it is used by a b-tree based on types that can be less-than and equality comparable. More...

#include <BTree.h>

Collaboration diagram for souffle::detail::comparator< T >:
Collaboration graph

Public Member Functions

bool equal (const T &a, const T &b) const
 
bool less (const T &a, const T &b) const
 
int operator() (const T &a, const T &b) const
 Compares the values of a and b and returns -1 if a<b, 1 if a>b and 0 otherwise. More...
 

Detailed Description

template<typename T>
struct souffle::detail::comparator< T >

A generic comparator implementation as it is used by a b-tree based on types that can be less-than and equality comparable.

Definition at line 61 of file BTree.h.

Member Function Documentation

◆ equal()

template<typename T >
bool souffle::detail::comparator< T >::equal ( const T &  a,
const T &  b 
) const
inline

Definition at line 79 of file BTree.h.

86  {

◆ less()

template<typename T >
bool souffle::detail::comparator< T >::less ( const T &  a,
const T &  b 
) const
inline

Definition at line 76 of file BTree.h.

86  {

◆ operator()()

template<typename T >
int souffle::detail::comparator< T >::operator() ( const T &  a,
const T &  b 
) const
inline

Compares the values of a and b and returns -1 if a<b, 1 if a>b and 0 otherwise.

Definition at line 73 of file BTree.h.

73  : public search_strategy {
74  /**
75  * Required user-defined default constructor.

The documentation for this struct was generated from the following file: