Add typedef NetSet, for set of Net* sorted by Ids.
This commit is contained in:
parent
31b0c4daf1
commit
57bab117b4
|
@ -99,12 +99,12 @@ namespace Hurricane {
|
||||||
childsVMax_ = std::max( getVMax(), std::max( lvmax, rvmax ) ); return childsVMax_;
|
childsVMax_ = std::max( getVMax(), std::max( lvmax, rvmax ) ); return childsVMax_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
template< typename Data >
|
template< typename Data >
|
||||||
inline bool IntervalData<Data>::operator== ( const IntervalData<Data>& other ) const
|
inline bool IntervalData<Data>::operator== ( const IntervalData<Data>& other ) const
|
||||||
{ return Interval::operator==(*this) and (data_ == other.data_); }
|
{ return Interval::operator==(*this) and (data_ == other.data_); }
|
||||||
|
|
||||||
|
|
||||||
template< typename Data >
|
template< typename Data >
|
||||||
std::string IntervalData<Data>::_getString () const
|
std::string IntervalData<Data>::_getString () const
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,9 +17,7 @@
|
||||||
// not, see <http://www.gnu.org/licenses/>.
|
// not, see <http://www.gnu.org/licenses/>.
|
||||||
// ****************************************************************************************************
|
// ****************************************************************************************************
|
||||||
|
|
||||||
#ifndef HURRICANE_NET
|
#pragma once
|
||||||
#define HURRICANE_NET
|
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include "hurricane/Entity.h"
|
#include "hurricane/Entity.h"
|
||||||
#include "hurricane/Nets.h"
|
#include "hurricane/Nets.h"
|
||||||
|
@ -445,9 +443,10 @@ namespace Hurricane {
|
||||||
// Because sometimes it didn't happens (?).
|
// Because sometimes it didn't happens (?).
|
||||||
const SlotTemplate<Net*> dummyNetSlot ( string("dummyNetSlot"), NULL );
|
const SlotTemplate<Net*> dummyNetSlot ( string("dummyNetSlot"), NULL );
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // HURRICANE_NET
|
typedef std::set<Net*,DBo::CompareById> NetSet;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ****************************************************************************************************
|
// ****************************************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue