22 #ifndef MOBJECT_SESSION_QUERY_FOCUS_STACK_H 23 #define MOBJECT_SESSION_QUERY_FOCUS_STACK_H 64 std::list<ScopePath> paths_;
96 QueryFocusStack::empty ()
const 98 return paths_.empty();
103 QueryFocusStack::size ()
const 105 return paths_.size();
110 QueryFocusStack::clear ()
130 paths_.push_back (newPathFrame);
132 return paths_.back();
144 || 0 == paths_.back().ref_count()
149 return paths_.back();
163 if (1 == size() && !paths_.front().isValid())
166 while (size() && (0 == paths_.back().ref_count()))
182 REQUIRE (0 == size());
186 ENSURE (!paths_.front().empty());
187 ENSURE (!paths_.front().isValid());
ScopePath & push(Scope const &)
Open a new path frame, pushing down the current frame.
Any copy and copy construction prohibited.
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Sequence of nested scopes within the high-level model.
A Placement scope within the high-level-model.
Mix-Ins to allow or prohibit various degrees of copying and cloning.
void pop_unused()
investigate the stack top and discard any path frames which aren't referred anymore (as indicated by ...
bool isValid() const
a valid path consists of more than just the root element.
An Object representing a sequence of nested scopes within the Session.
A custom stack holding ScopePath »frames«.