Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
limbo::algorithms::partition::FM< NodeType, NetWeightType >::compare_type1 Struct Reference

compare function object More...

#include <FM.h>

Public Member Functions

bool operator() (FM_node_type *pFMNode1, FM_node_type *pFMNode2) const
 API for comparison. More...
 
bool operator() (net_weight_type const &g1, net_weight_type const &g2) const
 API for comparison. More...
 

Detailed Description

template<typename NodeType, typename NetWeightType = double>
struct limbo::algorithms::partition::FM< NodeType, NetWeightType >::compare_type1

compare function object

largest gain comes first

Definition at line 200 of file FM.h.

Member Function Documentation

template<typename NodeType, typename NetWeightType = double>
bool limbo::algorithms::partition::FM< NodeType, NetWeightType >::compare_type1::operator() ( FM_node_type pFMNode1,
FM_node_type pFMNode2 
) const
inline

API for comparison.

Parameters
pFMNode1a node
pFMNode2a node
Returns
compare result

Definition at line 206 of file FM.h.

template<typename NodeType, typename NetWeightType = double>
bool limbo::algorithms::partition::FM< NodeType, NetWeightType >::compare_type1::operator() ( net_weight_type const &  g1,
net_weight_type const &  g2 
) const
inline

API for comparison.

Parameters
g1a net weight
g2a net weight
Returns
compare result

Definition at line 214 of file FM.h.


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