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

#include <DSDBManager.hh>

Collaboration diagram for DSDBManager::cycleComparator:
Collaboration graph

Public Member Functions

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

Detailed Description

Definition at line 118 of file DSDBManager.hh.

Member Function Documentation

◆ operator()()

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

Definition at line 119 of file DSDBManager.hh.

119  {
120  if (c1.cycleCount == c2.cycleCount) {
121  if (c1.configurationID != c2.configurationID) {
122  return (c1.configurationID < c2.configurationID);
123  } else {
124  return (c1.application < c2.application);
125  }
126  }
127  return (c1.cycleCount < c2.cycleCount);
128  }

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


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