GUI2/Iterator: added some alias templates and a get() function
This commit is contained in:
parent
1778dd8581
commit
1eaa51b3f9
1 changed files with 14 additions and 0 deletions
|
@ -101,8 +101,22 @@ public:
|
|||
{
|
||||
return &(operator*());
|
||||
}
|
||||
|
||||
/** See @ref operator*. */
|
||||
widget* get()
|
||||
{
|
||||
return operator->();
|
||||
}
|
||||
};
|
||||
|
||||
/* Helper aliases templates. */
|
||||
|
||||
template<bool visit_self, bool visit_internal, bool visit_child>
|
||||
using top_down_iterator = iterator<policy::order::top_down<visit_self, visit_internal, visit_child>>;
|
||||
|
||||
template<bool visit_self, bool visit_internal, bool visit_child>
|
||||
using bottom_up_iterator = iterator<policy::order::bottom_up<visit_self, visit_internal, visit_child>>;
|
||||
|
||||
} // namespace iteration
|
||||
|
||||
} // namespace gui2
|
||||
|
|
Loading…
Add table
Reference in a new issue