OpenASIP  2.0
Public Member Functions | List of all members
TTAMachine::PipelineElement::Comparator Struct Reference

#include <PipelineElement.hh>

Collaboration diagram for TTAMachine::PipelineElement::Comparator:
Collaboration graph

Public Member Functions

bool operator() (const PipelineElement *pe1, const PipelineElement *pe2) const
 

Detailed Description

Definition at line 55 of file PipelineElement.hh.

Member Function Documentation

◆ operator()()

bool TTAMachine::PipelineElement::Comparator::operator() ( const PipelineElement pe1,
const PipelineElement pe2 
) const

Definition at line 111 of file PipelineElement.cc.

112  {
113  if (pe1 == NULL) {
114  return false;
115  }
116  if (pe2 == NULL) {
117  return true;
118  }
119  if (pe1->name() > pe2->name()) {
120  return true;
121  }
122 
123  if (pe2->name() > pe1->name()) {
124  return false;
125  }
126 
127  if (pe1->parentUnit()->name() > pe2->parentUnit()->name()) {
128  return true;
129  }
130  return false;
131 }

References TTAMachine::PipelineElement::name(), TTAMachine::Component::name(), and TTAMachine::PipelineElement::parentUnit().

Here is the call graph for this function:

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