Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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 114 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 115 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 134 of file comparer.h.

◆ geq()

Definition at line 130 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 126 of file comparer.h.

◆ leq()

Definition at line 122 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 118 of file comparer.h.


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