Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
comparer.h File Reference

Declarations for Comparer objects. More...

#include <ogdf/basic/exceptions.h>
#include <functional>

Go to the source code of this file.

Classes

struct  ogdf::GenericComparer< ELEM, NUM, ascending >
 Compare elements based on a single comparable attribute. More...
 
class  ogdf::Prioritized< X, Priority >
 Augments any data elements of type X with keys of type Priority. This class is also its own Comparer. More...
 
class  ogdf::StdComparer< E >
 Standard comparer (valid as a static comparer). More...
 
class  ogdf::StdComparer< bool >
 Generates a specialization of the standard static comparer for booleans. More...
 
class  ogdf::StdComparer< Prioritized< X, Priority > >
 
class  ogdf::StlGreater< TYPE, COMPARER >
 Template for converting any StdComparer into a STL compatible compare functor. More...
 
class  ogdf::StlLess< TYPE, COMPARER >
 Template for converting any StdComparer into a STL compatible compare functor. More...
 
class  ogdf::TargetComparer< CONTENTTYPE, STATICCONTENTCOMPARER >
 A static comparer which compares the target of pointers ("content"), instead of the pointer's adresses. More...
 
class  ogdf::VComparer< E >
 Abstract base class for comparer classes. More...
 

Namespaces

namespace  ogdf
 The namespace for all OGDF objects.
 

Macros

#define OGDF_AUGMENT_COMPARER(type)
 Add this macro to your class to turn it into a full comparer.
 
#define OGDF_AUGMENT_STATICCOMPARER(type)
 Add this macro to your class to turn it into a full static comparer.
 
#define OGDF_DECLARE_COMPARER(NAME, TYPE, NUMBER, GET_X_ATTR)
 Declares a class NAME that extends from ogdf::GenericComparer.
 
#define OGDF_STD_COMPARER(type)
 Generates a specialization of the standard static comparer for type based on compare operators.
 

Detailed Description

Declarations for Comparer objects.

Author
Markus Chimani, Carsten Gutwenger
License:
This file is part of the Open Graph Drawing Framework (OGDF).
Copyright (C)
See README.md in the OGDF root directory for details.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 or 3 as published by the Free Software Foundation; see the file LICENSE.txt included in the packaging of this file for details.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/copyleft/gpl.html

Definition in file comparer.h.