3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-03 13:55:48 +00:00

Cleanup code style and pseudo-private member usage in passes/cmds/select.cc.

This commit is contained in:
Alberto Gonzalez 2020-03-14 04:40:14 +00:00
parent c0a009139b
commit 70093698f5
No known key found for this signature in database
GPG key ID: 8395A8BA109708B2
2 changed files with 160 additions and 162 deletions

View file

@ -560,6 +560,7 @@ namespace RTLIL
ObjRange(decltype(list_p) list_p, int *refcount_p) : list_p(list_p), refcount_p(refcount_p) { }
RTLIL::ObjIterator<T> begin() { return RTLIL::ObjIterator<T>(list_p, refcount_p); }
RTLIL::ObjIterator<T> end() { return RTLIL::ObjIterator<T>(); }
bool contains(const RTLIL::IdString &what) { return (list_p->count(what) > 0); }
size_t size() const {
return list_p->size();