Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::TargetComparer< CONTENTTYPE, STATICCONTENTCOMPARER > Class Template Reference

A static comparer which compares the target of pointers ("content"), instead of the pointer's adresses. More...

#include <ogdf/basic/comparer.h>

Static Public Member Functions

static bool equal (const CONTENTPOINTER &x, const CONTENTPOINTER &y)
 
static bool geq (const CONTENTPOINTER &x, const CONTENTPOINTER &y)
 
static bool greater (const CONTENTPOINTER &x, const CONTENTPOINTER &y)
 
static bool leq (const CONTENTPOINTER &x, const CONTENTPOINTER &y)
 
static bool less (const CONTENTPOINTER &x, const CONTENTPOINTER &y)
 

Private Types

using CONTENTPOINTER = CONTENTTYPE *
 

Detailed Description

template<class CONTENTTYPE, class STATICCONTENTCOMPARER = StdComparer<CONTENTTYPE>>
class ogdf::TargetComparer< CONTENTTYPE, STATICCONTENTCOMPARER >

A static comparer which compares the target of pointers ("content"), instead of the pointer's adresses.

For the comparison of the contents, you may give your own static comparer

Definition at line 106 of file comparer.h.

Member Typedef Documentation

◆ CONTENTPOINTER

template<class CONTENTTYPE , class STATICCONTENTCOMPARER = StdComparer<CONTENTTYPE>>
using ogdf::TargetComparer< CONTENTTYPE, STATICCONTENTCOMPARER >::CONTENTPOINTER = CONTENTTYPE*
private

Definition at line 107 of file comparer.h.

Member Function Documentation

◆ equal()

template<class CONTENTTYPE , class STATICCONTENTCOMPARER = StdComparer<CONTENTTYPE>>
static bool ogdf::TargetComparer< CONTENTTYPE, STATICCONTENTCOMPARER >::equal ( const CONTENTPOINTER x,
const CONTENTPOINTER y 
)
inlinestatic

Definition at line 113 of file comparer.h.

◆ geq()

template<class CONTENTTYPE , class STATICCONTENTCOMPARER = StdComparer<CONTENTTYPE>>
static bool ogdf::TargetComparer< CONTENTTYPE, STATICCONTENTCOMPARER >::geq ( const CONTENTPOINTER x,
const CONTENTPOINTER y 
)
inlinestatic

Definition at line 112 of file comparer.h.

◆ greater()

template<class CONTENTTYPE , class STATICCONTENTCOMPARER = StdComparer<CONTENTTYPE>>
static bool ogdf::TargetComparer< CONTENTTYPE, STATICCONTENTCOMPARER >::greater ( const CONTENTPOINTER x,
const CONTENTPOINTER y 
)
inlinestatic

Definition at line 111 of file comparer.h.

◆ leq()

template<class CONTENTTYPE , class STATICCONTENTCOMPARER = StdComparer<CONTENTTYPE>>
static bool ogdf::TargetComparer< CONTENTTYPE, STATICCONTENTCOMPARER >::leq ( const CONTENTPOINTER x,
const CONTENTPOINTER y 
)
inlinestatic

Definition at line 110 of file comparer.h.

◆ less()

template<class CONTENTTYPE , class STATICCONTENTCOMPARER = StdComparer<CONTENTTYPE>>
static bool ogdf::TargetComparer< CONTENTTYPE, STATICCONTENTCOMPARER >::less ( const CONTENTPOINTER x,
const CONTENTPOINTER y 
)
inlinestatic

Definition at line 109 of file comparer.h.


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