Augments any data elements of type X with keys of type Priority. This class is also its own Comparer. More...
#include <ogdf/basic/comparer.h>
Public Member Functions | |
| Prioritized () | |
| Constructor of empty element. Be careful! More... | |
| Prioritized (X xt, Priority pt) | |
| Constructor using a key/value pair. More... | |
| Prioritized (const Prioritized &P) | |
| Copy-constructor. More... | |
| X | item () const |
| Returns the data of the element. More... | |
| bool | operator!= (const Prioritized< X, Priority > &P) const |
| Comparison oprator based on the compare-operator for the key type (Priority) More... | |
| bool | operator< (const Prioritized< X, Priority > &P) const |
| Comparison oprator based on the compare-operator for the key type (Priority) More... | |
| bool | operator<= (const Prioritized< X, Priority > &P) const |
| Comparison oprator based on the compare-operator for the key type (Priority) More... | |
| bool | operator== (const Prioritized< X, Priority > &P) const |
| Comparison oprator based on the compare-operator for the key type (Priority) More... | |
| bool | operator> (const Prioritized< X, Priority > &P) const |
| Comparison oprator based on the compare-operator for the key type (Priority) More... | |
| bool | operator>= (const Prioritized< X, Priority > &P) const |
| Comparison oprator based on the compare-operator for the key type (Priority) More... | |
| Priority | priority () const |
| Returns the key of the element. More... | |
| void | setItem (X item) |
| Sets value x. More... | |
| void | setPriority (Priority pp) |
| Sets priority. More... | |
Private Attributes | |
| Priority | p |
| X | x |
Augments any data elements of type X with keys of type Priority. This class is also its own Comparer.
Also defines comparator function using the keys. This class is intended as a helpful convenience class for using with BinaryHeapSimple, Top10Heap,..
Definition at line 278 of file comparer.h.
|
inline |
Constructor of empty element. Be careful!
Definition at line 284 of file comparer.h.
|
inline |
Constructor using a key/value pair.
Definition at line 287 of file comparer.h.
|
inline |
Copy-constructor.
Definition at line 290 of file comparer.h.
|
inline |
Returns the data of the element.
Definition at line 296 of file comparer.h.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 320 of file comparer.h.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 305 of file comparer.h.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 308 of file comparer.h.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 317 of file comparer.h.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 311 of file comparer.h.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 314 of file comparer.h.
|
inline |
Returns the key of the element.
Definition at line 293 of file comparer.h.
|
inline |
Sets value x.
Definition at line 302 of file comparer.h.
|
inline |
Sets priority.
Definition at line 299 of file comparer.h.
|
private |
Definition at line 280 of file comparer.h.
|
private |
Definition at line 279 of file comparer.h.