OpenASIP  2.0
Public Member Functions | List of all members
DSDBManager::energyComparator Struct Reference

#include <DSDBManager.hh>

Collaboration diagram for DSDBManager::energyComparator:
Collaboration graph

Public Member Functions

bool operator() (ConfigurationCosts c1, ConfigurationCosts c2) const
 

Detailed Description

Definition at line 131 of file DSDBManager.hh.

Member Function Documentation

◆ operator()()

bool DSDBManager::energyComparator::operator() ( ConfigurationCosts  c1,
ConfigurationCosts  c2 
) const
inline

Definition at line 132 of file DSDBManager.hh.

132  {
133  if (c1.energyEstimate == c2.energyEstimate) {
134  if (c1.configurationID != c2.configurationID) {
135  return (c1.configurationID < c2.configurationID);
136  } else {
137  return (c1.application < c2.application);
138  }
139  }
140  return (c1.energyEstimate < c2.energyEstimate);
141  }

References DSDBManager::ConfigurationCosts::application, DSDBManager::ConfigurationCosts::configurationID, and DSDBManager::ConfigurationCosts::energyEstimate.


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