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! | |
Prioritized (const Prioritized &P)=default | |
Copy-constructor. | |
Prioritized (X xt, Priority pt) | |
Constructor using a key/value pair. | |
X | item () const |
Returns the data of the element. | |
bool | operator!= (const Prioritized< X, Priority > &P) const |
Comparison oprator based on the compare-operator for the key type (Priority) | |
bool | operator< (const Prioritized< X, Priority > &P) const |
Comparison oprator based on the compare-operator for the key type (Priority) | |
bool | operator<= (const Prioritized< X, Priority > &P) const |
Comparison oprator based on the compare-operator for the key type (Priority) | |
Prioritized & | operator= (const Prioritized< X, Priority > &P)=default |
Copy assignment operator. | |
bool | operator== (const Prioritized< X, Priority > &P) const |
Comparison oprator based on the compare-operator for the key type (Priority) | |
bool | operator> (const Prioritized< X, Priority > &P) const |
Comparison oprator based on the compare-operator for the key type (Priority) | |
bool | operator>= (const Prioritized< X, Priority > &P) const |
Comparison oprator based on the compare-operator for the key type (Priority) | |
Priority | priority () const |
Returns the key of the element. | |
void | setItem (X item) |
Sets value x. | |
void | setPriority (Priority pp) |
Sets priority. | |
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 291 of file comparer.h.
|
inline |
Constructor of empty element. Be careful!
Definition at line 297 of file comparer.h.
|
inline |
Constructor using a key/value pair.
Definition at line 300 of file comparer.h.
|
default |
Copy-constructor.
|
inline |
Returns the data of the element.
Definition at line 309 of file comparer.h.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 336 of file comparer.h.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 321 of file comparer.h.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 324 of file comparer.h.
|
default |
Copy assignment operator.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 333 of file comparer.h.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 327 of file comparer.h.
|
inline |
Comparison oprator based on the compare-operator for the key type (Priority)
Definition at line 330 of file comparer.h.
|
inline |
Returns the key of the element.
Definition at line 306 of file comparer.h.
|
inline |
Sets value x.
Definition at line 315 of file comparer.h.
|
inline |
Sets priority.
Definition at line 312 of file comparer.h.
Definition at line 293 of file comparer.h.
|
private |
Definition at line 292 of file comparer.h.