OpenASIP  2.0
Public Member Functions | List of all members
TTAMachine::Component::ComponentNameComparator Class Reference

#include <MachinePart.hh>

Collaboration diagram for TTAMachine::Component::ComponentNameComparator:
Collaboration graph

Public Member Functions

bool operator() (const Component *a, const Component *b) const
 

Detailed Description

Compares 2 Component's names lexicographically (dictionary order).

Can be used to organize containers of type Component to dictionary order according to their name field.

Parameters
athe first Component to compare.
bthe second Component to compare.
Returns
true, if a comes before b in dictionary order.

Definition at line 127 of file MachinePart.hh.

Member Function Documentation

◆ operator()()

bool TTAMachine::Component::ComponentNameComparator::operator() ( const Component a,
const Component b 
) const
inline

Definition at line 129 of file MachinePart.hh.

129  {
130  return (a->name()) < (b->name());
131  }

References TTAMachine::Component::name().

Here is the call graph for this function:

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