You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
#include "OrderDFTElementsById.h"
|
|
#include "storm-dft/storage/dft/DFTElements.h"
|
|
|
|
namespace storm {
|
|
namespace storage {
|
|
|
|
template<typename ValueType>
|
|
bool OrderElementsById<ValueType>::operator()(std::shared_ptr<DFTGate<ValueType>> const& a , std::shared_ptr<DFTGate<ValueType>> const& b) const {
|
|
return a->id() < b->id();
|
|
}
|
|
|
|
template<typename ValueType>
|
|
bool OrderElementsById<ValueType>::operator ()(const std::shared_ptr<DFTElement<ValueType>>& a, const std::shared_ptr<DFTElement<ValueType>>& b) const {
|
|
return a->id() < b->id();
|
|
}
|
|
|
|
|
|
template<typename ValueType>
|
|
bool OrderElementsByRank<ValueType>::operator ()(const std::shared_ptr<DFTGate<ValueType>>& a, const std::shared_ptr<DFTGate<ValueType>>& b) const {
|
|
return a->rank() < b->rank();
|
|
}
|
|
|
|
|
|
// Explicitly instantiate the class.
|
|
template struct OrderElementsById<double>;
|
|
template struct OrderElementsByRank<double>;
|
|
|
|
#ifdef STORM_HAVE_CARL
|
|
template struct OrderElementsById<RationalFunction>;
|
|
template struct OrderElementsByRank<RationalFunction>;
|
|
#endif
|
|
}
|
|
}
|