OpenASIP  2.0
Public Member Functions | List of all members
ProgramOperation::Comparator Class Reference

#include <ProgramOperation.hh>

Collaboration diagram for ProgramOperation::Comparator:
Collaboration graph

Public Member Functions

bool operator() (const ProgramOperation *po1, const ProgramOperation *po2) const
 
bool operator() (const ProgramOperationPtr &po1, const ProgramOperationPtr &po2) const
 

Detailed Description

Definition at line 148 of file ProgramOperation.hh.

Member Function Documentation

◆ operator()() [1/2]

bool ProgramOperation::Comparator::operator() ( const ProgramOperation po1,
const ProgramOperation po2 
) const

Comparison based on ID's for maps and sets.

Definition at line 773 of file ProgramOperation.cc.

774  {
775  if (po1 == NULL) {
776  return false;
777  }
778  if (po2 == NULL) {
779  return true;
780  }
781  return po1->poId() < po2->poId();
782 }

References ProgramOperation::poId().

Here is the call graph for this function:

◆ operator()() [2/2]

bool ProgramOperation::Comparator::operator() ( const ProgramOperationPtr po1,
const ProgramOperationPtr po2 
) const

Definition at line 785 of file ProgramOperation.cc.

786  {
787  return po1.get()->poId() < po2.get()->poId();
788 }

The documentation for this class was generated from the following files:
ProgramOperation::poId
unsigned int poId() const
Definition: ProgramOperation.cc:765