Open
Graph Drawing
Framework

 v.2010.10
 

Public Member Functions | Private Attributes

ogdf::NodeComparer< sorterType > Class Template Reference

#include <ogdf/basic/NodeComparer.h>

List of all members.

Public Member Functions

 NodeComparer (NodeArray< sorterType > &valArray, bool ascending=true)
int compare (const node &v1, const node &v2) const
void init (NodeArray< sorterType > &valArray)
bool less (const node &x, const node &y) const
bool leq (const node &x, const node &y) const
bool greater (const node &x, const node &y) const
bool geq (const node &x, const node &y) const
bool equal (const node &x, const node &y) const

Private Attributes

NodeArray< sorterType > * m_valArray
int m_smaller

Detailed Description

template<class sorterType>
class ogdf::NodeComparer< sorterType >

Definition at line 67 of file NodeComparer.h.


Constructor & Destructor Documentation

template<class sorterType >
ogdf::NodeComparer< sorterType >::NodeComparer ( NodeArray< sorterType > &  valArray,
bool  ascending = true 
) [inline]

Definition at line 70 of file NodeComparer.h.


Member Function Documentation

template<class sorterType >
int ogdf::NodeComparer< sorterType >::compare ( const node v1,
const node v2 
) const [inline]

Definition at line 86 of file NodeComparer.h.

template<class sorterType >
bool ogdf::NodeComparer< sorterType >::equal ( const node x,
const node y 
) const [inline]

Definition at line 95 of file NodeComparer.h.

template<class sorterType >
bool ogdf::NodeComparer< sorterType >::geq ( const node x,
const node y 
) const [inline]

Definition at line 95 of file NodeComparer.h.

template<class sorterType >
bool ogdf::NodeComparer< sorterType >::greater ( const node x,
const node y 
) const [inline]

Definition at line 95 of file NodeComparer.h.

template<class sorterType >
void ogdf::NodeComparer< sorterType >::init ( NodeArray< sorterType > &  valArray  )  [inline]

Definition at line 93 of file NodeComparer.h.

template<class sorterType >
bool ogdf::NodeComparer< sorterType >::leq ( const node x,
const node y 
) const [inline]

Definition at line 95 of file NodeComparer.h.

template<class sorterType >
bool ogdf::NodeComparer< sorterType >::less ( const node x,
const node y 
) const [inline]

Definition at line 95 of file NodeComparer.h.


Member Data Documentation

template<class sorterType >
int ogdf::NodeComparer< sorterType >::m_smaller [private]

Definition at line 99 of file NodeComparer.h.

template<class sorterType >
NodeArray<sorterType>* ogdf::NodeComparer< sorterType >::m_valArray [private]

Definition at line 98 of file NodeComparer.h.


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