Added design->full_selection() helper method
authorClifford Wolf <clifford@clifford.at>
Sun, 27 Oct 2013 08:30:58 +0000 (09:30 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 27 Oct 2013 08:30:58 +0000 (09:30 +0100)
kernel/rtlil.h

index 9fae954c1e1e1ef39a5d3db0520144f050325322..6cb471b586f244166d4350b92cdb5feb507a7002 100644 (file)
@@ -219,6 +219,9 @@ struct RTLIL::Design {
        bool selected_module(RTLIL::IdString mod_name) const;
        bool selected_whole_module(RTLIL::IdString mod_name) const;
        bool selected_member(RTLIL::IdString mod_name, RTLIL::IdString memb_name) const;
+       bool full_selection() const {
+               return selection_stack.back().full_selection;
+       }
        template<typename T1> bool selected(T1 *module) const {
                return selected_module(module->name);
        }