OpenASIP  2.0
Public Member Functions | List of all members
ProGe::NetlistBlockNameComparator Class Reference

#include <BaseNetlistBlock.hh>

Collaboration diagram for ProGe::NetlistBlockNameComparator:
Collaboration graph

Public Member Functions

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

Detailed Description

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

Can be used to organize containers of type NetlistBlock to dictionary order according to their instanceNames + moduleNames.

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

Definition at line 202 of file BaseNetlistBlock.hh.

Member Function Documentation

◆ operator()()

bool ProGe::NetlistBlockNameComparator::operator() ( const BaseNetlistBlock a,
const BaseNetlistBlock b 
) const
inline

Definition at line 204 of file BaseNetlistBlock.hh.

206  {
207  return (a->instanceName() + a->moduleName()) <
208  (b->instanceName() + b->moduleName());
209  }

References ProGe::BaseNetlistBlock::instanceName(), and ProGe::BaseNetlistBlock::moduleName().

Here is the call graph for this function:

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