mirror of https://github.com/YosysHQ/abc.git
fix template
This commit is contained in:
parent
d1d861f703
commit
b0153e0f57
|
|
@ -118,10 +118,10 @@ namespace rrr {
|
||||||
void ForEachTfo(int id, bool fPos, std::function<void(int)> const &func);
|
void ForEachTfo(int id, bool fPos, std::function<void(int)> const &func);
|
||||||
void ForEachTfoReverse(int id, bool fPos, std::function<void(int)> const &func);
|
void ForEachTfoReverse(int id, bool fPos, std::function<void(int)> const &func);
|
||||||
void ForEachTfoUpdate(int id, bool fPos, std::function<bool(int)> const &func);
|
void ForEachTfoUpdate(int id, bool fPos, std::function<bool(int)> const &func);
|
||||||
template <template <typename> typename Container>
|
template <template <typename...> typename Container, typename ... Ts>
|
||||||
void ForEachTfos(Container<int> const &ids, bool fPos, std::function<void(int)> const &func);
|
void ForEachTfos(Container<Ts...> const &ids, bool fPos, std::function<void(int)> const &func);
|
||||||
template <template <typename> typename Container>
|
template <template <typename...> typename Container, typename ... Ts>
|
||||||
void ForEachTfosUpdate(Container<int> const &ids, bool fPos, std::function<bool(int)> const &func);
|
void ForEachTfosUpdate(Container<Ts...> const &ids, bool fPos, std::function<bool(int)> const &func);
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void RemoveFanin(int id, int idx);
|
void RemoveFanin(int id, int idx);
|
||||||
|
|
@ -685,8 +685,8 @@ namespace rrr {
|
||||||
EndTraversal();
|
EndTraversal();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <template <typename> typename Container>
|
template <template <typename...> typename Container, typename ... Ts>
|
||||||
inline void AndNetwork::ForEachTfos(Container<int> const &ids, bool fPos, std::function<void(int)> const &func) {
|
inline void AndNetwork::ForEachTfos(Container<Ts...> const &ids, bool fPos, std::function<void(int)> const &func) {
|
||||||
// this includes ids themselves
|
// this includes ids themselves
|
||||||
StartTraversal();
|
StartTraversal();
|
||||||
for(int id: ids) {
|
for(int id: ids) {
|
||||||
|
|
@ -720,8 +720,8 @@ namespace rrr {
|
||||||
EndTraversal();
|
EndTraversal();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <template <typename> typename Container>
|
template <template <typename...> typename Container, typename ... Ts>
|
||||||
inline void AndNetwork::ForEachTfosUpdate(Container<int> const &ids, bool fPos, std::function<bool(int)> const &func) {
|
inline void AndNetwork::ForEachTfosUpdate(Container<Ts...> const &ids, bool fPos, std::function<bool(int)> const &func) {
|
||||||
// this includes ids themselves
|
// this includes ids themselves
|
||||||
StartTraversal();
|
StartTraversal();
|
||||||
for(int id: ids) {
|
for(int id: ids) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue