Add typedef NetSet, for set of Net* sorted by Ids.

This commit is contained in:
Jean-Paul Chaput 2023-04-13 00:18:10 +02:00
parent 31b0c4daf1
commit 57bab117b4
2 changed files with 5 additions and 6 deletions

View File

@ -99,12 +99,12 @@ namespace Hurricane {
childsVMax_ = std::max( getVMax(), std::max( lvmax, rvmax ) ); return childsVMax_;
}
template< typename Data >
inline bool IntervalData<Data>::operator== ( const IntervalData<Data>& other ) const
{ return Interval::operator==(*this) and (data_ == other.data_); }
template< typename Data >
std::string IntervalData<Data>::_getString () const
{

View File

@ -17,9 +17,7 @@
// not, see <http://www.gnu.org/licenses/>.
// ****************************************************************************************************
#ifndef HURRICANE_NET
#define HURRICANE_NET
#pragma once
#include <functional>
#include "hurricane/Entity.h"
#include "hurricane/Nets.h"
@ -445,9 +443,10 @@ namespace Hurricane {
// Because sometimes it didn't happens (?).
const SlotTemplate<Net*> dummyNetSlot ( string("dummyNetSlot"), NULL );
}
#endif // HURRICANE_NET
typedef std::set<Net*,DBo::CompareById> NetSet;
}
// ****************************************************************************************************